sk.baka.ikslibs.sax
Class SAXConstants

java.lang.Object
  extended by sk.baka.ikslibs.sax.SAXConstants

public final class SAXConstants
extends Object

SAX constants.

Author:
Martin Vysny

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

F_NAMESPACES

public static final String F_NAMESPACES

"http://xml.org/sax/features/namespaces"

Default: true

Note: If the validation feature is set to true, then the document must contain a grammar that supports the use of namespaces.

See Also:
Constant Field Values

F_USE_ENTITY_RESOLVER2

public static final String F_USE_ENTITY_RESOLVER2

"http://xml.org/sax/features/use-entity-resolver2"

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.

See Also:
Constant Field Values

F_VALIDATION

public static final String F_VALIDATION

"http://xml.org/sax/features/validation"

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.

See Also:
Constant Field Values

F_VALIDATION_DYNAMIC

public static final String F_VALIDATION_DYNAMIC

"http://apache.org/xml/features/validation/dynamic"

Default: false

See Also:
Constant Field Values

F_VALIDATION_SCHEMA

public static final String F_VALIDATION_SCHEMA

"http://apache.org/xml/features/validation/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.

See Also:
Constant Field Values

F_VALIDATION_SCHEMA_FULL_CHECKING

public static final String F_VALIDATION_SCHEMA_FULL_CHECKING

"http://apache.org/xml/features/validation/schema-full-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.

See Also:
Constant Field Values

F_VALIDATION_SCHEMA_NORMALIZED_VALUE

public static final String F_VALIDATION_SCHEMA_NORMALIZED_VALUE

"http://apache.org/xml/features/validation/schema/normalized-value"

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.

See Also:
F_VALIDATION, F_VALIDATION_SCHEMA, F_VALIDATION_SCHEMA_ELEMENT_DEFAULT, Constant Field Values

F_VALIDATION_SCHEMA_ELEMENT_DEFAULT

public static final String F_VALIDATION_SCHEMA_ELEMENT_DEFAULT

"http://apache.org/xml/features/validation/schema/element-default"

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.

See Also:
F_VALIDATION, F_VALIDATION_SCHEMA, F_VALIDATION_SCHEMA_NORMALIZED_VALUE, Constant Field Values

F_VALIDATION_SCHEMA_AUGMENT_PSVI

public static final String F_VALIDATION_SCHEMA_AUGMENT_PSVI

"http://apache.org/xml/features/validation/schema/augment-psvi"

Default: true

Access: (parsing) read-only; (not parsing) read-write;

Note: This feature can be turned off to improve parsing performance.

See Also:
http://xml.org/sax/features/validation, http://apache.org/xml/features/validation/schema, Constant Field Values

F_VALIDATION_SCHEMA_IGNORE_XSI

public 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;

Since:
Xerces-J 2.8.0
See Also:
http://xml.org/sax/features/validation, http://apache.org/xml/features/validation/schema, Constant Field Values

F_GENERATE_SYNTHETIC_ANNOTATIONS

public 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;

Since:
Xerces-J 2.7.0
See Also:
http://xml.org/sax/features/validation, http://apache.org/xml/features/validation/schema, http://apache.org/xml/features/validate-annotations, Constant Field Values

F_VALIDATE_ANNOTATIONS

public static final String F_VALIDATE_ANNOTATIONS

"http://apache.org/xml/features/validate-annotations"

Default: false

Access: (parsing) read-only; (not parsing) read-write;

Since:
Xerces-J 2.7.0
See Also:
http://xml.org/sax/features/validation, http://apache.org/xml/features/validation/schema, http://apache.org/xml/features/generate-synthetic-annotations, Constant Field Values

F_HONOUR_ALL_SCHEMALOCATIONS

public 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;

Since:
Xerces-J 2.7.0
See Also:
Constant Field Values

F_EXTERNAL_GENERAL_ENTITIES

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;

See Also:
http://xml.org/sax/features/external-parameter-entities, Constant Field Values

F_EXTERNAL_PARAMETER_ENTITIES

public 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;

See Also:
http://xml.org/sax/features/external-general-entities, Constant Field Values

F_VALIDATION_BALANCE_SYNTAX_TREES

public 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.

Since:
Xerces-J 2.8.0
See Also:
Constant Field Values

F_VALIDATION_ID_IDREF_CHECKING

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.

Since:
Xerces-J 2.8.0
See Also:
http://xml.org/sax/features/validation, http://apache.org/xml/features/validation/schema, Constant Field Values

F_VALIDATION_IDENTITY_CONSTRAINT_CHECK

public 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;

Since:
Xerces-J 2.8.0
See Also:
http://xml.org/sax/features/validation, http://apache.org/xml/features/validation/schema, Constant Field Values

F_VALIDATION_UNPARSED_ENTITY_CHECK

public 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.

Since:
Xerces-J 2.8.0
See Also:
http://xml.org/sax/features/validation, http://apache.org/xml/features/validation/schema, Constant Field Values

F_VALIDATION_WARN_ON_DUP_ATTDEF

public static final String F_VALIDATION_WARN_ON_DUP_ATTDEF

"http://apache.org/xml/features/validation/warn-on-duplicate-attdef"

Default: false

See Also:
Constant Field Values

F_VALIDATION_WARN_ON_UNDECL_ELEMDEF

public static final String F_VALIDATION_WARN_ON_UNDECL_ELEMDEF

"http://apache.org/xml/features/validation/warn-on-undeclared-elemdef"

Default: false

See Also:
Constant Field Values

