java.lang.Object | |||
↳ | org.apache.xerces.util.ParserConfigurationSettings | ||
↳ | org.apache.xerces.parsers.BasicParserConfiguration | ||
↳ | org.apache.xerces.parsers.DTDConfiguration |
Known Direct Subclasses |
Known Indirect Subclasses |
This is the DTD-only parser configuration. It extends the basic
configuration with a standard set of parser components appropriate
to DTD-centric validation. Since
the Xerces2 reference implementation document and DTD scanner
implementations are capable of acting as pull parsers, this
configuration implements the
XMLPullParserConfiguration
interface.
In addition to the features and properties recognized by the base parser configuration, this class recognizes these additional features and properties:
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 | ERROR_REPORTER | Property identifier: error reporter. | |||||||||
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 | NAMESPACE_BINDER | Property identifier: namespace binder. | |||||||||
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 | 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 | XMLGRAMMAR_POOL | Property identifier: grammar pool. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.parsers.BasicParserConfiguration
| |||||||||||
From class
org.apache.xerces.util.ParserConfigurationSettings
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fDTDProcessor | DTD Processor . | ||||||||||
fDTDScanner | DTD scanner. | ||||||||||
fDTDValidator | DTD Validator. | ||||||||||
fDatatypeValidatorFactory | Datatype validator factory. | ||||||||||
fEntityManager | Entity manager. | ||||||||||
fErrorReporter | Error reporter. | ||||||||||
fGrammarPool | Grammar pool. | ||||||||||
fInputSource | Input Source | ||||||||||
fLocator | Locator | ||||||||||
fNamespaceBinder | Namespace binder. | ||||||||||
fParseInProgress | True if a parse is in progress. | ||||||||||
fScanner | Document scanner. | ||||||||||
fValidationManager |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.parsers.BasicParserConfiguration
| |||||||||||
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.
| |||||||||||
Parses the document in a pull parsing fashion.
| |||||||||||
Parses the specified input source.
| |||||||||||
Sets the input source for the document to parse.
| |||||||||||
Set the locale to use for messages.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check a feature.
| |||||||||||
Check a property.
| |||||||||||
Configures the pipeline.
| |||||||||||
Create a DTD loader .
| |||||||||||
Create a DTD scanner.
| |||||||||||
Create a DTD validator.
| |||||||||||
Create a datatype validator factory.
| |||||||||||
Create a document scanner.
| |||||||||||
Creates an entity manager.
| |||||||||||
Creates an error reporter.
| |||||||||||
Create a namespace binder.
| |||||||||||
Reset all components before parsing.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.parsers.BasicParserConfiguration
| |||||||||||
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: error reporter.
Property identifier: JAXP schema language / DOM schema-type.
Property identifier: JAXP schema source/ DOM schema-location.
Feature identifier: load external DTD.
Property identifier: namespace binder.
Feature identifier: notify built-in refereces.
Feature identifier: notify character refereces.
Set to true and recompile to print exception stack trace.
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.
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).
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.
Parses the document in a pull parsing fashion.
complete | True if the pull parser should parse the remaining document completely. |
---|
XNIException | Any XNI exception, possibly wrapping another exception. |
---|---|
IOException | An IO exception from the parser, possibly from a byte stream or character stream supplied by the parser. |
Parses the specified input source.
source | The input source. |
---|
XNIException | Throws exception on XNI error. |
---|---|
IOException | Throws exception on i/o error. |
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. |
---|
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.
Reset all components before parsing.
XNIException | Thrown if an error occurs during initialization. |
---|