public class

XIncludeAwareParserConfiguration

extends XML11Configuration
java.lang.Object
   ↳ org.apache.xerces.util.ParserConfigurationSettings
     ↳ org.apache.xerces.parsers.XML11Configuration
       ↳ org.apache.xerces.parsers.XIncludeAwareParserConfiguration
Known Direct Subclasses

Class Overview

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.

Summary

Constants
String ALLOW_UE_AND_NOTATION_EVENTS Feature identifier: allow notation and unparsed entity events to be sent out of order.
String NAMESPACE_CONTEXT Property identifier: error reporter.
String XINCLUDE_FEATURE Feature identifier: XInclude processing
String XINCLUDE_FIXUP_BASE_URIS Feature identifier: fixup base URIs.
String XINCLUDE_FIXUP_LANGUAGE Feature identifier: fixup language.
String XINCLUDE_HANDLER Property identifier: error reporter.
[Expand]
Inherited Constants
From class org.apache.xerces.parsers.XML11Configuration
From class org.apache.xerces.util.ParserConfigurationSettings
Fields
protected NamespaceContext fCurrentNSContext Current NamespaceContext.
protected NamespaceSupport fNonXIncludeNSContext Non-XInclude NamespaceContext.
protected boolean fXIncludeEnabled Flag indicating whether XInclude processsing is enabled.
protected XIncludeHandler fXIncludeHandler XInclude handler.
protected XIncludeNamespaceSupport fXIncludeNSContext XInclude NamespaceContext.
[Expand]
Inherited Fields
From class org.apache.xerces.parsers.XML11Configuration
From class org.apache.xerces.util.ParserConfigurationSettings
Public Constructors
XIncludeAwareParserConfiguration()
Default constructor.
XIncludeAwareParserConfiguration(SymbolTable symbolTable)
Constructs a parser configuration using the specified symbol table.
XIncludeAwareParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Constructs a parser configuration using the specified symbol table and grammar pool.
XIncludeAwareParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)
Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.
Public Methods
boolean getFeature(String featureId)
Returns the state of a feature.
void setFeature(String featureId, boolean state)
Set the state of a feature.
Protected Methods
void configurePipeline()
Configures the pipeline.
void configureXML11Pipeline()
Configures the XML 1.1 pipeline.
[Expand]
Inherited Methods
From class org.apache.xerces.parsers.XML11Configuration
From class org.apache.xerces.util.ParserConfigurationSettings
From class java.lang.Object
From interface org.apache.xerces.xni.parser.XMLComponentManager
From interface org.apache.xerces.xni.parser.XMLParserConfiguration
From interface org.apache.xerces.xni.parser.XMLPullParserConfiguration

Constants

protected static final String ALLOW_UE_AND_NOTATION_EVENTS

Feature identifier: allow notation and unparsed entity events to be sent out of order.

Constant Value: "http://xml.org/sax/features/allow-dtd-events-after-endDTD"

protected static final String NAMESPACE_CONTEXT

Property identifier: error reporter.

Constant Value: "http://apache.org/xml/properties/internal/namespace-context"

protected static final String XINCLUDE_FEATURE

Feature identifier: XInclude processing

Constant Value: "http://apache.org/xml/features/xinclude"

protected static final String XINCLUDE_FIXUP_BASE_URIS

Feature identifier: fixup base URIs.

Constant Value: "http://apache.org/xml/features/xinclude/fixup-base-uris"

protected static final String XINCLUDE_FIXUP_LANGUAGE

Feature identifier: fixup language.

Constant Value: "http://apache.org/xml/features/xinclude/fixup-language"

protected static final String XINCLUDE_HANDLER

Property identifier: error reporter.

Constant Value: "http://apache.org/xml/properties/internal/xinclude-handler"

Fields

protected NamespaceContext fCurrentNSContext

Current NamespaceContext.

protected NamespaceSupport fNonXIncludeNSContext

Non-XInclude NamespaceContext.

protected boolean fXIncludeEnabled

Flag indicating whether XInclude processsing is enabled.

protected XIncludeHandler fXIncludeHandler

XInclude handler.

protected XIncludeNamespaceSupport fXIncludeNSContext

XInclude NamespaceContext.

Public Constructors

public XIncludeAwareParserConfiguration ()

Default constructor.

public XIncludeAwareParserConfiguration (SymbolTable symbolTable)

Constructs a parser configuration using the specified symbol table.

Parameters
symbolTable The symbol table to use.

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

public XIncludeAwareParserConfiguration (SymbolTable symbolTable, XMLGrammarPool grammarPool, 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.

Public Methods

public boolean getFeature (String featureId)

Returns the state of a feature.

Parameters
featureId The feature identifier.
Returns
  • true if the feature is supported

public void setFeature (String featureId, boolean state)

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.

Parameters
featureId The unique identifier (URI) of the feature.
state The requested state of the feature (true or false).

Protected Methods

protected void configurePipeline ()

Configures the pipeline.

protected void configureXML11Pipeline ()

Configures the XML 1.1 pipeline. Note: this method also resets the new XML11 components.