FileDocCategorySizeDatePackage
Constants.javaAPI DocApache Xerces 3.0.129830Fri Sep 14 20:33:56 BST 2007org.apache.xerces.impl

Constants

public final class Constants extends Object
Commonly used constants.
xerces.internal
author
Andy Clark, IBM
version
$Id: Constants.java 446761 2006-09-15 21:59:29Z mrglavas $

Fields Summary
public static final String
NS_XMLSCHEMA
public static final String
NS_DTD
public static final String
SAX_FEATURE_PREFIX
SAX feature prefix ("http://xml.org/sax/features/").
public static final String
NAMESPACES_FEATURE
Namespaces feature ("namespaces").
public static final String
NAMESPACE_PREFIXES_FEATURE
Namespace prefixes feature ("namespace-prefixes").
public static final String
STRING_INTERNING_FEATURE
String interning feature ("string-interning").
public static final String
VALIDATION_FEATURE
Validation feature ("validation").
public static final String
EXTERNAL_GENERAL_ENTITIES_FEATURE
External general entities feature ("external-general-entities ").
public static final String
EXTERNAL_PARAMETER_ENTITIES_FEATURE
External parameter entities feature ("external-parameter-entities ").
public static final String
LEXICAL_HANDLER_PARAMETER_ENTITIES_FEATURE
Lexical handler parameter entities feature ("lexical-handler/parameter-entities").
public static final String
IS_STANDALONE_FEATURE
Is standalone feature ("is-standalone").
public static final String
RESOLVE_DTD_URIS_FEATURE
Resolve DTD URIs feature ("resolve-dtd-uris").
public static final String
USE_ATTRIBUTES2_FEATURE
Use Attributes2 feature ("use-attributes2").
public static final String
USE_LOCATOR2_FEATURE
Use Locator2 feature ("use-locator2").
public static final String
USE_ENTITY_RESOLVER2_FEATURE
Use EntityResolver2 feature ("use-entity-resolver2").
public static final String
UNICODE_NORMALIZATION_CHECKING_FEATURE
Unicode normalization checking feature ("unicode-normalization-checking").
public static final String
XMLNS_URIS_FEATURE
xmlns URIs feature ("xmlns-uris").
public static final String
XML_11_FEATURE
XML 1.1 feature ("xml-1.1").
public static final String
ALLOW_DTD_EVENTS_AFTER_ENDDTD_FEATURE
Allow unparsed entity and notation declaration events to be sent after the end DTD event ("allow-dtd-events-after-endDTD")
public static final String
SAX_PROPERTY_PREFIX
SAX property prefix ("http://xml.org/sax/properties/").
public static final String
DECLARATION_HANDLER_PROPERTY
Declaration handler property ("declaration-handler").
public static final String
LEXICAL_HANDLER_PROPERTY
Lexical handler property ("lexical-handler").
public static final String
DOM_NODE_PROPERTY
DOM node property ("dom-node").
public static final String
XML_STRING_PROPERTY
XML string property ("xml-string").
public static final String
DOCUMENT_XML_VERSION_PROPERTY
Document XML version property ("document-xml-version").
public static final String
JAXP_PROPERTY_PREFIX
JAXP property prefix ("http://java.sun.com/xml/jaxp/properties/").
public static final String
SCHEMA_SOURCE
JAXP schemaSource property: when used internally may include DTD sources (DOM)
public static final String
SCHEMA_LANGUAGE
JAXP schemaSource language: when used internally may include DTD namespace (DOM)
public static final String
INCLUDE_COMMENTS_FEATURE
Comments feature ("include-comments").
public static final String
CREATE_CDATA_NODES_FEATURE
Create cdata nodes feature ("create-cdata-nodes").
public static final String
LOAD_AS_INFOSET
Feature id: load as infoset.
public static final String
DOM_CANONICAL_FORM
public static final String
DOM_CDATA_SECTIONS
public static final String
DOM_COMMENTS
public static final String
DOM_CHARSET_OVERRIDES_XML_ENCODING
public static final String
DOM_DATATYPE_NORMALIZATION
public static final String
DOM_ENTITIES
public static final String
DOM_INFOSET
public static final String
DOM_NAMESPACES
public static final String
DOM_NAMESPACE_DECLARATIONS
public static final String
DOM_SUPPORTED_MEDIATYPES_ONLY
public static final String
DOM_VALIDATE_IF_SCHEMA
public static final String
DOM_VALIDATE
public static final String
DOM_ELEMENT_CONTENT_WHITESPACE
public static final String
DOM_DISCARD_DEFAULT_CONTENT
public static final String
DOM_NORMALIZE_CHARACTERS
public static final String
DOM_CHECK_CHAR_NORMALIZATION
public static final String
DOM_WELLFORMED
public static final String
DOM_SPLIT_CDATA
public static final String
DOM_FORMAT_PRETTY_PRINT
public static final String
DOM_XMLDECL
public static final String
DOM_UNKNOWNCHARS
public static final String
DOM_CERTIFIED
public static final String
DOM_DISALLOW_DOCTYPE
public static final String
DOM_IGNORE_UNKNOWN_CHARACTER_DENORMALIZATIONS
public static final String
DOM_RESOURCE_RESOLVER
public static final String
DOM_ERROR_HANDLER
public static final String
DOM_SCHEMA_TYPE
public static final String
DOM_SCHEMA_LOCATION
public static final String
DOM_PSVI
public static final String
XERCES_FEATURE_PREFIX
Xerces features prefix ("http://apache.org/xml/features/").
public static final String
SCHEMA_VALIDATION_FEATURE
Schema validation feature ("validation/schema").
public static final String
SCHEMA_NORMALIZED_VALUE
Expose schema normalized values
public static final String
SCHEMA_ELEMENT_DEFAULT
Send schema default value via characters()
public static final String
SCHEMA_FULL_CHECKING
Schema full constraint checking ("validation/schema-full-checking").
public static final String
SCHEMA_AUGMENT_PSVI
Augment Post-Schema-Validation-Infoset
public static final String
DYNAMIC_VALIDATION_FEATURE
Dynamic validation feature ("validation/dynamic").
public static final String
WARN_ON_DUPLICATE_ATTDEF_FEATURE
Warn on duplicate attribute declaration feature ("validation/warn-on-duplicate-attdef").
public static final String
WARN_ON_UNDECLARED_ELEMDEF_FEATURE
Warn on undeclared element feature ("validation/warn-on-undeclared-elemdef").
public static final String
WARN_ON_DUPLICATE_ENTITYDEF_FEATURE
Warn on duplicate entity declaration feature ("warn-on-duplicate-entitydef").
public static final String
ALLOW_JAVA_ENCODINGS_FEATURE
Allow Java encoding names feature ("allow-java-encodings").
public static final String
DISALLOW_DOCTYPE_DECL_FEATURE
Disallow DOCTYPE declaration feature ("disallow-doctype-decl").
public static final String
CONTINUE_AFTER_FATAL_ERROR_FEATURE
Continue after fatal error feature ("continue-after-fatal-error").
public static final String
LOAD_DTD_GRAMMAR_FEATURE
Load dtd grammar when nonvalidating feature ("nonvalidating/load-dtd-grammar").
public static final String
LOAD_EXTERNAL_DTD_FEATURE
Load external dtd when nonvalidating feature ("nonvalidating/load-external-dtd").
public static final String
DEFER_NODE_EXPANSION_FEATURE
Defer node expansion feature ("dom/defer-node-expansion").
public static final String
CREATE_ENTITY_REF_NODES_FEATURE
Create entity reference nodes feature ("dom/create-entity-ref-nodes").
public static final String
INCLUDE_IGNORABLE_WHITESPACE
Include ignorable whitespace feature ("dom/include-ignorable-whitespace").
public static final String
DEFAULT_ATTRIBUTE_VALUES_FEATURE
Default attribute values feature ("validation/default-attribute-values").
public static final String
VALIDATE_CONTENT_MODELS_FEATURE
Validate content models feature ("validation/validate-content-models").
public static final String
VALIDATE_DATATYPES_FEATURE
Validate datatypes feature ("validation/validate-datatypes").
public static final String
BALANCE_SYNTAX_TREES
Balance syntax trees feature ("validation/balance-syntax-trees").
public static final String
NOTIFY_CHAR_REFS_FEATURE
Notify character references feature (scanner/notify-char-refs").
public static final String
NOTIFY_BUILTIN_REFS_FEATURE
Notify built-in (&, etc.) references feature (scanner/notify-builtin-refs").
public static final String
STANDARD_URI_CONFORMANT_FEATURE
Standard URI conformant feature ("standard-uri-conformant").
public static final String
GENERATE_SYNTHETIC_ANNOTATIONS_FEATURE
Generate synthetic annotations feature ("generate-synthetic-annotations").
public static final String
VALIDATE_ANNOTATIONS_FEATURE
Validate annotations feature ("validate-annotations").
public static final String
HONOUR_ALL_SCHEMALOCATIONS_FEATURE
Honour all schemaLocations feature ("honour-all-schemaLocations").
public static final String
XINCLUDE_FEATURE
XInclude processing feature ("xinclude").
public static final String
XINCLUDE_FIXUP_BASE_URIS_FEATURE
XInclude fixup base URIs feature ("xinclude/fixup-base-uris").
public static final String
XINCLUDE_FIXUP_LANGUAGE_FEATURE
XInclude fixup language feature ("xinclude/fixup-language").
public static final String
IGNORE_XSI_TYPE_FEATURE
Feature to ignore xsi:type attributes on elements during validation, until a global element declaration is found. ("validation/schema/ignore-xsi-type-until-elemdecl") If this feature is on when validating a document, then beginning at the validation root element, xsi:type attributes are ignored until a global element declaration is found for an element. Once a global element declaration has been found, xsi:type attributes will start being processed for the sub-tree beginning at the element for which the declaration was found. Suppose an element A has two element children, B and C. If a global element declaration is found for A, xsi:type attributes on A, B and C, and all of B and C's descendents, will be processed. If no global element declaration is found for A or B, but one is found for C, then xsi:type attributes will be ignored on A and B (and any descendents of B, until a global element declaration is found), but xsi:type attributes will be processed for C and all of C's descendents. Once xsi:type attributes stop being ignored for a subtree, they do not start being ignored again, even if more elements are encountered for which no global element declaration can be found.
public static final String
ID_IDREF_CHECKING_FEATURE
Perform checking of ID/IDREFs ("validation/id-idref-checking")
public static final String
IDC_CHECKING_FEATURE
Feature to ignore errors caused by identity constraints ("validation/identity-constraint-checking")
public static final String
UNPARSED_ENTITY_CHECKING_FEATURE
Feature to ignore errors caused by unparsed entities ("validation/unparsed-entity-checking")
public static final String
USE_GRAMMAR_POOL_ONLY_FEATURE
Internal feature. When set to true the schema validator will only use schema components from the grammar pool provided.
public static final String
PARSER_SETTINGS
Internal performance related feature: false - the parser settings (features/properties) have not changed between 2 parses true - the parser settings have changed between 2 parses NOTE: this feature should only be set by the parser configuration.
public static final String
XERCES_PROPERTY_PREFIX
Xerces properties prefix ("http://apache.org/xml/properties/").
public static final String
CURRENT_ELEMENT_NODE_PROPERTY
Current element node property ("dom/current-element-node").
public static final String
DOCUMENT_CLASS_NAME_PROPERTY
Document class name property ("dom/document-class-name").
public static final String
SYMBOL_TABLE_PROPERTY
Symbol table property ("internal/symbol-table").
public static final String
ERROR_REPORTER_PROPERTY
Error reporter property ("internal/error-reporter").
public static final String
ERROR_HANDLER_PROPERTY
Error handler property ("internal/error-handler").
public static final String
XINCLUDE_HANDLER_PROPERTY
XInclude handler property ("internal/xinclude-handler").
public static final String
XPOINTER_HANDLER_PROPERTY
XPointer handler property ("internal/xpointer-handler").
public static final String
ENTITY_MANAGER_PROPERTY
Entity manager property ("internal/entity-manager").
public static final String
BUFFER_SIZE_PROPERTY
Input buffer size property ("input-buffer-size").
public static final String
SECURITY_MANAGER_PROPERTY
Security manager property ("security-manager").
public static final String
ENTITY_RESOLVER_PROPERTY
Entity resolver property ("internal/entity-resolver").
public static final String
XMLGRAMMAR_POOL_PROPERTY
Grammar pool property ("internal/grammar-pool").
public static final String
DATATYPE_VALIDATOR_FACTORY_PROPERTY
Datatype validator factory ("internal/datatype-validator-factory").
public static final String
DOCUMENT_SCANNER_PROPERTY
Document scanner property ("internal/document-scanner").
public static final String
DTD_SCANNER_PROPERTY
DTD scanner property ("internal/dtd-scanner").
public static final String
DTD_PROCESSOR_PROPERTY
DTD processor property ("internal/dtd-processor").
public static final String
VALIDATOR_PROPERTY
Validator property ("internal/validator").
public static final String
DTD_VALIDATOR_PROPERTY
Validator property ("internal/validator/dtd").
public static final String
SCHEMA_VALIDATOR_PROPERTY
Validator property ("internal/validator/schema").
public static final String
SCHEMA_LOCATION
No namespace schema location property ("schema/external-schemaLocation").
public static final String
SCHEMA_NONS_LOCATION
Schema location property ("schema/external-noNamespaceSchemaLocation").
public static final String
NAMESPACE_BINDER_PROPERTY
Namespace binder property ("internal/namespace-binder").
public static final String
NAMESPACE_CONTEXT_PROPERTY
Namespace context property ("internal/namespace-context").
public static final String
VALIDATION_MANAGER_PROPERTY
Validation manager property ("internal/validation-manager").
public static final String
ROOT_TYPE_DEFINITION_PROPERTY
Schema type of the root element in a document ("validation/schema/root-type-definition").
public static final String
ELEMENT_PSVI
Element PSVI is stored in augmentations using string "ELEMENT_PSVI"
public static final String
ATTRIBUTE_PSVI
public static final String
ATTRIBUTE_DECLARED
Boolean indicating whether an attribute is declared in the DTD is stored in augmentations using the string "ATTRIBUTE_DECLARED". The absence of this augmentation indicates that the attribute was not declared in the DTD.
public static final String
ENTITY_SKIPPED
Boolean indicating whether an entity referenced in the document has not been read is stored in augmentations using the string "ENTITY_SKIPPED". The absence of this augmentation indicates that the entity had a declaration and was expanded.
public static final String
CHAR_REF_PROBABLE_WS
Boolean indicating whether a character is a probable white space character (ch <= 0x20) that was the replacement text of a character reference is stored in augmentations using the string "CHAR_REF_PROBABLE_WS". The absence of this augmentation indicates that the character is not probable white space and/or was not included from a character reference.
public static final short
XML_VERSION_ERROR
public static final short
XML_VERSION_1_0
public static final short
XML_VERSION_1_1
public static final boolean
SCHEMA_1_1_SUPPORT
private static final String[]
fgSAXFeatures
SAX features.
private static final String[]
fgSAXProperties
SAX properties.
private static final String[]
fgXercesFeatures
Xerces features.
private static final String[]
fgXercesProperties
Xerces properties.
private static final Enumeration
fgEmptyEnumeration
Empty enumeration.
Constructors Summary
private Constants()
This class cannot be instantiated.

    
    //
    // Constructors
    //
    
          
      
Methods Summary
public static java.util.EnumerationgetSAXFeatures()
Returns an enumeration of the SAX features.

        return fgSAXFeatures.length > 0
        ? new ArrayEnumeration(fgSAXFeatures) : fgEmptyEnumeration;
    
public static java.util.EnumerationgetSAXProperties()
Returns an enumeration of the SAX properties.

        return fgSAXProperties.length > 0
        ? new ArrayEnumeration(fgSAXProperties) : fgEmptyEnumeration;
    
public static java.util.EnumerationgetXercesFeatures()
Returns an enumeration of the Xerces features.

        return fgXercesFeatures.length > 0
        ? new ArrayEnumeration(fgXercesFeatures) : fgEmptyEnumeration;
    
public static java.util.EnumerationgetXercesProperties()
Returns an enumeration of the Xerces properties.

        return fgXercesProperties.length > 0
        ? new ArrayEnumeration(fgXercesProperties) : fgEmptyEnumeration;
    
public static voidmain(java.lang.String[] argv)
Prints all of the constants to standard output.

        
        print("SAX features:", SAX_FEATURE_PREFIX, fgSAXFeatures);
        print("SAX properties:", SAX_PROPERTY_PREFIX, fgSAXProperties);
        print("Xerces features:", XERCES_FEATURE_PREFIX, fgXercesFeatures);
        print("Xerces properties:", XERCES_PROPERTY_PREFIX, fgXercesProperties);
        
    
private static voidprint(java.lang.String header, java.lang.String prefix, java.lang.Object[] array)
Prints a list of features/properties.

        System.out.print(header);
        if (array.length > 0) {
            System.out.println();
            for (int i = 0; i < array.length; i++) {
                System.out.print("  ");
                System.out.print(prefix);
                System.out.println(array[i]);
            }
        }
        else {
            System.out.println(" none.");
        }