org.apache.xerces.parsers
Class DTDXSParserConfiguration

java.lang.Object
  |
  +--org.apache.xerces.util.ParserConfigurationSettings
        |
        +--org.apache.xerces.parsers.BasicParserConfiguration
              |
              +--org.apache.xerces.parsers.StandardParserConfiguration
                    |
                    +--org.apache.xerces.parsers.DTDXSParserConfiguration
All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLComponentManager, org.apache.xerces.xni.parser.XMLParserConfiguration, org.apache.xerces.xni.parser.XMLPullParserConfiguration

public class DTDXSParserConfiguration
extends StandardParserConfiguration

This is the DTD/ XML Schema parser configuration. It extends the standard configuration including XML Schema Validator in the pipeline. Note: including XML Schema validator in the pipeline will always trigger an assessment of instance document against schema.

Version:
$Id: DTDXSParserConfiguration.java,v 1.6 2002/01/29 01:15:17 lehors Exp $
Author:
Sandy Gao, IBM

Fields inherited from class org.apache.xerces.parsers.StandardParserConfiguration
ALLOW_JAVA_ENCODINGS, CONTINUE_AFTER_FATAL_ERROR, DATATYPE_VALIDATOR_FACTORY, DOCUMENT_SCANNER, DTD_SCANNER, DTD_VALIDATOR, ENTITY_MANAGER, ERROR_REPORTER, fDatatypeValidatorFactory, fDTDScanner, fDTDValidator, fEntityManager, fErrorReporter, fGrammarPool, fInputSource, fLocator, fNamespaceBinder, fParseInProgress, fScanner, fSchemaValidator, fValidationManager, LOAD_EXTERNAL_DTD, NAMESPACE_BINDER, NORMALIZE_DATA, NOTIFY_BUILTIN_REFS, NOTIFY_CHAR_REFS, SCHEMA_ELEMENT_DEFAULT, SCHEMA_VALIDATOR, VALIDATION_MANAGER, WARN_ON_DUPLICATE_ATTDEF, WARN_ON_UNDECLARED_ELEMDEF, XMLGRAMMAR_POOL
 
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
 
Constructor Summary
DTDXSParserConfiguration()
          Constructs a document parser using the default symbol table and grammar pool or the ones specified by the application (through the properties).
DTDXSParserConfiguration(SymbolTable symbolTable)
          Constructs a document parser using the specified symbol table.
DTDXSParserConfiguration(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
          Constructs a document parser using the specified symbol table and grammar pool.
DTDXSParserConfiguration(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  XMLSchemaValidator createSchemaValidator()
          Create a Schema validator.
 
Methods inherited from class org.apache.xerces.parsers.StandardParserConfiguration
checkFeature, checkProperty, cleanup, createDatatypeValidatorFactory, createDocumentScanner, createDTDScanner, createDTDValidator, 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
 

Constructor Detail

DTDXSParserConfiguration

public DTDXSParserConfiguration()
Constructs a document parser using the default symbol table and grammar pool or the ones specified by the application (through the properties).

DTDXSParserConfiguration

public DTDXSParserConfiguration(SymbolTable symbolTable)
Constructs a document parser using the specified symbol table.
Parameters:
symbolTable - The symbol table to use.

DTDXSParserConfiguration

public DTDXSParserConfiguration(SymbolTable symbolTable,
                                org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
Constructs a document parser using the specified symbol table and grammar pool.

REVISIT: Grammar pool will be updated when the new validation engine is implemented.

Parameters:
symbolTable - The symbol table to use.
grammarPool - The grammar pool to use.

DTDXSParserConfiguration

public DTDXSParserConfiguration(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.

REVISIT: Grammar pool will be updated when the new validation engine is implemented.

Parameters:
symbolTable - The symbol table to use.
grammarPool - The grammar pool to use.
parentSettings - The parent settings.
Method Detail

configurePipeline

protected void configurePipeline()
Configures the pipeline.
Overrides:
configurePipeline in class StandardParserConfiguration

createSchemaValidator

protected XMLSchemaValidator createSchemaValidator()
Create a Schema validator.


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.