Package cdc.util.data.xml
Enum XmlDataReader.Feature
- java.lang.Object
-
- java.lang.Enum<XmlDataReader.Feature>
-
- cdc.util.data.xml.XmlDataReader.Feature
-
- All Implemented Interfaces:
Serializable,Comparable<XmlDataReader.Feature>
- Enclosing class:
- XmlDataReader
public static enum XmlDataReader.Feature extends Enum<XmlDataReader.Feature>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOW_MIXED_CONTENTIf enabled, mixed content is allowed.DUMMY_ENTITY_RESOLVERIf enabled, a dummy entity resolver is used.LOAD_COMMENTSIf enabled, comments are loaded (as comment nodes).LOAD_SPACESIf enabled, spaces are loaded (as text nodes).SHARE_ATTRIBUTE_NAMESIf enabled, attributes names are shared using an internal cache.SHARE_ELEMENT_NAMESIf enabled, element names are shared using an internal cache.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XmlDataReader.FeaturevalueOf(String name)Returns the enum constant of this type with the specified name.static XmlDataReader.Feature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOAD_COMMENTS
public static final XmlDataReader.Feature LOAD_COMMENTS
If enabled, comments are loaded (as comment nodes).They are ignored by default.
-
LOAD_SPACES
public static final XmlDataReader.Feature LOAD_SPACES
If enabled, spaces are loaded (as text nodes).They are ignored by default.
-
ALLOW_MIXED_CONTENT
public static final XmlDataReader.Feature ALLOW_MIXED_CONTENT
If enabled, mixed content is allowed.
-
SHARE_ATTRIBUTE_NAMES
public static final XmlDataReader.Feature SHARE_ATTRIBUTE_NAMES
If enabled, attributes names are shared using an internal cache.No sharing by default (SAX parsers may already do this).
-
SHARE_ELEMENT_NAMES
public static final XmlDataReader.Feature SHARE_ELEMENT_NAMES
If enabled, element names are shared using an internal cache.No sharing by default (SAX parsers may already do this).
-
DUMMY_ENTITY_RESOLVER
public static final XmlDataReader.Feature DUMMY_ENTITY_RESOLVER
If enabled, a dummy entity resolver is used.This may be used to ignore DTD.
However, if entities are used, result will be wrong.
-
-
Method Detail
-
values
public static XmlDataReader.Feature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XmlDataReader.Feature c : XmlDataReader.Feature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XmlDataReader.Feature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-