Class XIncludeAwareParserConfiguration

All Implemented Interfaces:
XML11Configurable, org.apache.xerces.xni.parser.XMLComponentManager, org.apache.xerces.xni.parser.XMLParserConfiguration, org.apache.xerces.xni.parser.XMLPullParserConfiguration
Direct Known Subclasses:
SecureProcessingConfiguration, SecurityConfiguration, SoftReferenceSymbolTableConfiguration, XMLGrammarCachingConfiguration

public class XIncludeAwareParserConfiguration extends XML11Configuration
This class is the configuration used to parse XML 1.0 and XML 1.1 documents and provides support for XInclude. This is the default Xerces configuration.
Version:
$Id: XIncludeAwareParserConfiguration.java 987475 2010-08-20 12:27:44Z mrglavas $
Author:
Michael Glavassevich, IBM
  • Field Details

    • ALLOW_UE_AND_NOTATION_EVENTS

      protected static final String ALLOW_UE_AND_NOTATION_EVENTS
      Feature identifier: allow notation and unparsed entity events to be sent out of order.
      See Also:
    • XINCLUDE_FIXUP_BASE_URIS

      protected static final String XINCLUDE_FIXUP_BASE_URIS
      Feature identifier: fixup base URIs.
      See Also:
    • XINCLUDE_FIXUP_LANGUAGE

      protected static final String XINCLUDE_FIXUP_LANGUAGE
      Feature identifier: fixup language.
      See Also:
    • XINCLUDE_FEATURE

      protected static final String XINCLUDE_FEATURE
      Feature identifier: XInclude processing
      See Also:
    • XINCLUDE_HANDLER

      protected static final String XINCLUDE_HANDLER
      Property identifier: XInclude handler.
      See Also:
    • NAMESPACE_CONTEXT

      protected static final String NAMESPACE_CONTEXT
      Property identifier: error reporter.
      See Also:
    • fXIncludeHandler

      protected XIncludeHandler fXIncludeHandler
      XInclude handler.
    • fNonXIncludeNSContext

      protected NamespaceSupport fNonXIncludeNSContext
      Non-XInclude NamespaceContext.
    • fXIncludeNSContext

      protected XIncludeNamespaceSupport fXIncludeNSContext
      XInclude NamespaceContext.
    • fCurrentNSContext

      protected org.apache.xerces.xni.NamespaceContext fCurrentNSContext
      Current NamespaceContext.
    • fXIncludeEnabled

      protected boolean fXIncludeEnabled
      Flag indicating whether XInclude processsing is enabled.
  • Constructor Details

    • XIncludeAwareParserConfiguration

      public XIncludeAwareParserConfiguration()
      Default constructor.
    • XIncludeAwareParserConfiguration

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

      public XIncludeAwareParserConfiguration(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
      Constructs a parser configuration using the specified symbol table and grammar pool.

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

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

      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 class XML11Configuration
    • configureXML11Pipeline

      protected void configureXML11Pipeline()
      Description copied from class: XML11Configuration
      Configures the XML 1.1 pipeline. Note: this method also resets the new XML11 components.
      Overrides:
      configureXML11Pipeline in class XML11Configuration
    • getFeature

      public boolean getFeature(String featureId) throws org.apache.xerces.xni.parser.XMLConfigurationException
      Description copied from class: XML11Configuration
      Returns the state of a feature.
      Specified by:
      getFeature in interface org.apache.xerces.xni.parser.XMLComponentManager
      Specified by:
      getFeature in interface org.apache.xerces.xni.parser.XMLParserConfiguration
      Overrides:
      getFeature in class XML11Configuration
      Parameters:
      featureId - The feature identifier.
      Returns:
      true if the feature is supported
      Throws:
      org.apache.xerces.xni.parser.XMLConfigurationException - Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
    • setFeature

      public void setFeature(String featureId, boolean state) throws org.apache.xerces.xni.parser.XMLConfigurationException
      Description copied from class: XML11Configuration
      Set the state of a feature. Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.
      Specified by:
      setFeature in interface org.apache.xerces.xni.parser.XMLParserConfiguration
      Overrides:
      setFeature in class XML11Configuration
      Parameters:
      featureId - The unique identifier (URI) of the feature.
      state - The requested state of the feature (true or false).
      Throws:
      org.apache.xerces.xni.parser.XMLConfigurationException - If the requested feature is not known.