Package org.exolab.castor.xml
Class BaseXercesOutputFormat
java.lang.Object
org.exolab.castor.xml.BaseXercesOutputFormat
- All Implemented Interfaces:
OutputFormat
- Direct Known Subclasses:
XercesJDK5OutputFormat
,XercesOutputFormat
Xerces-specific OutputFormat instance.
- Version:
- $Revision: 7951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Werner Guttmann
-
Field Summary
FieldsFields inherited from interface org.exolab.castor.xml.OutputFormat
XML
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the (underlying) OutputFormat instancevoid
setDoctype
(String type1, String type2) Defines the doc types to use.void
setEncoding
(String encoding) Sets the encoding to use.void
setIndenting
(boolean indent) Specify whether indentation is requiredvoid
Set serialization method.void
setOmitDocumentType
(boolean omitDocumentType) Indicates whether to omit DOCTYPE definition.void
setOmitXMLDeclaration
(boolean omitXMLDeclaration) Indicates whether to omit XML declaration.void
setPreserveSpace
(boolean preserveSpace) Indicate whether white space should be preserved.void
setVersion
(String version) Defines the XML document version to be output.
-
Field Details
-
_outputFormat
-
-
Constructor Details
-
BaseXercesOutputFormat
public BaseXercesOutputFormat()
-
-
Method Details
-
getFormat
Description copied from interface:OutputFormat
Returns the (underlying) OutputFormat instance- Specified by:
getFormat
in interfaceOutputFormat
- Returns:
- the (underlying) OutputFormat instance
-
setMethod
Description copied from interface:OutputFormat
Set serialization method.- Specified by:
setMethod
in interfaceOutputFormat
- Parameters:
method
- Required serialization method.
-
setIndenting
public void setIndenting(boolean indent) Description copied from interface:OutputFormat
Specify whether indentation is required- Specified by:
setIndenting
in interfaceOutputFormat
- 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 interfaceOutputFormat
- Parameters:
preserveSpace
- True if white space should be preserved
-
setDoctype
Description copied from interface:OutputFormat
Defines the doc types to use.- Specified by:
setDoctype
in interfaceOutputFormat
- 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 interfaceOutputFormat
- 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 interfaceOutputFormat
- Parameters:
omitDocumentType
- True if DOCTYPE definition should be omitted.
-
setEncoding
Description copied from interface:OutputFormat
Sets the encoding to use.- Specified by:
setEncoding
in interfaceOutputFormat
- Parameters:
encoding
- The encoding to use.
-
setVersion
Description copied from interface:OutputFormat
Defines the XML document version to be output.- Specified by:
setVersion
in interfaceOutputFormat
-