Class XML11NonValidatingConfiguration

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

    public class XML11NonValidatingConfiguration
    extends ParserConfigurationSettings
    implements XMLPullParserConfiguration, XML11Configurable
    This class is the non validating parser configuration used to parse XML 1.0 and XML 1.1 documents. Xerces parser that uses this configuration is not conformant non-validating XML processor, since conformant non-validating processor is required to process "all the declarations they read in the internal DTD subset ... must use the information in those declarations to normalize attribute values, include the replacement text of internal entities, and supply default attribute values".
    Version:
    $Id$
    Author:
    Elena Litani, IBM, John Kim, IBM, Michael Glavassevich, 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
      • 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
      • 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. 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
      • fDTDScanner

        protected XMLDTDScanner fDTDScanner
        The XML 1.0 DTD scanner.
      • 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.
      • fCurrentDVFactory

        protected DTDDVFactory fCurrentDVFactory
        Current Datatype validator factory.
      • fCurrentDTDScanner

        protected XMLDTDScanner fCurrentDTDScanner
        Current DTD scanner.
    • Constructor Detail

      • XML11NonValidatingConfiguration

        public XML11NonValidatingConfiguration()
        Default constructor.
      • XML11NonValidatingConfiguration

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

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

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