Class WeblogicXercesOutputFormat

java.lang.Object
org.exolab.castor.xml.wls8.WeblogicXercesImplementation
org.exolab.castor.xml.wls8.WeblogicXercesOutputFormat
All Implemented Interfaces:
OutputFormat

public class WeblogicXercesOutputFormat extends WeblogicXercesImplementation implements OutputFormat
"Weblogic's refactored Xerces"-specific OutputFormat instance. Uses reflection to get the class and methods to avoid having dependencies towards Weblogic when Castor is not used in a Weblogic server.
Author:
Thierry Guerin
  • Constructor Details

    • WeblogicXercesOutputFormat

      public WeblogicXercesOutputFormat()
      Creates an instance of this class.
  • Method Details

    • setMethod

      public void setMethod(String method)
      Description copied from interface: OutputFormat
      Set serialization method.
      Specified by:
      setMethod in interface OutputFormat
      Parameters:
      method - Required serialization method.
    • getFormat

      public Object getFormat()
      Description copied from interface: OutputFormat
      Returns the (underlying) OutputFormat instance
      Specified by:
      getFormat in interface OutputFormat
      Returns:
      the (underlying) OutputFormat instance
    • setIndenting

      public void setIndenting(boolean indent)
      Description copied from interface: OutputFormat
      Specify whether indentation is required
      Specified by:
      setIndenting in interface OutputFormat
      Parameters:
      indent - true if XML output should be intended.
    • setPreserveSpace

      public void setPreserveSpace(boolean preserveSpace)
      Description copied from interface: OutputFormat
      Indicate whether white space should be preserved.
      Specified by:
      setPreserveSpace in interface OutputFormat
      Parameters:
      preserveSpace - True if white space should be preserved
    • setDoctype

      public void setDoctype(String type1, String type2)
      Description copied from interface: OutputFormat
      Defines the doc types to use.
      Specified by:
      setDoctype in interface OutputFormat
      Parameters:
      type1 - Public DOC type.
      type2 - System doc type.
    • setOmitXMLDeclaration

      public void setOmitXMLDeclaration(boolean omitXMLDeclaration)
      Description copied from interface: OutputFormat
      Indicates whether to omit XML declaration.
      Specified by:
      setOmitXMLDeclaration in interface OutputFormat
      Parameters:
      omitXMLDeclaration - True if XMl declaration should be omitted.
    • setOmitDocumentType

      public void setOmitDocumentType(boolean omitDocumentType)
      Description copied from interface: OutputFormat
      Indicates whether to omit DOCTYPE definition.
      Specified by:
      setOmitDocumentType in interface OutputFormat
      Parameters:
      omitDocumentType - True if DOCTYPE definition should be omitted.
    • setEncoding

      public void setEncoding(String encoding)
      Description copied from interface: OutputFormat
      Sets the encoding to use.
      Specified by:
      setEncoding in interface OutputFormat
      Parameters:
      encoding - The encoding to use.
    • setVersion

      public void setVersion(String version)
      Description copied from interface: OutputFormat
      Defines the XML document version to be output.
      Specified by:
      setVersion in interface OutputFormat