Top Description Fields Constructors Methods
org.apache.xerces.parsers

public Class XIncludeAwareParserConfiguration

extends XML11Configuration
Class Inheritance
Known Direct Subclasses
org.apache.xerces.parsers.XMLGrammarCachingConfiguration, org.apache.xerces.parsers.SecureProcessingConfiguration, org.apache.xerces.parsers.SecurityConfiguration, org.apache.xerces.parsers.SoftReferenceSymbolTableConfiguration
Imports
org.apache.xerces.impl.Constants, org.apache.xerces.util.NamespaceSupport, .SymbolTable, org.apache.xerces.xinclude.XIncludeHandler, .XIncludeNamespaceSupport, org.apache.xerces.xni.NamespaceContext, .XMLDocumentHandler, org.apache.xerces.xni.grammars.XMLGrammarPool, org.apache.xerces.xni.parser.XMLComponentManager, .XMLConfigurationException, .XMLDocumentSource

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.
Author
Michael Glavassevich, IBM
Version
$Id: XIncludeAwareParserConfiguration.java 987475 2010-08-20 12:27:44Z mrglavas $

Field Summary

Modifier and TypeField and Description
protected static final String
ALLOW_UE_AND_NOTATION_EVENTS

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

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.

protected static final String
NAMESPACE_CONTEXT

Property identifier: error reporter.

protected static final String
XINCLUDE_FEATURE

Feature identifier: XInclude processing

protected static final String
XINCLUDE_FIXUP_BASE_URIS

Feature identifier: fixup base URIs.

protected static final String
XINCLUDE_FIXUP_LANGUAGE

Feature identifier: fixup language.

protected static final String
XINCLUDE_HANDLER

Property identifier: XInclude handler.

Inherited from org.apache.xerces.parsers.XML11Configuration:
ALLOW_JAVA_ENCODINGSCONTINUE_AFTER_FATAL_ERRORDATATYPE_VALIDATOR_FACTORYDOCUMENT_SCANNERDTD_PROCESSORDTD_SCANNERDTD_VALIDATORENTITY_MANAGERENTITY_RESOLVERERROR_HANDLERERROR_REPORTEREXTERNAL_GENERAL_ENTITIESEXTERNAL_PARAMETER_ENTITIESfCommonComponentsfComponentsfConfigUpdatedfCurrentDTDScannerfCurrentDVFactoryfCurrentScannerfDatatypeValidatorFactoryfDocumentHandlerfDTDContentModelHandlerfDTDHandlerfDTDProcessorfDTDScannerfDTDValidatorfEntityManagerfErrorReporterfGrammarPoolfInputSourcefLastComponentfLocalefNamespaceScannerfNonNSDTDValidatorfNonNSScannerfParseInProgressfSchemaValidatorfSymbolTablefValidationManagerfVersionDetectorfXML11ComponentsfXML11DatatypeFactoryfXML11DocScannerfXML11DTDProcessorfXML11DTDScannerfXML11DTDValidatorfXML11NSDocScannerfXML11NSDTDValidatorGENERATE_SYNTHETIC_ANNOTATIONSHONOUR_ALL_SCHEMALOCATIONSID_IDREF_CHECKINGIDENTITY_CONSTRAINT_CHECKINGIGNORE_XSI_TYPEJAXP_SCHEMA_LANGUAGEJAXP_SCHEMA_SOURCELOAD_EXTERNAL_DTDLOCALENAMESPACE_BINDERNAMESPACE_GROWTHNAMESPACESNORMALIZE_DATANOTIFY_BUILTIN_REFSNOTIFY_CHAR_REFSPRINT_EXCEPTION_STACK_TRACEROOT_ELEMENT_DECLROOT_TYPE_DEFSCHEMA_AUGMENT_PSVISCHEMA_DV_FACTORYSCHEMA_ELEMENT_DEFAULTSCHEMA_LOCATIONSCHEMA_NONS_LOCATIONSCHEMA_VALIDATORSYMBOL_TABLETOLERATE_DUPLICATESUNPARSED_ENTITY_CHECKINGUSE_GRAMMAR_POOL_ONLYVALIDATE_ANNOTATIONSVALIDATIONVALIDATION_MANAGERWARN_ON_DUPLICATE_ATTDEFWARN_ON_DUPLICATE_ENTITYDEFWARN_ON_UNDECLARED_ELEMDEFXML11_DATATYPE_VALIDATOR_FACTORYXML_STRINGXMLGRAMMAR_POOLXMLSCHEMA_FULL_CHECKINGXMLSCHEMA_VALIDATION

Constructor Summary

AccessConstructor and Description
public
XIncludeAwareParserConfiguration()

Default constructor.

public
XIncludeAwareParserConfiguration(SymbolTable
The symbol table to use.
symbolTable
)

Constructs a parser configuration using the specified symbol table.

public
XIncludeAwareParserConfiguration(SymbolTable
The symbol table to use.
symbolTable
,
XMLGrammarPool
The grammar pool to use.
grammarPool
)

Constructs a parser configuration using the specified symbol table and grammar pool.

