Class IntegratedParserConfiguration

  • All Implemented Interfaces:
    XMLComponentManager, XMLParserConfiguration, 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:

    • Features
      • http://apache.org/xml/features/validation/schema
      • http://apache.org/xml/features/validation/schema-full-checking
      • http://apache.org/xml/features/validation/schema/normalized-value
      • http://apache.org/xml/features/validation/schema/element-default
    • Properties
      • http://apache.org/xml/properties/internal/error-reporter
      • http://apache.org/xml/properties/internal/entity-manager
      • http://apache.org/xml/properties/internal/document-scanner
      • http://apache.org/xml/properties/internal/dtd-scanner
      • http://apache.org/xml/properties/internal/grammar-pool
      • http://apache.org/xml/properties/internal/validator/dtd
      • http://apache.org/xml/properties/internal/datatype-validator-factory
    Version:
    $Id$
    Author:
    Elena Litani, IBM
    • Field Detail

      • fNonNSDTDValidator

        protected XMLDTDValidator fNonNSDTDValidator
        DTD Validator that does not bind namespaces
    • Constructor Detail

      • 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,
                                             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,
                                             XMLGrammarPool grammarPool,
                                             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.