F_WARN_ON_DUP_ENTITYDEF

public static final String F_WARN_ON_DUP_ENTITYDEF

"http://apache.org/xml/features/warn-on-duplicate-entitydef"

Default: false

See Also:
Constant Field Values

F_ALLOW_JAVA_ENCODINGS

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.

See Also:
Constant Field Values

F_CONTINUE_AFTER_FATAL

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.

See Also:
Constant Field Values

F_NONVALIDATING_LOAD_DTD_GRAMMAR

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.

See Also:
http://xml.org/sax/features/validation, http://apache.org/xml/features/nonvalidating/load-external-dtd, Constant Field Values

F_NONVALIDATING_LOAD_EXTERN_DTD

public 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.

See Also:
http://xml.org/sax/features/validation, http://apache.org/xml/features/nonvalidating/load-dtd-grammar, Constant Field Values

F_SCANNER_NOTIFY_CHAR_REFS

public static final String F_SCANNER_NOTIFY_CHAR_REFS

"http://apache.org/xml/features/scanner/notify-char-refs"

Default: false

See Also:
http://apache.org/xml/features/scanner/notify-builtin-refs, Constant Field Values

F_SCANNER_NOTIFY_BUILTIN_REFS

public static final String F_SCANNER_NOTIFY_BUILTIN_REFS

"http://apache.org/xml/features/scanner/notify-builtin-refs"

Default: false

See Also:
http://apache.org/xml/features/scanner/notify-char-refs, Constant Field Values

F_DISALLOW_DOCTYPE_DECL

public static final String F_DISALLOW_DOCTYPE_DECL

"http://apache.org/xml/features/disallow-doctype-decl"

Default: false

Since:
Xerces-J 2.3.0
See Also:
Constant Field Values

F_STANDARD_URI_CONFORMANT

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.

Since:
Xerces-J 2.3.0
See Also:
Constant Field Values

F_XINCLUDE

public static final String F_XINCLUDE

"http://apache.org/xml/features/xinclude"

Default: false

Since:
Xerces-J 2.7.0
See Also:
http://apache.org/xml/features/xinclude/fixup-base-uris, http://apache.org/xml/features/xinclude/fixup-language, Constant Field Values

F_XINCLUDE_FIXUP_BASE_URIS

public static final String F_XINCLUDE_FIXUP_BASE_URIS

"http://apache.org/xml/features/xinclude/fixup-base-uris"

Default: true

Since:
Xerces-J 2.7.0
See Also:
http://apache.org/xml/features/xinclude, Constant Field Values

F_XINCLUDE_FIXUP_LANGUAGE

public static final String F_XINCLUDE_FIXUP_LANGUAGE

"http://apache.org/xml/features/xinclude/fixup-language"

Default: true

Since:
Xerces-J 2.7.0
See Also:
http://apache.org/xml/features/xinclude, Constant Field Values

F_DOM_DEFER_NODE_EXPANSION

public 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.

See Also:
Constant Field Values

F_DOM_CREATE_ENTITY_REFS

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.

See Also:
Constant Field Values

F_DOM_INCLUDE_IGNORABLE_WS

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.

See Also:
Constant Field Values

F_SAX_NAMESPACE_PREFIXES

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;

See Also:
Constant Field Values

F_SAX_STRING_INTERNING

public static final String F_SAX_STRING_INTERNING

"http://xml.org/sax/features/string-interning"

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.

See Also:
Constant Field Values

F_SAX_LEXHANDLER_PARAM_ENTITIES

public static final String F_SAX_LEXHANDLER_PARAM_ENTITIES

"http://xml.org/sax/features/lexical-handler/parameter-entities"

Default: true

Since:
Xerces-J 2.7.0
See Also:
Constant Field Values

F_SAX_IS_STANDALONE

public static final String F_SAX_IS_STANDALONE

"http://xml.org/sax/features/is-standalone"

Access: (parsing) read-only; (not parsing) none;

Since:
Xerces-J 2.7.0
See Also:
Constant Field Values

F_SAX_RESOLVE_DTD_URIS

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.

Since:
Xerces-J 2.7.0
See Also:
Constant Field Values

F_SAX_UNICODE_NORMALIZATION_CHECK

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.

Since:
Xerces-J 2.7.0
See Also:
Constant Field Values

F_SAX_USE_ATTRIBUTES2

public static final String F_SAX_USE_ATTRIBUTES2

"http://xml.org/sax/features/use-attributes2"

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.

Since:
Xerces-J 2.7.0
See Also:
Constant Field Values

F_SAX_USE_LOCATOR2

public static final String F_SAX_USE_LOCATOR2

"http://xml.org/sax/features/use-locator2"

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.

Since:
Xerces-J 2.7.0
See Also:
Constant Field Values

F_SAX_XMLNS_URIS

public static final String F_SAX_XMLNS_URIS

"http://xml.org/sax/features/xmlns-uris"

Default: false

Since:
Xerces-J 2.7.0
See Also:
http://xml.org/sax/features/namespaces, http://xml.org/sax/features/namespace-prefixes, Constant Field Values

F_SAX_XML_1_1

public 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.

Since:
Xerces-J 2.7.0
See Also:
Constant Field Values

F_ALLOW_DTD_EVENTS_AFTER_ENDDTD

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.

Since:
Xerces-J 2.5.0
See Also:
Constant Field Values

P_LEXICAL_HANDLER

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.

See Also:
Constant Field Values


Copyright © 2006 Martin Vysny - baka. All Rights Reserved.