|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jsxe.dom.DOMSerializerConfiguration
DOMSerializerConfiguration is the default implementation of the DOMConfiguration interface to be used with the DOMSerializer class.
Currently, this class only supports the required options with few exceptions.
The "format-pretty-print" option is supported.
A "soft-tabs" option is supported which specifies whether
to emulate tabs with spaces.
An "indent" option is supported to specify the indent/tab
size when the "soft-tabs" feature is true. This has no effect
if "soft-tabs" is false.
DOMSerializer| Field Summary | |
static String |
CANONICAL_FORM
|
static String |
CDATA_SECTIONS
|
static String |
CHAR_NORMALIZATION
|
static String |
COMMENTS
|
static String |
DATATYPE_NORMALIZATION
|
static String |
DISCARD_DEFAULT_CONTENT
|
static String |
ENTITIES
|
static String |
ERROR_HANDLER
|
static String |
FORMAT_XML
|
static String |
IGNORE_UNKNOWN_CHAR_DENORM
|
static String |
INDENT
The number of spaces to use as an tab when SOFT_TABS is true. |
static String |
INFOSET
|
static String |
NAMESPACE_DECLARATIONS
|
static String |
NAMESPACES
|
static String |
NORMALIZE_CHARS
|
static String |
SOFT_TABS
Use spaces instead of tabs if this is true. |
static String |
SPLIT_CDATA
|
static String |
VALIDATE_IF_SCHEMA
|
static String |
VALIDATE_XML
|
static String |
WELL_FORMED
|
static String |
WS_IN_ELEMENT_CONTENT
|
static String |
XML_DECLARATION
|
static String |
XML_ENCODING
The encoding to use in the XML declaration. |
| Constructor Summary | |
DOMSerializerConfiguration()
|
|
DOMSerializerConfiguration(DOMConfiguration config)
|
|
| Method Summary | |
boolean |
canSetParameter(String name,
Object value)
|
boolean |
getFeature(String name)
A convenience method to retrieve the value that a boolean parameter (feature) is set to. |
Object |
getParameter(String name)
|
DOMStringList |
getParameterNames()
|
void |
setFeature(String name,
boolean value)
A convenience method to set the value of a boolean parameter (feature) |
void |
setParameter(String name,
Object value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String CANONICAL_FORM
public static final String CDATA_SECTIONS
public static final String CHAR_NORMALIZATION
public static final String COMMENTS
public static final String DATATYPE_NORMALIZATION
public static final String ENTITIES
public static final String ERROR_HANDLER
public static final String INFOSET
public static final String NAMESPACES
public static final String NAMESPACE_DECLARATIONS
public static final String NORMALIZE_CHARS
public static final String SPLIT_CDATA
public static final String VALIDATE_XML
public static final String VALIDATE_IF_SCHEMA
public static final String WELL_FORMED
public static final String WS_IN_ELEMENT_CONTENT
public static final String DISCARD_DEFAULT_CONTENT
public static final String FORMAT_XML
public static final String IGNORE_UNKNOWN_CHAR_DENORM
public static final String XML_DECLARATION
public static final String SOFT_TABS
public static final String INDENT
public static final String XML_ENCODING
| Constructor Detail |
public DOMSerializerConfiguration()
public DOMSerializerConfiguration(DOMConfiguration config)
throws DOMException
| Method Detail |
public boolean canSetParameter(String name,
Object value)
public Object getParameter(String name)
throws DOMException
DOMExceptionpublic DOMStringList getParameterNames()
public void setParameter(String name,
Object value)
throws DOMException
DOMException
public boolean getFeature(String name)
throws DOMException
A convenience method to retrieve the value that a boolean parameter (feature) is set to.
name - The name of the feature to get the value of
DOMException
public void setFeature(String name,
boolean value)
throws DOMException
A convenience method to set the value of a boolean parameter (feature)
name - The feature to set the value ofvalue - The boolean value to set to the feature
DOMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||