Package org.exolab.castor.xml
Class BaseXercesOutputFormat
- java.lang.Object
-
- org.exolab.castor.xml.BaseXercesOutputFormat
-
- All Implemented Interfaces:
OutputFormat
- Direct Known Subclasses:
XercesJDK5OutputFormat,XercesOutputFormat
public class BaseXercesOutputFormat extends java.lang.Object implements OutputFormat
Xerces-specific OutputFormat instance.- Version:
- $Revision: 7951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Werner Guttmann
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object_outputFormat-
Fields inherited from interface org.exolab.castor.xml.OutputFormat
XML
-
-
Constructor Summary
Constructors Constructor Description BaseXercesOutputFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetFormat()Returns the (underlying) OutputFormat instancevoidsetDoctype(java.lang.String type1, java.lang.String type2)Defines the doc types to use.voidsetEncoding(java.lang.String encoding)Sets the encoding to use.voidsetIndenting(boolean indent)Specify whether indentation is requiredvoidsetMethod(java.lang.String method)Set serialization method.voidsetOmitDocumentType(boolean omitDocumentType)Indicates whether to omit DOCTYPE definition.voidsetOmitXMLDeclaration(boolean omitXMLDeclaration)Indicates whether to omit XML declaration.voidsetPreserveSpace(boolean preserveSpace)Indicate whether white space should be preserved.voidsetVersion(java.lang.String version)Defines the XML document version to be output.
-
-
-
Method Detail
-
getFormat
public java.lang.Object getFormat()
Description copied from interface:OutputFormatReturns the (underlying) OutputFormat instance- Specified by:
getFormatin interfaceOutputFormat- Returns:
- the (underlying) OutputFormat instance
-
setMethod
public void setMethod(java.lang.String method)
Description copied from interface:OutputFormatSet serialization method.- Specified by:
setMethodin interfaceOutputFormat- Parameters:
method- Required serialization method.
-
setIndenting
public void setIndenting(boolean indent)
Description copied from interface:OutputFormatSpecify whether indentation is required- Specified by:
setIndentingin interfaceOutputFormat- Parameters:
indent- true if XML output should be intended.
-
setPreserveSpace
public void setPreserveSpace(boolean preserveSpace)
Description copied from interface:OutputFormatIndicate whether white space should be preserved.- Specified by:
setPreserveSpacein interfaceOutputFormat- Parameters:
preserveSpace- True if white space should be preserved
-
setDoctype
public void setDoctype(java.lang.String type1, java.lang.String type2)Description copied from interface:OutputFormatDefines the doc types to use.- Specified by:
setDoctypein interfaceOutputFormat- Parameters:
type1- Public DOC type.type2- System doc type.
-
setOmitXMLDeclaration
public void setOmitXMLDeclaration(boolean omitXMLDeclaration)
Description copied from interface:OutputFormatIndicates whether to omit XML declaration.- Specified by:
setOmitXMLDeclarationin interfaceOutputFormat- Parameters:
omitXMLDeclaration- True if XMl declaration should be omitted.
-
setOmitDocumentType
public void setOmitDocumentType(boolean omitDocumentType)
Description copied from interface:OutputFormatIndicates whether to omit DOCTYPE definition.- Specified by:
setOmitDocumentTypein interfaceOutputFormat- Parameters:
omitDocumentType- True if DOCTYPE definition should be omitted.
-
setEncoding
public void setEncoding(java.lang.String encoding)
Description copied from interface:OutputFormatSets the encoding to use.- Specified by:
setEncodingin interfaceOutputFormat- Parameters:
encoding- The encoding to use.
-
setVersion
public void setVersion(java.lang.String version)
Description copied from interface:OutputFormatDefines the XML document version to be output.- Specified by:
setVersionin interfaceOutputFormat
-
-