org.apache.xerces.parsers

Class IntegratedParserConfiguration

Implemented Interfaces:
org.apache.xerces.xni.parser.XMLComponentManager, org.apache.xerces.xni.parser.XMLParserConfiguration, org.apache.xerces.xni.parser.XMLPullParserConfiguration

public class IntegratedParserConfiguration
extends StandardParserConfiguration

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:

  • Properties
  • Version:
    $Id: IntegratedParserConfiguration.java 319806 2004-02-24 23:15:58Z mrglavas $
    Author:
    Elena Litani, IBM

    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.StandardParserConfiguration

    GENERATE_SYNTHETIC_ANNOTATIONS, HONOUR_ALL_SCHEMALOCATIONS, IDENTITY_CONSTRAINT_CHECKING, ID_IDREF_CHECKING, IGNORE_XSI_TYPE, NORMALIZE_DATA, ROOT_TYPE_DEF, SCHEMA_AUGMENT_PSVI, SCHEMA_ELEMENT_DEFAULT, SCHEMA_LOCATION, SCHEMA_NONS_LOCATION, SCHEMA_VALIDATOR, UNPARSED_ENTITY_CHECKING, VALIDATE_ANNOTATIONS, XMLSCHEMA_FULL_CHECKING, XMLSCHEMA_VALIDATION, fSchemaValidator

    Fields inherited from class org.apache.xerces.parsers.DTDConfiguration

    ALLOW_JAVA_ENCODINGS, CONTINUE_AFTER_FATAL_ERROR, DATATYPE_VALIDATOR_FACTORY, DOCUMENT_SCANNER, DTD_PROCESSOR, DTD_SCANNER, DTD_VALIDATOR, ENTITY_MANAGER, ERROR_REPORTER, JAXP_SCHEMA_LANGUAGE, JAXP_SCHEMA_SOURCE, LOAD_EXTERNAL_DTD, NAMESPACE_BINDER, NOTIFY_BUILTIN_REFS, NOTIFY_CHAR_REFS, PRINT_EXCEPTION_STACK_TRACE, VALIDATION_MANAGER, WARN_ON_DUPLICATE_ATTDEF, WARN_ON_DUPLICATE_ENTITYDEF, WARN_ON_UNDECLARED_ELEMDEF, XMLGRAMMAR_POOL, fDTDProcessor, fDTDScanner, fDTDValidator, fDatatypeValidatorFactory, fEntityManager, fErrorReporter, fGrammarPool, fInputSource, fLocator, fNamespaceBinder, fParseInProgress, fScanner, fValidationManager

    Fields inherited from class org.apache.xerces.parsers.BasicParserConfiguration

    ENTITY_RESOLVER, ERROR_HANDLER, EXTERNAL_GENERAL_ENTITIES, EXTERNAL_PARAMETER_ENTITIES, NAMESPACES, SYMBOL_TABLE, VALIDATION, XML_STRING, fComponents, fDTDContentModelHandler, fDTDHandler, fDocumentHandler, fLastComponent, fLocale, fSymbolTable

    Fields inherited from class org.apache.xerces.util.ParserConfigurationSettings

    PARSER_SETTINGS, fFeatures, fParentSettings, fProperties, fRecognizedFeatures, fRecognizedProperties

    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 XMLDTDValidator
    createDTDValidator()
    Create a DTD validator: this validator performs namespace binding.
    protected org.apache.xerces.xni.parser.XMLDocumentScanner
    createDocumentScanner()
    Create a document scanner: this scanner performs namespace binding

    Methods inherited from class org.apache.xerces.parsers.StandardParserConfiguration

    checkFeature, checkProperty, configurePipeline

    Methods inherited from class org.apache.xerces.parsers.DTDConfiguration

    checkFeature, checkProperty, cleanup, configureDTDPipeline, configurePipeline, createDTDProcessor, createDTDScanner, createDTDValidator, createDatatypeValidatorFactory, createDocumentScanner, createEntityManager, createErrorReporter, createNamespaceBinder, createValidationManager, parse, parse, reset, setInputSource, setLocale

    Methods inherited from class org.apache.xerces.parsers.BasicParserConfiguration

    addComponent, checkFeature, checkProperty, getDTDContentModelHandler, getDTDHandler, getDocumentHandler, getEntityResolver, getErrorHandler, getLocale, parse, reset, setDTDContentModelHandler, setDTDHandler, setDocumentHandler, setEntityResolver, setErrorHandler, setFeature, setLocale, setProperty

    Methods inherited from class org.apache.xerces.util.ParserConfigurationSettings

    addRecognizedFeatures, addRecognizedProperties, checkFeature, checkProperty, getFeature, getProperty, setFeature, setProperty

    Field Details

    fNamespaceScanner

    protected XMLNSDocumentScannerImpl fNamespaceScanner
    Document scanner that does namespace binding.

    fNonNSDTDValidator

    protected XMLDTDValidator fNonNSDTDValidator
    DTD Validator that does not bind namespaces

    fNonNSScanner

    protected XMLDocumentScannerImpl fNonNSScanner
    Default Xerces implementation of scanner

    Constructor Details

    IntegratedParserConfiguration

    public IntegratedParserConfiguration()
    Default constructor.

    IntegratedParserConfiguration

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

    IntegratedParserConfiguration

    public IntegratedParserConfiguration(SymbolTable symbolTable,
                                         org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
    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.

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

    IntegratedParserConfiguration

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

    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 Details

    configurePipeline

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

    createDTDValidator

    protected XMLDTDValidator createDTDValidator()
    Create a DTD validator: this validator performs namespace binding.
    Overrides:
    createDTDValidator in interface DTDConfiguration

    createDocumentScanner

    protected org.apache.xerces.xni.parser.XMLDocumentScanner createDocumentScanner()
    Create a document scanner: this scanner performs namespace binding
    Overrides:
    createDocumentScanner in interface DTDConfiguration

    Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.