|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xerces.util.ParserConfigurationSettings
org.apache.xerces.parsers.BasicParserConfiguration
org.apache.xerces.parsers.DTDConfiguration
org.apache.xerces.parsers.StandardParserConfiguration
org.apache.xerces.parsers.IntegratedParserConfiguration
public class IntegratedParserConfiguration
This is configuration uses a scanner that integrates both scanning of the document and binding namespaces. If namespace feature is turned on, the pipeline is constructured with the following components: XMLNSDocumentScannerImpl -> XMLNSDTDValidator -> (optional) XMLSchemaValidator If the namespace feature is turned off the default document scanner implementation is used (XMLDocumentScannerImpl).
In addition to the features and properties recognized by the base parser configuration, this class recognizes these additional features and properties:
Field Summary | |
---|---|
protected XMLNSDocumentScannerImpl |
fNamespaceScanner
Document scanner that does namespace binding. |
protected XMLDTDValidator |
fNonNSDTDValidator
DTD Validator that does not bind namespaces |
protected XMLDocumentScannerImpl |
fNonNSScanner
Default Xerces implementation of scanner |
Fields inherited from class org.apache.xerces.parsers.BasicParserConfiguration |
---|
ENTITY_RESOLVER, ERROR_HANDLER, EXTERNAL_GENERAL_ENTITIES, EXTERNAL_PARAMETER_ENTITIES, fComponents, fDocumentHandler, fDTDContentModelHandler, fDTDHandler, fLastComponent, fLocale, fSymbolTable, NAMESPACES, SYMBOL_TABLE, VALIDATION, XML_STRING |
Fields inherited from class org.apache.xerces.util.ParserConfigurationSettings |
---|
fFeatures, fParentSettings, fProperties, fRecognizedFeatures, fRecognizedProperties, PARSER_SETTINGS |
Constructor Summary | |
---|---|
IntegratedParserConfiguration()
Default constructor. |
|
IntegratedParserConfiguration(SymbolTable symbolTable)
Constructs a parser configuration using the specified symbol table. |
|
IntegratedParserConfiguration(SymbolTable symbolTable,
org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
Constructs a parser configuration using the specified symbol table and grammar pool. |
|
IntegratedParserConfiguration(SymbolTable symbolTable,
org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool,
org.apache.xerces.xni.parser.XMLComponentManager parentSettings)
Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings. |
Method Summary | |
---|---|
protected void |
configurePipeline()
Configures the pipeline. |
protected org.apache.xerces.xni.parser.XMLDocumentScanner |
createDocumentScanner()
Create a document scanner: this scanner performs namespace binding |
protected XMLDTDValidator |
createDTDValidator()
Create a DTD validator: this validator performs namespace binding. |
Methods inherited from class org.apache.xerces.parsers.StandardParserConfiguration |
---|
checkFeature, checkProperty |
Methods inherited from class org.apache.xerces.parsers.DTDConfiguration |
---|
cleanup, configureDTDPipeline, createDatatypeValidatorFactory, createDTDProcessor, createDTDScanner, createEntityManager, createErrorReporter, createNamespaceBinder, createValidationManager, parse, parse, reset, setInputSource, setLocale |
Methods inherited from class org.apache.xerces.parsers.BasicParserConfiguration |
---|
addComponent, getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLocale, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty |
Methods inherited from class org.apache.xerces.util.ParserConfigurationSettings |
---|
addRecognizedFeatures, addRecognizedProperties, getFeature, getProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.xerces.xni.parser.XMLParserConfiguration |
---|
addRecognizedFeatures, addRecognizedProperties, getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getLocale, getProperty, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty |
Field Detail |
---|
protected XMLNSDocumentScannerImpl fNamespaceScanner
protected XMLDocumentScannerImpl fNonNSScanner
protected XMLDTDValidator fNonNSDTDValidator
Constructor Detail |
---|
public IntegratedParserConfiguration()
public IntegratedParserConfiguration(SymbolTable symbolTable)
symbolTable
- The symbol table to use.public IntegratedParserConfiguration(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
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.public IntegratedParserConfiguration(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool, org.apache.xerces.xni.parser.XMLComponentManager parentSettings)
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.Method Detail |
---|
protected void configurePipeline()
configurePipeline
in class StandardParserConfiguration
protected org.apache.xerces.xni.parser.XMLDocumentScanner createDocumentScanner()
createDocumentScanner
in class DTDConfiguration
protected XMLDTDValidator createDTDValidator()
createDTDValidator
in class DTDConfiguration
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |