org.apache.xerces.parsers
Class XIncludeAwareParserConfiguration

java.lang.Object
  extended by org.apache.xerces.util.ParserConfigurationSettings
      extended by org.apache.xerces.parsers.XML11Configuration
          extended by org.apache.xerces.parsers.XIncludeAwareParserConfiguration
All Implemented Interfaces:
XML11Configurable, XMLComponentManager, XMLParserConfiguration, XMLPullParserConfiguration
Direct Known Subclasses:
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 447239 2006-09-18 05:08:26Z mrglavas $
Author:
Michael Glavassevich, IBM

Constructor Summary
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.
 
Method Summary
 boolean getFeature(java.lang.String featureId)
          Returns the state of a feature.
 void setFeature(java.lang.String featureId, boolean state)
          Set the state of a feature.
 
Methods inherited from class org.apache.xerces.parsers.XML11Configuration
cleanup, getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLocale, parse, parse, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler, setInputSource, setLocale, setProperty
 
Methods inherited from class org.apache.xerces.util.ParserConfigurationSettings
addRecognizedFeatures, addRecognizedProperties, getProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.xerces.xni.parser.XMLParserConfiguration
addRecognizedFeatures, addRecognizedProperties, getProperty
 

Constructor Detail

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,
                                        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,
                                        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.
Method Detail

getFeature

public boolean getFeature(java.lang.String featureId)
                   throws XMLConfigurationException
Description copied from class: XML11Configuration
Returns the state of a feature.

Specified by:
getFeature in interface XMLComponentManager
Specified by:
getFeature in interface XMLParserConfiguration
Overrides:
getFeature in class XML11Configuration
Parameters:
featureId - The feature identifier.
Returns:
true if the feature is supported
Throws:
XMLConfigurationException - Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.

setFeature

public void setFeature(java.lang.String featureId,
                       boolean state)
                throws 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 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:
XMLConfigurationException - Thrown if there is a configuration error.