java.lang.Object | ||
↳ | org.apache.xerces.util.ParserConfigurationSettings | |
↳ | org.apache.xerces.parsers.XML11Configuration |
Known Direct Subclasses |
Known Indirect Subclasses |
This class is the configuration used to parse XML 1.0 and XML 1.1 documents.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ALLOW_JAVA_ENCODINGS | Feature identifier: allow Java encodings. | |||||||||
String | CONTINUE_AFTER_FATAL_ERROR | Feature identifier: continue after fatal error. | |||||||||
String | DATATYPE_VALIDATOR_FACTORY | Property identifier: datatype validator factory. | |||||||||
String | DOCUMENT_SCANNER | Property identifier document scanner: | |||||||||
String | DTD_PROCESSOR | Property identifier: DTD loader. | |||||||||
String | DTD_SCANNER | Property identifier: DTD scanner. | |||||||||
String | DTD_VALIDATOR | Property identifier: DTD validator. | |||||||||
String | ENTITY_MANAGER | Property identifier: entity manager. | |||||||||
String | ENTITY_RESOLVER | Property identifier: entity resolver. | |||||||||
String | ERROR_HANDLER | Property identifier: error handler. | |||||||||
String | ERROR_REPORTER | Property identifier: error reporter. | |||||||||
String | EXTERNAL_GENERAL_ENTITIES | Feature identifier: external general entities. | |||||||||
String | EXTERNAL_PARAMETER_ENTITIES | Feature identifier: external parameter entities. | |||||||||
String | GENERATE_SYNTHETIC_ANNOTATIONS | Feature: generate synthetic annotations | |||||||||
String | HONOUR_ALL_SCHEMALOCATIONS | Feature identifier: honour all schemaLocations | |||||||||
String | IDENTITY_CONSTRAINT_CHECKING | Feature identifier: whether to ignore identity constraint errors | |||||||||
String | ID_IDREF_CHECKING | Feature identifier: whether to ignore ID/IDREF errors | |||||||||
String | IGNORE_XSI_TYPE | Feature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered | |||||||||
String | JAXP_SCHEMA_LANGUAGE | Property identifier: JAXP schema language / DOM schema-type. | |||||||||
String | JAXP_SCHEMA_SOURCE | Property identifier: JAXP schema source/ DOM schema-location. | |||||||||
String | LOAD_EXTERNAL_DTD | Feature identifier: load external DTD. | |||||||||
String | NAMESPACES | Feature identifier: namespaces. | |||||||||
String | NAMESPACE_BINDER | Property identifier: namespace binder. | |||||||||
String | NORMALIZE_DATA | Feature identifier: expose schema normalized value | |||||||||
String | NOTIFY_BUILTIN_REFS | Feature identifier: notify built-in refereces. | |||||||||
String | NOTIFY_CHAR_REFS | Feature identifier: notify character refereces. | |||||||||
boolean | PRINT_EXCEPTION_STACK_TRACE | Set to true and recompile to print exception stack trace. | |||||||||
String | ROOT_TYPE_DEF | Property identifier: root type definition. | |||||||||
String | SCHEMA_AUGMENT_PSVI | Feature identifier: augment PSVI | |||||||||
String | SCHEMA_ELEMENT_DEFAULT | Feature identifier: send element default value via characters() | |||||||||
String | SCHEMA_LOCATION | Property identifier: schema location. | |||||||||
String | SCHEMA_NONS_LOCATION | Property identifier: no namespace schema location. | |||||||||
String | SCHEMA_VALIDATOR | Property identifier: XML Schema validator. | |||||||||
String | SYMBOL_TABLE | Property identifier: symbol table. | |||||||||
String | UNPARSED_ENTITY_CHECKING | Feature identifier: whether to ignore unparsed entity errors | |||||||||
String | USE_GRAMMAR_POOL_ONLY | Feature identifier: use grammar pool only | |||||||||
String | VALIDATE_ANNOTATIONS | Feature identifier: validate annotations | |||||||||
String | VALIDATION | Feature identifier: validation. | |||||||||
String | VALIDATION_MANAGER | ||||||||||
String | WARN_ON_DUPLICATE_ATTDEF | Feature identifier: warn on duplicate attribute definition. | |||||||||
String | WARN_ON_DUPLICATE_ENTITYDEF | Feature identifier: warn on duplicate entity definition. | |||||||||
String | WARN_ON_UNDECLARED_ELEMDEF | Feature identifier: warn on undeclared element definition. | |||||||||
String | XML11_DATATYPE_VALIDATOR_FACTORY | ||||||||||
String | XMLGRAMMAR_POOL | Property identifier: grammar pool. | |||||||||
String | XMLSCHEMA_FULL_CHECKING | feature identifier: XML Schema validation -- full checking | |||||||||
String | XMLSCHEMA_VALIDATION | feature identifier: XML Schema validation | |||||||||
String | XML_STRING | Property identifier: xml string. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.util.ParserConfigurationSettings
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fCommonComponents | Common components: XMLEntityManager, XMLErrorReporter, XMLSchemaValidator | ||||||||||
fComponents | XML 1.0 Components. | ||||||||||
fConfigUpdated | fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed. | ||||||||||
fCurrentDTDScanner | Current DTD scanner. | ||||||||||
fCurrentDVFactory | Current Datatype validator factory. | ||||||||||
fCurrentScanner | Current scanner | ||||||||||
fDTDContentModelHandler | The DTD content model handler. | ||||||||||
fDTDHandler | The DTD handler. | ||||||||||
fDTDProcessor | The XML 1.0 DTD Processor . | ||||||||||
fDTDScanner | The XML 1.0 DTD scanner. | ||||||||||
fDTDValidator | The XML 1.0 DTD Validator: binds namespaces | ||||||||||
fDatatypeValidatorFactory | The XML 1.0 Datatype validator factory. | ||||||||||
fDocumentHandler | The document handler. | ||||||||||
fEntityManager | Entity manager. | ||||||||||
fErrorReporter | Error reporter. | ||||||||||
fGrammarPool | Grammar pool. | ||||||||||
fInputSource | |||||||||||
fLastComponent | Last component in the document pipeline | ||||||||||
fLocale | |||||||||||
fLocator | |||||||||||
fNamespaceScanner | The XML 1.0 Document scanner that does namespace binding. | ||||||||||
fNonNSDTDValidator | The XML 1.0 DTD Validator that does not bind namespaces | ||||||||||
fNonNSScanner | The XML 1.0 Non-namespace implementation of scanner | ||||||||||
fParseInProgress | True if a parse is in progress. | ||||||||||
fSchemaValidator | XML Schema Validator. | ||||||||||
fSymbolTable | |||||||||||
fValidationManager | |||||||||||
fVersionDetector | |||||||||||
fXML11Components | XML 1.1. | ||||||||||
fXML11DTDProcessor | The XML 1.1 DTD processor. | ||||||||||
fXML11DTDScanner | The XML 1.1 DTD scanner. | ||||||||||
fXML11DTDValidator | The XML 1.1 DTD validator that does not do namespace binding. | ||||||||||
fXML11DatatypeFactory | The XML 1.1 datatype factory. | ||||||||||
fXML11DocScanner | The XML 1.1 document scanner that does not do namespace binding. | ||||||||||
fXML11NSDTDValidator | The XML 1.1 DTD validator that does namespace binding. | ||||||||||
fXML11NSDocScanner | The XML 1.1 document scanner that does namespace binding. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.util.ParserConfigurationSettings
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
| |||||||||||
Constructs a parser configuration using the specified symbol table.
| |||||||||||
Constructs a parser configuration using the specified symbol table and
grammar pool.
| |||||||||||
Constructs a parser configuration using the specified symbol table,
grammar pool, and parent settings.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
If the application decides to terminate parsing before the xml document
is fully parsed, the application should call this method to free any
resource allocated during parsing.
| |||||||||||
Returns the registered DTD content model handler.
| |||||||||||
Returns the registered DTD handler.
| |||||||||||
Returns the registered document handler.
| |||||||||||
Return the current entity resolver.
| |||||||||||
Return the current error handler.
| |||||||||||
Returns the state of a feature.
| |||||||||||
Returns the locale.
| |||||||||||
Parses the document in a pull parsing fashion.
| |||||||||||
Parses the specified input source.
| |||||||||||
Sets the DTD content model handler.
| |||||||||||
Sets the DTD handler.
| |||||||||||
Sets the document handler on the last component in the pipeline
to receive information about the document.
| |||||||||||
Sets the resolver used to resolve external entities.
| |||||||||||
Allow an application to register an error event handler.
| |||||||||||
Set the state of a feature.
| |||||||||||
Sets the input source for the document to parse.
| |||||||||||
Set the locale to use for messages.
| |||||||||||
setProperty
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds common component to the parser configuration.
| |||||||||||
Adds a component to the parser configuration.
| |||||||||||
Adds all of the component's recognized features and properties
to the list of default recognized features and properties, and
sets default values on the configuration for features and
properties which were previously absent from the configuration.
| |||||||||||
Adds an XML 1.1 component to the parser configuration.
| |||||||||||
Check a feature.
| |||||||||||
Check a property.
| |||||||||||
Configures the pipeline.
| |||||||||||
Configures the XML 1.1 pipeline.
| |||||||||||
reset all XML 1.0 components before parsing and namespace context
| |||||||||||
reset all common components before parsing
| |||||||||||
reset all components before parsing and namespace context
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.util.ParserConfigurationSettings
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLComponentManager
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLParserConfiguration
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLPullParserConfiguration
|
Feature identifier: allow Java encodings.
Feature identifier: continue after fatal error.
Property identifier: datatype validator factory.
Property identifier document scanner:
Property identifier: DTD loader.
Property identifier: DTD scanner.
Property identifier: DTD validator.
Property identifier: entity manager.
Property identifier: entity resolver.
Property identifier: error handler.
Property identifier: error reporter.
Feature identifier: external general entities.
Feature identifier: external parameter entities.
Feature: generate synthetic annotations
Feature identifier: honour all schemaLocations
Feature identifier: whether to ignore identity constraint errors
Feature identifier: whether to ignore ID/IDREF errors
Feature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered
Property identifier: JAXP schema language / DOM schema-type.
Property identifier: JAXP schema source/ DOM schema-location.
Feature identifier: load external DTD.
Feature identifier: namespaces.
Property identifier: namespace binder.
Feature identifier: expose schema normalized value
Feature identifier: notify built-in refereces.
Feature identifier: notify character refereces.
Set to true and recompile to print exception stack trace.
Property identifier: root type definition.
Feature identifier: augment PSVI
Feature identifier: send element default value via characters()
Property identifier: schema location.
Property identifier: no namespace schema location.
Property identifier: XML Schema validator.
Property identifier: symbol table.
Feature identifier: whether to ignore unparsed entity errors
Feature identifier: use grammar pool only
Feature identifier: validate annotations
Feature identifier: validation.
Feature identifier: warn on duplicate attribute definition.
Feature identifier: warn on duplicate entity definition.
Feature identifier: warn on undeclared element definition.
Property identifier: grammar pool.
feature identifier: XML Schema validation -- full checking
feature identifier: XML Schema validation
Property identifier: xml string.
Common components: XMLEntityManager, XMLErrorReporter, XMLSchemaValidator
fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed.
The XML 1.0 Document scanner that does namespace binding.
The XML 1.0 DTD Validator that does not bind namespaces
True if a parse is in progress. This state is needed because some features/properties cannot be set while parsing (e.g. validation and namespaces).
The XML 1.1 DTD validator that does not do namespace binding.
The XML 1.1 document scanner that does not do namespace binding.
The XML 1.1 DTD validator that does namespace binding.
The XML 1.1 document scanner that does namespace binding.
Default constructor.
Constructs a parser configuration using the specified symbol table.
symbolTable | The symbol table to use. |
---|
Constructs a parser configuration using the specified symbol table and grammar pool.
REVISIT: Grammar pool will be updated when the new validation engine is implemented.
symbolTable | The symbol table to use. |
---|---|
grammarPool | The grammar pool to use. |
Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.
REVISIT: Grammar pool will be updated when the new validation engine is implemented.
symbolTable | The symbol table to use. |
---|---|
grammarPool | The grammar pool to use. |
parentSettings | The parent settings. |
If the application decides to terminate parsing before the xml document is fully parsed, the application should call this method to free any resource allocated during parsing. For example, close all opened streams.
Returns the registered DTD content model handler.
Return the current entity resolver.
Return the current error handler.
Returns the state of a feature.
featureId | The feature identifier. |
---|
XMLConfigurationException | Thrown for configuration error. In general, components should only throw this exception if it is really a critical error. |
---|
Parses the document in a pull parsing fashion.
complete | True if the pull parser should parse the remaining document completely. |
---|
IOException | |
---|---|
XNIException |
Parses the specified input source.
source | The input source. |
---|
XNIException | Throws exception on XNI error. |
---|---|
IOException | Throws exception on i/o error. |
Sets the DTD content model handler.
handler | The DTD content model handler. |
---|
Sets the DTD handler.
dtdHandler | The DTD handler. |
---|
Sets the document handler on the last component in the pipeline to receive information about the document.
documentHandler | The document handler. |
---|
Sets the resolver used to resolve external entities. The EntityResolver interface supports resolution of public and system identifiers.
resolver | The new entity resolver. Passing a null value will uninstall the currently installed resolver. |
---|
Allow an application to register an error event handler.
If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.
Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.
errorHandler | The error handler. |
---|
NullPointerException | If the handler argument is null. |
---|
Set the state of a feature. Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.
featureId | The unique identifier (URI) of the feature. |
---|---|
state | The requested state of the feature (true or false). |
XMLConfigurationException | If the requested feature is not known. |
---|
Sets the input source for the document to parse.
inputSource | The document's input source. |
---|
XMLConfigurationException | Thrown if there is a configuration error when initializing the parser. |
---|---|
IOException | Thrown on I/O error. |
Set the locale to use for messages.
locale | The locale object to use for localization of messages. |
---|
XNIException | Thrown if the parser does not support the specified locale. |
---|
setProperty
XMLConfigurationException |
---|
Adds common component to the parser configuration. This method will also add all of the component's recognized features and properties to the list of default recognized features and properties.
component | The component to add. |
---|
Adds a component to the parser configuration. This method will also add all of the component's recognized features and properties to the list of default recognized features and properties.
component | The component to add. |
---|
Adds all of the component's recognized features and properties to the list of default recognized features and properties, and sets default values on the configuration for features and properties which were previously absent from the configuration.
component | The component whose recognized features and properties will be added to the configuration |
---|
Adds an XML 1.1 component to the parser configuration. This method will also add all of the component's recognized features and properties to the list of default recognized features and properties.
component | The component to add. |
---|
Check a feature. If feature is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
featureId | The unique identifier (URI) of the feature. |
---|
XMLConfigurationException | Thrown for configuration error. In general, components should only throw this exception if it is really a critical error. |
---|
Check a property. If the property is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
propertyId | The unique identifier (URI) of the property being set. |
---|
XMLConfigurationException | Thrown for configuration error. In general, components should only throw this exception if it is really a critical error. |
---|
Configures the pipeline.
Configures the XML 1.1 pipeline. Note: this method also resets the new XML11 components.
reset all XML 1.0 components before parsing and namespace context
XNIException |
---|
reset all components before parsing and namespace context
XNIException |
---|