public
XIncludeAwareParserConfiguration(SymbolTable
The symbol table to use.
symbolTable
,
XMLGrammarPool
The grammar pool to use.
grammarPool
,
XMLComponentManager
The parent settings.
parentSettings
)

Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
public boolean
public void
setFeature(String
The unique identifier (URI) of the feature.
featureId
,
boolean
The requested state of the feature (true or false).
state
)

Overrides org.apache.xerces.parsers.XML11Configuration.setFeature.

Implements org.apache.xerces.xni.parser.XMLParserConfiguration.setFeature.

Set the state of a feature.
Inherited from org.apache.xerces.parsers.XML11Configuration:
addCommonComponentaddComponentaddRecognizedParamsAndSetDefaultsaddXML11ComponentcheckFeaturecheckPropertycleanupgetDocumentHandlergetDTDContentModelHandlergetDTDHandlergetEntityResolvergetErrorHandlergetFeature0getLocalegetPropertyparseparseresetresetCommonresetXML11setDocumentHandlersetDTDContentModelHandlersetDTDHandlersetEntityResolversetErrorHandlersetInputSourcesetLocalesetProperty

Field Detail

ALLOW_UE_AND_NOTATION_EVENTSback to summary
protected static final String ALLOW_UE_AND_NOTATION_EVENTS

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

fCurrentNSContextback to summary
protected NamespaceContext fCurrentNSContext

Current NamespaceContext.

fNonXIncludeNSContextback to summary
protected NamespaceSupport fNonXIncludeNSContext

Non-XInclude NamespaceContext.

fXIncludeEnabledback to summary
protected boolean fXIncludeEnabled

Flag indicating whether XInclude processsing is enabled.

fXIncludeHandlerback to summary
protected XIncludeHandler fXIncludeHandler

XInclude handler.

fXIncludeNSContextback to summary
protected XIncludeNamespaceSupport fXIncludeNSContext

XInclude NamespaceContext.

NAMESPACE_CONTEXTback to summary
protected static final String NAMESPACE_CONTEXT

Property identifier: error reporter.

XINCLUDE_FEATUREback to summary
protected static final String XINCLUDE_FEATURE

Feature identifier: XInclude processing

XINCLUDE_FIXUP_BASE_URISback to summary
protected static final String XINCLUDE_FIXUP_BASE_URIS

Feature identifier: fixup base URIs.

XINCLUDE_FIXUP_LANGUAGEback to summary
protected static final String XINCLUDE_FIXUP_LANGUAGE

Feature identifier: fixup language.

XINCLUDE_HANDLERback to summary
protected static final String XINCLUDE_HANDLER

Property identifier: XInclude handler.

Constructor Detail

XIncludeAwareParserConfigurationback to summary
public XIncludeAwareParserConfiguration()

Default constructor.

XIncludeAwareParserConfigurationback to summary
public XIncludeAwareParserConfiguration(SymbolTable symbolTable)

Constructs a parser configuration using the specified symbol table.

Parameters
symbolTable:SymbolTable

The symbol table to use.

XIncludeAwareParserConfigurationback to summary
public XIncludeAwareParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)

Constructs a parser configuration using the specified symbol table and grammar pool.

Parameters
symbolTable:SymbolTable

The symbol table to use.

grammarPool:XMLGrammarPool

The grammar pool to use.

XIncludeAwareParserConfigurationback to summary
public XIncludeAwareParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)

Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.

Parameters
symbolTable:SymbolTable

The symbol table to use.

grammarPool:XMLGrammarPool

The grammar pool to use.

parentSettings:XMLComponentManager

The parent settings.

Method Detail

configurePipelineback to summary
protected void configurePipeline()

Overrides org.apache.xerces.parsers.XML11Configuration.configurePipeline.

Configures the pipeline.

configureXML11Pipelineback to summary
protected void configureXML11Pipeline()

Overrides org.apache.xerces.parsers.XML11Configuration.configureXML11Pipeline.

Doc from org.apache.xerces.parsers.XML11Configuration.configureXML11Pipeline.

Configures the XML 1.1 pipeline.

Note

this method also resets the new XML11 components.

getFeatureback to summary
public boolean getFeature(String featureId) throws XMLConfigurationException

Overrides org.apache.xerces.parsers.XML11Configuration.getFeature.

Implements org.apache.xerces.xni.parser.XMLParserConfiguration.getFeature, org.apache.xerces.xni.parser.XMLComponentManager.getFeature.

Doc from org.apache.xerces.parsers.XML11Configuration.getFeature.

Returns the state of a feature.

Parameters
featureId:String

The feature identifier.

Returns:boolean

true if the feature is supported

Exceptions
XMLConfigurationException:
Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
setFeatureback to summary
public void setFeature(String featureId, boolean state) throws XMLConfigurationException

Overrides org.apache.xerces.parsers.XML11Configuration.setFeature.

Implements org.apache.xerces.xni.parser.XMLParserConfiguration.setFeature.

Doc from org.apache.xerces.parsers.XML11Configuration.setFeature.

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:String

The unique identifier (URI) of the feature.

state:boolean

The requested state of the feature (true or false).

Exceptions
XMLConfigurationException:
If the requested feature is not known.