Class XML11DTDConfiguration

  • All Implemented Interfaces:
    XML11Configurable, XMLComponentManager, XMLParserConfiguration, XMLPullParserConfiguration

    public class XML11DTDConfiguration
    extends ParserConfigurationSettings
    implements XMLPullParserConfiguration, XML11Configurable
    This class is the DTD-only parser configuration used to parse XML 1.0 and XML 1.1 documents.

    This class recognizes the following features and properties:

    • Features
      • http://xml.org/sax/features/validation
      • http://xml.org/sax/features/namespaces
      • http://xml.org/sax/features/external-general-entities
      • http://xml.org/sax/features/external-parameter-entities
      • http://apache.org/xml/features/continue-after-fatal-error
      • http://apache.org/xml/features/load-external-dtd
    • Properties
      • http://xml.org/sax/properties/xml-string
      • http://apache.org/xml/properties/internal/symbol-table
      • http://apache.org/xml/properties/internal/error-handler
      • http://apache.org/xml/properties/internal/entity-resolver
      • 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, Neil Graham, IBM, Michael Glavassevich, IBM, John Kim, IBM
    • Field Detail

      • EXTERNAL_GENERAL_ENTITIES

        protected static final String EXTERNAL_GENERAL_ENTITIES
        Feature identifier: external general entities.
        See Also:
        Constant Field Values
      • EXTERNAL_PARAMETER_ENTITIES

        protected static final String EXTERNAL_PARAMETER_ENTITIES
        Feature identifier: external parameter entities.
        See Also:
        Constant Field Values
      • CONTINUE_AFTER_FATAL_ERROR

        protected static final String CONTINUE_AFTER_FATAL_ERROR
        Feature identifier: continue after fatal error.
        See Also:
        Constant Field Values
      • LOAD_EXTERNAL_DTD

        protected static final String LOAD_EXTERNAL_DTD
        Feature identifier: load external DTD.
        See Also:
        Constant Field Values
      • DOCUMENT_SCANNER

        protected static final String DOCUMENT_SCANNER
        Property identifier document scanner:
        See Also:
        Constant Field Values
      • NAMESPACE_BINDER

        protected static final String NAMESPACE_BINDER
        Property identifier: namespace binder.
        See Also:
        Constant Field Values
      • DATATYPE_VALIDATOR_FACTORY

        protected static final String DATATYPE_VALIDATOR_FACTORY
        Property identifier: datatype validator factory.
        See Also:
        Constant Field Values
      • JAXP_SCHEMA_LANGUAGE

        protected static final String JAXP_SCHEMA_LANGUAGE
        Property identifier: JAXP schema language / DOM schema-type.
        See Also:
        Constant Field Values
      • JAXP_SCHEMA_SOURCE

        protected static final String JAXP_SCHEMA_SOURCE
        Property identifier: JAXP schema source/ DOM schema-location.
        See Also:
        Constant Field Values
      • PRINT_EXCEPTION_STACK_TRACE

        protected static final boolean PRINT_EXCEPTION_STACK_TRACE
        Set to true and recompile to print exception stack trace.
        See Also:
        Constant Field Values
      • fLocale

        protected Locale fLocale
      • fComponents

        protected ArrayList fComponents
        XML 1.0 Components.
      • fXML11Components

        protected ArrayList fXML11Components
        XML 1.1. Components.
      • fCommonComponents

        protected ArrayList fCommonComponents
        Common components: XMLEntityManager, XMLErrorReporter
      • fDTDHandler

        protected XMLDTDHandler fDTDHandler
        The DTD handler.
      • fLastComponent

        protected XMLDocumentSource fLastComponent
        Last component in the document pipeline
      • fParseInProgress

        protected boolean fParseInProgress
        True if a parse is in progress. This state is needed because some features/properties cannot be set while parsing (e.g. validation and namespaces).
      • fConfigUpdated

        protected boolean fConfigUpdated
        fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed.
      • fDatatypeValidatorFactory

        protected DTDDVFactory fDatatypeValidatorFactory
        The XML 1.0 Datatype validator factory.
      • fNamespaceScanner

        protected XMLNSDocumentScannerImpl fNamespaceScanner
        The XML 1.0 Document scanner that does namespace binding.
      • fNonNSScanner

        protected XMLDocumentScannerImpl fNonNSScanner
        The XML 1.0 Non-namespace implementation of scanner
      • fDTDValidator

        protected XMLDTDValidator fDTDValidator
        The XML 1.0 DTD Validator: binds namespaces
      • fNonNSDTDValidator

        protected XMLDTDValidator fNonNSDTDValidator
        The XML 1.0 DTD Validator that does not bind namespaces
      • fDTDScanner

        protected XMLDTDScanner fDTDScanner
        The XML 1.0 DTD scanner.
      • fDTDProcessor

        protected XMLDTDProcessor fDTDProcessor
        The XML 1.0 DTD Processor .
      • fXML11DatatypeFactory

        protected DTDDVFactory fXML11DatatypeFactory
        The XML 1.1 datatype factory.
      • fXML11NSDocScanner

        protected XML11NSDocumentScannerImpl fXML11NSDocScanner
        The XML 1.1 document scanner that does namespace binding.
      • fXML11DocScanner

        protected XML11DocumentScannerImpl fXML11DocScanner
        The XML 1.1 document scanner that does not do namespace binding.
      • fXML11NSDTDValidator

        protected XML11NSDTDValidator fXML11NSDTDValidator
        The XML 1.1 DTD validator that does namespace binding.
      • fXML11DTDValidator

        protected XML11DTDValidator fXML11DTDValidator
        The XML 1.1 DTD validator that does not do namespace binding.
      • fXML11DTDProcessor

        protected XML11DTDProcessor fXML11DTDProcessor
        The XML 1.1 DTD processor.
      • fCurrentDVFactory

        protected DTDDVFactory fCurrentDVFactory
        Current Datatype validator factory.
      • fCurrentDTDScanner

        protected XMLDTDScanner fCurrentDTDScanner
        Current DTD scanner.
    • Constructor Detail

      • XML11DTDConfiguration

        public XML11DTDConfiguration()
        Default constructor.
      • XML11DTDConfiguration

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

        public XML11DTDConfiguration​(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.
      • XML11DTDConfiguration

        public XML11DTDConfiguration​(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.