|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ikslibs.sax.SAXConstants
public final class SAXConstants
SAX constants.
Field Summary | |
---|---|
static String |
F_ALLOW_DTD_EVENTS_AFTER_ENDDTD
"http://xml.org/sax/features/allow-dtd-events-after-endDTD" |
static String |
F_ALLOW_JAVA_ENCODINGS
"http://apache.org/xml/features/allow-java-encodings" |
static String |
F_CONTINUE_AFTER_FATAL
"http://apache.org/xml/features/continue-after-fatal-error" |
static String |
F_DISALLOW_DOCTYPE_DECL
"http://apache.org/xml/features/disallow-doctype-decl" |
static String |
F_DOM_CREATE_ENTITY_REFS
"http://apache.org/xml/features/dom/create-entity-ref-nodes" |
static String |
F_DOM_DEFER_NODE_EXPANSION
"http://apache.org/xml/features/dom/defer-node-expansion" |
static String |
F_DOM_INCLUDE_IGNORABLE_WS
"http://apache.org/xml/features/dom/include-ignorable-whitespace" |
static String |
F_EXTERNAL_GENERAL_ENTITIES
"http://xml.org/sax/features/external-general-entities" |
static String |
F_EXTERNAL_PARAMETER_ENTITIES
"http://xml.org/sax/features/external-parameter-entities" |
static String |
F_GENERATE_SYNTHETIC_ANNOTATIONS
"http://apache.org/xml/features/generate-synthetic-annotations" |
static String |
F_HONOUR_ALL_SCHEMALOCATIONS
"http://apache.org/xml/features/honour-all-schemaLocations" |
static String |
F_NAMESPACES
"http://xml.org/sax/features/namespaces" |
static String |
F_NONVALIDATING_LOAD_DTD_GRAMMAR
"http://apache.org/xml/features/nonvalidating/load-dtd-grammar" |
static String |
F_NONVALIDATING_LOAD_EXTERN_DTD
"http://apache.org/xml/features/nonvalidating/load-external-dtd" |
static String |
F_SAX_IS_STANDALONE
"http://xml.org/sax/features/is-standalone" |
static String |
F_SAX_LEXHANDLER_PARAM_ENTITIES
"http://xml.org/sax/features/lexical-handler/parameter-entities" |
static String |
F_SAX_NAMESPACE_PREFIXES
"http://xml.org/sax/features/namespace-prefixes" |
static String |
F_SAX_RESOLVE_DTD_URIS
"http://xml.org/sax/features/resolve-dtd-uris" |
static String |
F_SAX_STRING_INTERNING
"http://xml.org/sax/features/string-interning" |
static String |
F_SAX_UNICODE_NORMALIZATION_CHECK
"http://xml.org/sax/features/unicode-normalization-checking" |
static String |
F_SAX_USE_ATTRIBUTES2
"http://xml.org/sax/features/use-attributes2" |
static String |
F_SAX_USE_LOCATOR2
"http://xml.org/sax/features/use-locator2" |
static String |
F_SAX_XML_1_1
"http://xml.org/sax/features/xml-1.1" |
static String |
F_SAX_XMLNS_URIS
"http://xml.org/sax/features/xmlns-uris" |
static String |
F_SCANNER_NOTIFY_BUILTIN_REFS
"http://apache.org/xml/features/scanner/notify-builtin-refs" |
static String |
F_SCANNER_NOTIFY_CHAR_REFS
"http://apache.org/xml/features/scanner/notify-char-refs" |
static String |
F_STANDARD_URI_CONFORMANT
"http://apache.org/xml/features/standard-uri-conformant" |
static String |
F_USE_ENTITY_RESOLVER2
"http://xml.org/sax/features/use-entity-resolver2" |
static String |
F_VALIDATE_ANNOTATIONS
"http://apache.org/xml/features/validate-annotations" |
static String |
F_VALIDATION
"http://xml.org/sax/features/validation" |
static String |
F_VALIDATION_BALANCE_SYNTAX_TREES
"http://apache.org/xml/features/validation/balance-syntax-trees" |
static String |
F_VALIDATION_DYNAMIC
"http://apache.org/xml/features/validation/dynamic" |
static String |
F_VALIDATION_ID_IDREF_CHECKING
"http://apache.org/xml/features/validation/id-idref-checking" |
static String |
F_VALIDATION_IDENTITY_CONSTRAINT_CHECK
"http://apache.org/xml/features/validation/identity-constraint-checking" |
static String |
F_VALIDATION_SCHEMA
"http://apache.org/xml/features/validation/schema" |
static String |
F_VALIDATION_SCHEMA_AUGMENT_PSVI
"http://apache.org/xml/features/validation/schema/augment-psvi" |
static String |
F_VALIDATION_SCHEMA_ELEMENT_DEFAULT
"http://apache.org/xml/features/validation/schema/element-default" |
static String |
F_VALIDATION_SCHEMA_FULL_CHECKING
"http://apache.org/xml/features/validation/schema-full-checking" |
static String |
F_VALIDATION_SCHEMA_IGNORE_XSI
"http://apache.org/xml/features/validation/schema/ignore-xsi-type-until-elemdecl" |
static String |
F_VALIDATION_SCHEMA_NORMALIZED_VALUE
"http://apache.org/xml/features/validation/schema/normalized-value" |
static String |
F_VALIDATION_UNPARSED_ENTITY_CHECK
"http://apache.org/xml/features/validation/unparsed-entity-checking" |
static String |
F_VALIDATION_WARN_ON_DUP_ATTDEF
"http://apache.org/xml/features/validation/warn-on-duplicate-attdef" |
static String |
F_VALIDATION_WARN_ON_UNDECL_ELEMDEF
"http://apache.org/xml/features/validation/warn-on-undeclared-elemdef" |
static String |
F_WARN_ON_DUP_ENTITYDEF
"http://apache.org/xml/features/warn-on-duplicate-entitydef" |
static String |
F_XINCLUDE
"http://apache.org/xml/features/xinclude" |
static String |
F_XINCLUDE_FIXUP_BASE_URIS
"http://apache.org/xml/features/xinclude/fixup-base-uris" |
static String |
F_XINCLUDE_FIXUP_LANGUAGE
"http://apache.org/xml/features/xinclude/fixup-language" |
static String |
P_LEXICAL_HANDLER
"http://xml.org/sax/properties/lexical-handler" |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String F_NAMESPACES
"http://xml.org/sax/features/namespaces"
true
- Perform namespace processing: prefixes will be
stripped off element and attribute names and replaced with the
corresponding namespace URIs. By default, the two will simply be
concatenated, but the namespace-sep core property allows the application
to specify a delimiter string for separating the URI part and the local
part.false
- Do not perform namespace processing.
Default: true
Note: If the validation feature is set to true, then the document must contain a grammar that supports the use of namespaces.
public static final String F_USE_ENTITY_RESOLVER2
"http://xml.org/sax/features/use-entity-resolver2"
true
- 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. false
- The methods of the
org.xml.sax.ext.EntityResolver2 interface will not be used.
Default: true
Note: If the
disallow DOCTYPE declaration feature
is
set to true
org.xml.sax.ext.EntityResolver2.getExternalSubset() will not be called
when the document contains no DOCTYPE declaration.
public static final String F_VALIDATION
"http://xml.org/sax/features/validation"
true
- Validate the document and report validity
errors. false
- Do not report validity errors.
Default: false
Note: If this feature is set to true, the document must specify a grammar. By default, validation will occur against DTD. For more information, please, refer to the FAQ. If this feature is set to false, and document specifies a grammar that grammar might be parsed but no validation of the document contents will be performed.
public static final String F_VALIDATION_DYNAMIC
"http://apache.org/xml/features/validation/dynamic"
true
- The parser will validate the document only if
a grammar is specified.false
- Validation is determined by the state of the
validation feature.
Default: false
public static final String F_VALIDATION_SCHEMA
"http://apache.org/xml/features/validation/schema"
true
- Turn on XML Schema validation by inserting an
XML Schema validator into the pipeline.false
- Do not report validation errors against XML
Schema.
Default: false
Note: Validation errors will only be reported if the
validation feature
is set to true
.
For more information, please, refer to the FAQ
Note: Checking of constraints on a schema grammar which are either
time-consuming or memory intensive such as unique particle attribution
will only occur if the
schema full checking
feature
is set to true
.
public static final String F_VALIDATION_SCHEMA_FULL_CHECKING
"http://apache.org/xml/features/validation/schema-full-checking"
true
: Enable full schema grammar constraint
checking, including checking which may be time-consuming or memory
intensive. Currently, unique particle attribution constraint checking and
particle derivation restriction checking are controlled by this option.false
: Disable full constraint checking.
Default: false
Note: This feature checks the Schema grammar itself for additional errors that are time-consuming or memory intensive. It does not affect the level of checking performed on document instances that use Schema grammars.
public static final String F_VALIDATION_SCHEMA_NORMALIZED_VALUE
"http://apache.org/xml/features/validation/schema/normalized-value"
true
: Expose via SAX and DOM XML Schema normalized
values for attributes and elements.false
: Expose the infoset values
Default: true
Access: (parsing) read-only; (not parsing) read-write;
Note: XML Schema normalized values will be exposed only if both
schema validation
and
validation
features are set to true
.
F_VALIDATION
,
F_VALIDATION_SCHEMA
,
F_VALIDATION_SCHEMA_ELEMENT_DEFAULT
,
Constant Field Valuespublic static final String F_VALIDATION_SCHEMA_ELEMENT_DEFAULT
"http://apache.org/xml/features/validation/schema/element-default"
true
: Send XML Schema element default values via
characters().false
: Do not send XML Schema default values in XNI
Default: true
Access: (parsing) read-only; (not parsing) read-write;
Note: XML Schema default values will be send via characters() if both
schema validation
and
validation
features are set to true
.
F_VALIDATION
,
F_VALIDATION_SCHEMA
,
F_VALIDATION_SCHEMA_NORMALIZED_VALUE
,
Constant Field Valuespublic static final String F_VALIDATION_SCHEMA_AUGMENT_PSVI
"http://apache.org/xml/features/validation/schema/augment-psvi"
true
: Augment Post-Schema-Validation-Infoset.false
: Do not augment
Post-Schema-Validation-Infoset.Default: true
Access: (parsing) read-only; (not parsing) read-write;
Note: This feature can be turned off to improve parsing performance.
http://xml.org/sax/features/validation
,
http://apache.org/xml/features/validation/schema
,
Constant Field Valuespublic static final String F_VALIDATION_SCHEMA_IGNORE_XSI
"http://apache.org/xml/features/validation/schema/ignore-xsi-type-until-elemdecl"
Default: false
Access: (parsing) read-only; (not parsing) read-write;
http://xml.org/sax/features/validation
,
http://apache.org/xml/features/validation/schema
,
Constant Field Valuespublic static final String F_GENERATE_SYNTHETIC_ANNOTATIONS
"http://apache.org/xml/features/generate-synthetic-annotations"
Default: false
Access: (parsing) read-only; (not parsing) read-write;
http://xml.org/sax/features/validation
,
http://apache.org/xml/features/validation/schema
,
http://apache.org/xml/features/validate-annotations
,
Constant Field Valuespublic static final String F_VALIDATE_ANNOTATIONS
"http://apache.org/xml/features/validate-annotations"
Default: false
Access: (parsing) read-only; (not parsing) read-write;
http://xml.org/sax/features/validation
,
http://apache.org/xml/features/validation/schema
,
http://apache.org/xml/features/generate-synthetic-annotations
,
Constant Field Valuespublic static final String F_HONOUR_ALL_SCHEMALOCATIONS
"http://apache.org/xml/features/honour-all-schemaLocations"
Default: false
Access: (parsing) read-only; (not parsing) read-write;
public static final String F_EXTERNAL_GENERAL_ENTITIES
"http://xml.org/sax/features/external-general-entities"
Default: true
Access: (parsing) read-only; (not parsing) read-write;
http://xml.org/sax/features/external-parameter-entities
,
Constant Field Valuespublic static final String F_EXTERNAL_PARAMETER_ENTITIES
"http://xml.org/sax/features/external-parameter-entities"
Default: true
Access: (parsing) read-only; (not parsing) read-write;
http://xml.org/sax/features/external-general-entities
,
Constant Field Valuespublic static final String F_VALIDATION_BALANCE_SYNTAX_TREES
"http://apache.org/xml/features/validation/balance-syntax-trees"
Default: false
Access: (parsing) read-only; (not parsing) read-write;
Note: Enabling this feature may cost your application some performance when DTDs are processed so it is recommended that it only be turned on when necessary.
public static final String F_VALIDATION_ID_IDREF_CHECKING
"http://apache.org/xml/features/validation/id-idref-checking"
Default: true
Access: (parsing) read-only; (not parsing) read-write;
Note: This feature only applies to schema validation.
http://xml.org/sax/features/validation
,
http://apache.org/xml/features/validation/schema
,
Constant Field Valuespublic static final String F_VALIDATION_IDENTITY_CONSTRAINT_CHECK
"http://apache.org/xml/features/validation/identity-constraint-checking"
Default: true
Access: (parsing) read-only; (not parsing) read-write;
http://xml.org/sax/features/validation
,
http://apache.org/xml/features/validation/schema
,
Constant Field Valuespublic static final String F_VALIDATION_UNPARSED_ENTITY_CHECK
"http://apache.org/xml/features/validation/unparsed-entity-checking"
Default: true
Access: (parsing) read-only; (not parsing) read-write;
Note: This feature only applies to schema validation.
http://xml.org/sax/features/validation
,
http://apache.org/xml/features/validation/schema
,
Constant Field Valuespublic static final String F_VALIDATION_WARN_ON_DUP_ATTDEF
"http://apache.org/xml/features/validation/warn-on-duplicate-attdef"
Default: false
public static final String F_VALIDATION_WARN_ON_UNDECL_ELEMDEF
"http://apache.org/xml/features/validation/warn-on-undeclared-elemdef"
Default: false
public static final String F_WARN_ON_DUP_ENTITYDEF
"http://apache.org/xml/features/warn-on-duplicate-entitydef"
Default: false
public static final String F_ALLOW_JAVA_ENCODINGS
"http://apache.org/xml/features/allow-java-encodings"
Default: false
Note: A true value for this feature allows the encoding of the file to be specified as a Java encoding name as well as the standard ISO encoding name. Be aware that other parsers may not be able to use Java encoding names. If this feature is set to false, an error will be generated if Java encoding names are used.
public static final String F_CONTINUE_AFTER_FATAL
"http://apache.org/xml/features/continue-after-fatal-error"
Default: false
Note: The behavior of the parser when this feature is set to true is undetermined! Therefore use this feature with extreme caution because the parser may get stuck in an infinite loop or worse.
public static final String F_NONVALIDATING_LOAD_DTD_GRAMMAR
"http://apache.org/xml/features/nonvalidating/load-dtd-grammar"
Default: true
Note: This feature is always on when validation is on.
http://xml.org/sax/features/validation
,
http://apache.org/xml/features/nonvalidating/load-external-dtd
,
Constant Field Valuespublic static final String F_NONVALIDATING_LOAD_EXTERN_DTD
"http://apache.org/xml/features/nonvalidating/load-external-dtd"
Default: true
Note: This feature is always on when validation is on.
http://xml.org/sax/features/validation
,
http://apache.org/xml/features/nonvalidating/load-dtd-grammar
,
Constant Field Valuespublic static final String F_SCANNER_NOTIFY_CHAR_REFS
"http://apache.org/xml/features/scanner/notify-char-refs"
Default: false
http://apache.org/xml/features/scanner/notify-builtin-refs
,
Constant Field Valuespublic static final String F_SCANNER_NOTIFY_BUILTIN_REFS
"http://apache.org/xml/features/scanner/notify-builtin-refs"
Default: false
http://apache.org/xml/features/scanner/notify-char-refs
,
Constant Field Valuespublic static final String F_DISALLOW_DOCTYPE_DECL
"http://apache.org/xml/features/disallow-doctype-decl"
Default: false
public static final String F_STANDARD_URI_CONFORMANT
"http://apache.org/xml/features/standard-uri-conformant"
Default: false
Note: It's recommended to set this feature to true if you want your application/documents to be truly portable across different XML processors.
public static final String F_XINCLUDE
"http://apache.org/xml/features/xinclude"
Default: false
http://apache.org/xml/features/xinclude/fixup-base-uris
,
http://apache.org/xml/features/xinclude/fixup-language
,
Constant Field Valuespublic static final String F_XINCLUDE_FIXUP_BASE_URIS
"http://apache.org/xml/features/xinclude/fixup-base-uris"
Default: true
http://apache.org/xml/features/xinclude
,
Constant Field Valuespublic static final String F_XINCLUDE_FIXUP_LANGUAGE
"http://apache.org/xml/features/xinclude/fixup-language"
Default: true
http://apache.org/xml/features/xinclude
,
Constant Field Valuespublic static final String F_DOM_DEFER_NODE_EXPANSION
"http://apache.org/xml/features/dom/defer-node-expansion"
Default: true**
Note: In the DOMBuilder implementation the default value of this feature is false.
Note: When this feature is set to true, the DOM nodes in the returned document are expanded as the tree is traversed. This allows the parser to return a document faster than if the tree is fully expanded during parsing and improves memory usage when the whole tree is not traversed.
public static final String F_DOM_CREATE_ENTITY_REFS
"http://apache.org/xml/features/dom/create-entity-ref-nodes"
Default: true
Note: This feature only affects the appearance of EntityReference nodes in the DOM tree. The document will always contain the entity reference child nodes.
public static final String F_DOM_INCLUDE_IGNORABLE_WS
"http://apache.org/xml/features/dom/include-ignorable-whitespace"
Default: true
Note: The only way that the parser can determine if text is ignorable is by reading the associated grammar and having a content model for the document. When ignorable whitespace text nodes are included in the DOM tree, they will be flagged as ignorable. The ignorable flag can be queried by calling the TextImpl#isIgnorableWhitespace():boolean method. This feature is relevant only when the grammar is DTD.
public static final String F_SAX_NAMESPACE_PREFIXES
"http://xml.org/sax/features/namespace-prefixes"
Default: false
Access: (parsing) read-only; (not parsing) read-write;
public static final String F_SAX_STRING_INTERNING
"http://xml.org/sax/features/string-interning"
String.intern()
method.Default: true
Access: (parsing) read-only; (not parsing) read-write;
Note: Xerces-J always internalizes all strings mentioned above using the String#intern() method. This feature can only be set to true.
public static final String F_SAX_LEXHANDLER_PARAM_ENTITIES
"http://xml.org/sax/features/lexical-handler/parameter-entities"
Default: true
public static final String F_SAX_IS_STANDALONE
"http://xml.org/sax/features/is-standalone"
Access: (parsing) read-only; (not parsing) none;
public static final String F_SAX_RESOLVE_DTD_URIS
"http://xml.org/sax/features/resolve-dtd-uris"
Default: true
Note: This feature does not apply to EntityResolver.resolveEntity(), which is not used to report declarations, or to LexicalHandler.startDTD(), which already provides the non-absolutized URI.
public static final String F_SAX_UNICODE_NORMALIZATION_CHECK
"http://xml.org/sax/features/unicode-normalization-checking"
Default: false
Note: As there is currently no support for Unicode normalization checking, this feature can only be set to false.
public static final String F_SAX_USE_ATTRIBUTES2
"http://xml.org/sax/features/use-attributes2"
ContentHandler#startElement()
implement the Attributes2
interface.Attributes2
interface. Access: read-only
Note: Xerces-J will always report Attributes objects that also implement org.xml.sax.ext.Attributes2 so the value of this feature will always be true.
public static final String F_SAX_USE_LOCATOR2
"http://xml.org/sax/features/use-locator2"
ContentHandler#setDocumentLocator()
implement the
Locator2
interface.Locator2
interface. Access: read-only
Note: Xerces-J will always report Locator objects that also implement org.xml.sax.ext.Locator2 so the value of this feature will always be true.
public static final String F_SAX_XMLNS_URIS
"http://xml.org/sax/features/xmlns-uris"
Default: false
http://xml.org/sax/features/namespaces
,
http://xml.org/sax/features/namespace-prefixes
,
Constant Field Valuespublic static final String F_SAX_XML_1_1
"http://xml.org/sax/features/xml-1.1"
Access: read-only
Note: The value of this feature will depend on whether the parser configuration owned by the SAX parser is known to support XML 1.1.
public static final String F_ALLOW_DTD_EVENTS_AFTER_ENDDTD
"http://xml.org/sax/features/allow-dtd-events-after-endDTD"
Default: true**
Note: The default value for this feature is true, except when using SAX, because SAX requires that no DTD events be sent after the endDTD event. Thus, in order to maintain SAX compatibility, this feature cannot be true by default for SAX. Setting this feature to false can result in loss of information, if notations and unparsed entities were needed to resolve references in the document.
Note: This feature is only relevant when XInclude processing is being done. Due to the nature of implementing XInclude in a stream-based API, it is not possible to know the complete set of required unparsed entities and notations before the endDTD event from the source document is sent. If an XIncludeHandler is not present in your pipeline, the value of this feature is irrelevant.
Note: This feature is currently experimental, and might be removed or changed in the next release. If you have any concerns or suggestions about its use, please contact the j-users@xerces.apache.org mailing list.
public static final String P_LEXICAL_HANDLER
"http://xml.org/sax/properties/lexical-handler"
To set the LexicalHandler for an XML reader, use the
setProperty
method with the
property name http://xml.org/sax/properties/lexical-handler
and an object implementing this interface (or null) as the value. If the
reader does not report lexical events, it will throw a
SAXNotRecognizedException
when you attempt to register the handler.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |