java.lang.Object | |||
↳ | org.apache.xerces.util.ParserConfigurationSettings | ||
↳ | org.apache.xerces.parsers.BasicParserConfiguration | ||
↳ | org.apache.xerces.impl.xs.opti.SchemaParsingConfig |
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_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 | GENERATE_SYNTHETIC_ANNOTATIONS | Feature identifier: generate synthetic annotations. | |||||||||
String | LOAD_EXTERNAL_DTD | Feature identifier: load external DTD. | |||||||||
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. | |||||||||
String | SCHEMA_ELEMENT_DEFAULT | Feature identifier: send element default value via characters() | |||||||||
String | SCHEMA_VALIDATOR | Property identifier: XML Schema validator. | |||||||||
String | VALIDATION_MANAGER | ||||||||||
String | WARN_ON_DUPLICATE_ATTDEF | Feature identifier: warn on duplicate attribute 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. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.parsers.BasicParserConfiguration
| |||||||||||
From class
org.apache.xerces.util.ParserConfigurationSettings
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 | ||||||||||
fDTDScanner | The XML 1.0 DTD scanner. | ||||||||||
fDatatypeValidatorFactory | The XML 1.0 Datatype validator factory. | ||||||||||
fEntityManager | Entity manager. | ||||||||||
fErrorReporter | Error reporter. | ||||||||||
fGrammarPool | Grammar pool. | ||||||||||
fInputSource | Input Source | ||||||||||
fLocator | Locator | ||||||||||
fNamespaceScanner | The XML 1.0 Document scanner. | ||||||||||
fParseInProgress | True if a parse is in progress. | ||||||||||
fSchemaDOMParser | |||||||||||
fValidationManager | |||||||||||
fVersionDetector | XML version detector. | ||||||||||
fXML11DTDScanner | The XML 1.1 DTD scanner. | ||||||||||
fXML11DatatypeFactory | The XML 1.1 Datatype validator factory. | ||||||||||
fXML11NSDocScanner | The XML 1.1 Document scanner. |
[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.
| |||||||||||
Returns the Document object.
| |||||||||||
Returns the state of a feature.
| |||||||||||
Parses the document in a pull parsing fashion.
| |||||||||||
Parses the specified input source.
| |||||||||||
Reset all components before parsing.
| |||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check a feature.
| |||||||||||
Check a property.
| |||||||||||
Configures the XML 1.0 pipeline.
| |||||||||||
Configures the XML 1.1 pipeline.
| |||||||||||
Reset all XML 1.0 components before parsing
| |||||||||||
Reset all XML 1.1 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 scanner.
Property identifier: DTD validator.
Property identifier: entity manager.
Property identifier: error reporter.
Feature identifier: generate synthetic annotations.
Feature identifier: load external DTD.
Property identifier: namespace binder.
Feature identifier: expose schema normalized value
Feature identifier: notify built-in refereces.
Feature identifier: notify character refereces.
Feature identifier: send element default value via characters()
Property identifier: XML Schema validator.
Feature identifier: warn on duplicate attribute definition.
Feature identifier: warn on undeclared element definition.
Property identifier: grammar pool.
fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed.
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.
Returns the Document object.
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. |
---|
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. |
Reset all components before parsing.
XNIException | Thrown if an error occurs during initialization. |
---|
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 |
---|
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 XML 1.0 pipeline.
Configures the XML 1.1 pipeline.