public enum EXMLParserFeature extends Enum<EXMLParserFeature> implements IHasName
| Enum Constant and Description |
|---|
AUGMENT_PSVI
When set: Augment Post-Schema-Validation-Infoset.
|
BALANCE_SYNTAX_TREES
When set: Construct an optimal representation for DTD content models to
significantly reduce the likelihood a StackOverflowError will occur when
large content models are processed.
|
DYNAMIC
When set: The parser will validate the document only if a grammar is
specified.
|
ELEMENT_DEFAULT
When set: Send XML Schema element default values via characters().
|
EXTERNAL_GENERAL_ENTITIES
When set: Include external general entities.
|
EXTERNAL_PARAMETER_ENTITIES
When set: Include external parameter entities and the external DTD subset.
|
GENERATE_SYNTHETIC_ANNOTATIONS
When set: Enable generation of synthetic annotations.
|
HONOUR_ALL_SCHEMA_LOCATIONS
When set: All schema location hints will be used to locate the components
for a given target namespace.
|
ID_IDREF_CHECKING
When set: Enable checking of ID/IDREF constraints.
|
IDENTITY_CONSTRAINT_CHECKING
When set: Enable identity constraint checking.
|
IGNORE_XSI_TYPE_UNTIL_ELEMDECL
When set: xsi:type attributes will be ignored until a global element
declaration has been found, at which point xsi:type attributes will be
processed on the element for which the global element declaration was found
as well as its descendants.
|
NAMESPACES
When set: Perform namespace processing: prefixes will be stripped off
element and attribute names and replaced with the corresponding namespace
URIs.
|
NORMALIZED_VALUE
When set: Expose via SAX and DOM XML Schema normalized values for
attributes and elements.
|
SAX_FEATURE_IS_STANDALONE
When set: The document specified standalone="yes" in its XML declaration.
|
SAX_IS_XML11_PARSER
When set: The parser supports both XML 1.0 and XML 1.1.
|
SAX_NAMESPACE_PREFIXES
Namespace prefixes feature id
(http://xml.org/sax/features/namespace-prefixes).
|
SAX_USE_ATTRIBUTES2
When set: The Attributes objects passed by the parser in
org.xml.sax.ContentHandler.startElement() implement the
org.xml.sax.ext.Attributes2 interface.
|
SAX_USE_LOCATOR2
When set: The Locator objects passed by the parser in
org.xml.sax.ContentHandler.setDocumentLocator() implement the
org.xml.sax.ext.Locator2 interface.
|
SCHEMA
When set: Turn on XML Schema validation by inserting an XML Schema
validator into the pipeline.
|
SCHEMA_FULL_CHECKING
When set: Enable full schema grammar constraint checking, including
checking which may be time-consuming or memory intensive.
|
UNPARSED_ENTITY_CHECKING
When set: Check that each value of type ENTITY matches the name of an
unparsed entity declared in the DTD.
|
USE_ENTITY_RESOLVER2
When set: The methods of the org.xml.sax.ext.EntityResolver2 interface will
be used when an object implementing this interface is registered with the
parser using setEntityResolver.
|
VALIDATE_ANNOTATIONS
When set: Schema annotations will be laxly validated against available
schema components.
|
VALIDATION
When set: Validate the document and report validity errors.
|
WARN_ON_DUPLICATE_ATTDEF
When set: Report a warning when a duplicate attribute is re-declared.
|
WARN_ON_DUPLICATE_ENTITYDEF
When set: Report a warning for duplicate entity declaration.
|
WARN_ON_UNDECLARED_ELEMDEF
When set: Report a warning if an element referenced in a content model is
not declared.
|
XINCLUDE
When set: Enable XInclude processing.
|
XINCLUDE_FIXUP_BASE_URIS
When set: Perform base URI fixup as specified by the XInclude
Recommendation.
|
XINCLUDE_FIXUP_LANGUAGE
When set: Perform language fixup as specified by the XInclude
Recommendation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyTo(DocumentBuilderFactory aDocumentBuilderFactory,
boolean bValue) |
void |
applyTo(XMLReader aParser,
boolean bValue) |
static List<EXMLParserFeature> |
getAllFeaturesOfType(EXMLParserFeatureType eFeatureType) |
EXMLParserFeatureType |
getFeatureType() |
static EXMLParserFeature |
getFromNameOrNull(String sName) |
String |
getName() |
static EXMLParserFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EXMLParserFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EXMLParserFeature NAMESPACES
public static final EXMLParserFeature USE_ENTITY_RESOLVER2
public static final EXMLParserFeature VALIDATION
public static final EXMLParserFeature DYNAMIC
public static final EXMLParserFeature SCHEMA
public static final EXMLParserFeature SCHEMA_FULL_CHECKING
public static final EXMLParserFeature NORMALIZED_VALUE
public static final EXMLParserFeature ELEMENT_DEFAULT
public static final EXMLParserFeature AUGMENT_PSVI
public static final EXMLParserFeature IGNORE_XSI_TYPE_UNTIL_ELEMDECL
public static final EXMLParserFeature GENERATE_SYNTHETIC_ANNOTATIONS
public static final EXMLParserFeature VALIDATE_ANNOTATIONS
public static final EXMLParserFeature HONOUR_ALL_SCHEMA_LOCATIONS
public static final EXMLParserFeature EXTERNAL_GENERAL_ENTITIES
public static final EXMLParserFeature EXTERNAL_PARAMETER_ENTITIES
public static final EXMLParserFeature BALANCE_SYNTAX_TREES
public static final EXMLParserFeature ID_IDREF_CHECKING
public static final EXMLParserFeature IDENTITY_CONSTRAINT_CHECKING
public static final EXMLParserFeature UNPARSED_ENTITY_CHECKING
public static final EXMLParserFeature WARN_ON_DUPLICATE_ATTDEF
public static final EXMLParserFeature WARN_ON_UNDECLARED_ELEMDEF
public static final EXMLParserFeature WARN_ON_DUPLICATE_ENTITYDEF
public static final EXMLParserFeature XINCLUDE
public static final EXMLParserFeature XINCLUDE_FIXUP_BASE_URIS
public static final EXMLParserFeature XINCLUDE_FIXUP_LANGUAGE
public static final EXMLParserFeature SAX_NAMESPACE_PREFIXES
public static final EXMLParserFeature SAX_FEATURE_IS_STANDALONE
public static final EXMLParserFeature SAX_USE_ATTRIBUTES2
public static final EXMLParserFeature SAX_USE_LOCATOR2
public static final EXMLParserFeature SAX_IS_XML11_PARSER
public static EXMLParserFeature[] values()
for (EXMLParserFeature c : EXMLParserFeature.values()) System.out.println(c);
public static EXMLParserFeature valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null@Nonnull public EXMLParserFeatureType getFeatureType()
public void applyTo(@Nonnull DocumentBuilderFactory aDocumentBuilderFactory, boolean bValue)
@Nullable public static EXMLParserFeature getFromNameOrNull(@Nullable String sName)
@Nonnull @ReturnsMutableCopy public static List<EXMLParserFeature> getAllFeaturesOfType(@Nonnull EXMLParserFeatureType eFeatureType)
Copyright © 2006–2014 phloc systems. All rights reserved.