Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.parsers

public Class XIncludeAwareParserConfiguration

extends XML11Configuration
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xerces.internal.parsers.XMLGrammarCachingConfiguration, com.sun.org.apache.xerces.internal.parsers.SecurityConfiguration
Imports
com.sun.org.apache.xerces.internal.impl.Constants, com.sun.org.apache.xerces.internal.util.FeatureState, .NamespaceSupport, .SymbolTable, com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager, com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler, .XIncludeNamespaceSupport, com.sun.org.apache.xerces.internal.xni.NamespaceContext, .XMLDocumentHandler, com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool, com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager, .XMLConfigurationException, .XMLDocumentSource, jdk.xml.internal.XMLSecurityManager

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

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: error reporter.

Inherited from com.sun.org.apache.xerces.internal.parsers.XML11Configuration:
ALLOW_JAVA_ENCODINGSCONTINUE_AFTER_FATAL_ERRORDATATYPE_VALIDATOR_FACTORYDOCUMENT_SCANNERDTD_PROCESSORDTD_SCANNERDTD_VALIDATORENTITY_MANAGERENTITY_RESOLVERERROR_HANDLERERROR_REPORTEREXTERNAL_GENERAL_ENTITIESEXTERNAL_PARAMETER_ENTITIESfCommonComponentsfComponentsfConfigUpdatedfCurrentDTDScannerfCurrentDVFactoryfCurrentScannerfDatatypeValidatorFactoryfDocumentHandlerfDTDContentModelHandlerfDTDHandlerfDTDProcessorfDTDScannerfDTDValidatorfEntityManagerfErrorReporterfGrammarPoolfInputSourcefLastComponentfLocalefLocatorfNamespaceScannerfNonNSDTDValidatorfNonNSScannerfParseInProgressfSchemaValidatorfSymbolTablefValidationManagerfVersionDetectorfXML11ComponentsfXML11DatatypeFactoryfXML11DocScannerfXML11DTDProcessorfXML11DTDScannerfXML11DTDValidatorfXML11NSDocScannerfXML11NSDTDValidatorGENERATE_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.

public
XIncludeAwareParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings, XMLSecurityPropertyManager securityPropertyMgr, XMLSecurityManager securityManager)

Method Summary

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

Overrides com.sun.org.apache.xerces.internal.parsers.XML11Configuration.setFeature.

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setFeature.

Set the state of a feature.

Inherited from com.sun.org.apache.xerces.internal.parsers.XML11Configuration:
addCommonComponentaddComponentaddRecognizedParamsAndSetDefaultsaddXML11ComponentcheckFeaturecheckPropertycleanupgetDocumentHandlergetDTDContentModelHandlergetDTDHandlergetEntityResolvergetErrorHandlergetFeatureState0getLocalegetPropertyStateparseparseresetresetCommonresetXML11setDocumentHandlersetDTDContentModelHandlersetDTDHandlersetEntityResolversetErrorHandlersetInputSourcesetLocalesetProperty

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: error reporter.

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.

XIncludeAwareParserConfigurationback to summary
public XIncludeAwareParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings, XMLSecurityPropertyManager securityPropertyMgr, XMLSecurityManager securityManager)

Method Detail

configurePipelineback to summary
protected void configurePipeline()

Overrides com.sun.org.apache.xerces.internal.parsers.XML11Configuration.configurePipeline.

Configures the pipeline.

configureXML11Pipelineback to summary
protected void configureXML11Pipeline()

Overrides com.sun.org.apache.xerces.internal.parsers.XML11Configuration.configureXML11Pipeline.

Doc from com.sun.org.apache.xerces.internal.parsers.XML11Configuration.configureXML11Pipeline.

Configures the XML 1.1 pipeline.

Note

this method also resets the new XML11 components.

getFeatureStateback to summary
public FeatureState getFeatureState(String featureId) throws XMLConfigurationException

Overrides com.sun.org.apache.xerces.internal.parsers.XML11Configuration.getFeatureState.

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager.getFeatureState.

Doc from com.sun.org.apache.xerces.internal.parsers.XML11Configuration.getFeatureState.

Returns the state of a feature.

Parameters
featureId:String

The feature identifier.

Returns:FeatureState

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 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.setFeature.

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setFeature.

Doc from com.sun.org.apache.xerces.internal.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.