org.exolab.castor.xml
Interface OutputFormat
- WeblogicXercesOutputFormat, XercesOutputFormat
public interface OutputFormat
Output format contract for XML serialization.
static String | XML - Default serialization method, being XML
|
Object | getFormat() - Returns the (underlying) OutputFormat instance
|
void | 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 required
|
void | setMethod(String method) - 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.
|
XML
public static final String XML
Default serialization method, being XML
getFormat
public Object getFormat()
Returns the (underlying) OutputFormat instance
- the (underlying) OutputFormat instance
setDoctype
public void setDoctype(String type1,
String type2)
Defines the doc types to use.
type1
- Public DOC type.type2
- System doc type.
setEncoding
public void setEncoding(String encoding)
Sets the encoding to use.
encoding
- The encoding to use.
setIndenting
public void setIndenting(boolean indent)
Specify whether indentation is required
indent
- true if XML output should be intended.
setMethod
public void setMethod(String method)
Set serialization method.
method
- Required serialization method.
setOmitDocumentType
public void setOmitDocumentType(boolean omitDocumentType)
Indicates whether to omit DOCTYPE definition.
omitDocumentType
- True if DOCTYPE definition should be omitted.
setOmitXMLDeclaration
public void setOmitXMLDeclaration(boolean omitXMLDeclaration)
Indicates whether to omit XML declaration.
omitXMLDeclaration
- True if XMl declaration should be omitted.
setPreserveSpace
public void setPreserveSpace(boolean preserveSpace)
Indicate whether white space should be preserved.
preserveSpace
- True if white space should be preserved
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com