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

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.2 2001/10/25 20:36:05 elena Exp $
Author:
Sandy Gao, IBM

Field Summary
protected  XMLSchemaValidator fSchemaValidator
          XML Schema Validator.
protected static java.lang.String SCHEMA_VALIDATOR
          Property identifier: XML Schema validator.
 
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, fLocator, fNamespaceBinder, fParseInProgress, fScanner, fValidationManager, GRAMMAR_POOL, LOAD_EXTERNAL_DTD, NAMESPACE_BINDER, NOTIFY_BUILTIN_REFS, NOTIFY_CHAR_REFS, VALIDATION_MANAGER, WARN_ON_DUPLICATE_ATTDEF, WARN_ON_UNDECLARED_ELEMDEF
 
Fields inherited from class org.apache.xerces.parsers.BasicParserConfiguration
ENTITY_RESOLVER, ERROR_HANDLER, EXTERNAL_GENERAL_ENTITIES, EXTERNAL_PARAMETER_ENTITIES, fComponents, fDocumentHandler, fDTDContentModelHandler, fDTDHandler, 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, GrammarPool grammarPool)
          Constructs a document parser using the specified symbol table and grammar pool.
 
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, 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
 

Field Detail

SCHEMA_VALIDATOR

protected static final java.lang.String SCHEMA_VALIDATOR
Property identifier: XML Schema validator.

fSchemaValidator

protected XMLSchemaValidator fSchemaValidator
XML Schema Validator.
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.

DTDXSParserConfiguration

public DTDXSParserConfiguration(SymbolTable symbolTable,
                                GrammarPool grammarPool)
Constructs a document parser using the specified symbol table and grammar pool.
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.