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

public Class XML11Configuration

extends ParserConfigurationSettings
implements XMLPullParserConfiguration, XML11Configurable
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.parsers.XML11Configurable, com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration, com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration, com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager
Known Direct Subclasses
com.sun.org.apache.xerces.internal.parsers.XPointerParserConfiguration, com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration, com.sun.org.apache.xerces.internal.parsers.XIncludeParserConfiguration
Imports
com.sun.org.apache.xerces.internal.impl.Constants, .XML11DTDScannerImpl, .XML11DocumentScannerImpl, .XML11NSDocumentScannerImpl, .XMLDTDScannerImpl, .XMLDocumentScannerImpl, .XMLEntityHandler, .XMLEntityManager, .XMLErrorReporter, .XMLNSDocumentScannerImpl, .XMLVersionDetector, com.sun.org.apache.xerces.internal.impl.dtd.XML11DTDProcessor, .XML11DTDValidator, .XML11NSDTDValidator, .XMLDTDProcessor, .XMLDTDValidator, .XMLNSDTDValidator, com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory, com.sun.org.apache.xerces.internal.impl.msg.XMLMessageFormatter, com.sun.org.apache.xerces.internal.impl.validation.ValidationManager, com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator, .XSMessageFormatter, com.sun.org.apache.xerces.internal.util.FeatureState, .ParserConfigurationSettings, .PropertyState, .SymbolTable, com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager, com.sun.org.apache.xerces.internal.xni.XMLDTDContentModelHandler, .XMLDTDHandler, .XMLDocumentHandler, .XMLLocator, .XNIException, com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool, com.sun.org.apache.xerces.internal.xni.parser.XMLComponent, .XMLComponentManager, .XMLConfigurationException, .XMLDTDScanner, .XMLDocumentScanner, .XMLDocumentSource, .XMLEntityResolver, .XMLErrorHandler, .XMLInputSource, .XMLPullParserConfiguration, java.io.IOException, java.util.ArrayList, .List, .Locale, javax.xml.XMLConstants, javax.xml.catalog.CatalogFeatures, jdk.xml.internal.JdkConstants, .JdkXmlUtils, .XMLSecurityManager

This class is the configuration used to parse XML 1.0 and XML 1.1 documents.
Authors
Elena Litani, IBM, Neil Graham, IBM, Michael Glavassevich, IBM

Field Summary

Modifier and TypeField and Description
protected static final String
ALLOW_JAVA_ENCODINGS

Feature identifier: allow Java encodings.

protected static final String
CONTINUE_AFTER_FATAL_ERROR

Feature identifier: continue after fatal error.

protected static final String
DATATYPE_VALIDATOR_FACTORY

Property identifier: datatype validator factory.

protected static final String
DOCUMENT_SCANNER

Property identifier document scanner:

protected static final String
DTD_PROCESSOR

Property identifier: DTD loader.

protected static final String
DTD_SCANNER

Property identifier: DTD scanner.

protected static final String
DTD_VALIDATOR

Property identifier: DTD validator.

protected static final String
ENTITY_MANAGER

Property identifier: entity manager.

protected static final String
ENTITY_RESOLVER

Property identifier: entity resolver.

protected static final String
ERROR_HANDLER

Property identifier: error handler.

protected static final String
ERROR_REPORTER

Property identifier: error reporter.

protected static final String
EXTERNAL_GENERAL_ENTITIES

Feature identifier: external general entities.

protected static final String
EXTERNAL_PARAMETER_ENTITIES

Feature identifier: external parameter entities.

private boolean
f11Initialized

Flag indicating whether XML11 components have been initialized.

protected List<XMLComponent>
fCommonComponents

Common components: XMLEntityManager, XMLErrorReporter, XMLSchemaValidator

protected List<XMLComponent>
fComponents

XML 1.0 Components.

protected boolean
fConfigUpdated

fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed.

protected XMLDTDScanner
fCurrentDTDScanner

Current DTD scanner.

protected DTDDVFactory
fCurrentDVFactory

Current Datatype validator factory.

protected XMLDocumentScanner
fCurrentScanner

Current scanner

protected DTDDVFactory
fDatatypeValidatorFactory

The XML 1.0 Datatype validator factory.

protected XMLDocumentHandler
fDocumentHandler

The document handler.

protected XMLDTDContentModelHandler
fDTDContentModelHandler

The DTD content model handler.

protected XMLDTDHandler
fDTDHandler

The DTD handler.

protected XMLDTDProcessor
fDTDProcessor

The XML 1.0 DTD Processor .

protected XMLDTDScanner
fDTDScanner

The XML 1.0 DTD scanner.

protected XMLDTDValidator
fDTDValidator

The XML 1.0 DTD Validator: binds namespaces

protected XMLEntityManager
fEntityManager

Entity manager.

protected XMLErrorReporter
fErrorReporter

Error reporter.

protected XMLGrammarPool
fGrammarPool

Grammar pool.

protected XMLInputSource
protected XMLDocumentSource
fLastComponent

Last component in the document pipeline

protected Locale
protected XMLLocator
protected XMLNSDocumentScannerImpl
fNamespaceScanner

The XML 1.0 Document scanner that does namespace binding.

protected XMLDTDValidator
fNonNSDTDValidator

The XML 1.0 DTD Validator that does not bind namespaces

protected XMLDocumentScannerImpl
fNonNSScanner

The XML 1.0 Non-namespace implementation of scanner

protected boolean
fParseInProgress

True if a parse is in progress.

protected XMLSchemaValidator
fSchemaValidator

XML Schema Validator.

protected SymbolTable
private boolean
fSymbolTableJustInitialized

Flag indicating if the symbol table was initialized and never used before that

private boolean
fSymbolTableProvided

Flag indicating whether the symbol table instance was specified during construction

protected ValidationManager
protected XMLVersionDetector
protected List<XMLComponent>
protected DTDDVFactory
fXML11DatatypeFactory

The XML 1.1 datatype factory.

protected XML11DocumentScannerImpl
fXML11DocScanner

The XML 1.1 document scanner that does not do namespace binding.

protected XML11DTDProcessor
fXML11DTDProcessor

The XML 1.1 DTD processor.

protected XML11DTDScannerImpl
fXML11DTDScanner

The XML 1.1 DTD scanner.

protected XML11DTDValidator
fXML11DTDValidator

The XML 1.1 DTD validator that does not do namespace binding.

protected XML11NSDocumentScannerImpl
fXML11NSDocScanner

The XML 1.1 document scanner that does namespace binding.

protected XML11NSDTDValidator
fXML11NSDTDValidator

The XML 1.1 DTD validator that does namespace binding.

protected static final String
GENERATE_SYNTHETIC_ANNOTATIONS

Feature: generate synthetic annotations

protected static final String
HONOUR_ALL_SCHEMALOCATIONS

Feature identifier: honour all schemaLocations

protected static final String
ID_IDREF_CHECKING

Feature identifier: whether to ignore ID/IDREF errors

protected static final String
IDENTITY_CONSTRAINT_CHECKING

Feature identifier: whether to ignore identity constraint errors

protected static final String
IGNORE_XSI_TYPE

Feature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered

protected static final String
JAXP_SCHEMA_LANGUAGE

Property identifier: JAXP schema language / DOM schema-type.

protected static final String
JAXP_SCHEMA_SOURCE

Property identifier: JAXP schema source/ DOM schema-location.

protected static final String
LOAD_EXTERNAL_DTD

Feature identifier: load external DTD.

protected static final String
LOCALE

Property identifier: locale.

protected static final String
NAMESPACE_BINDER

Property identifier: namespace binder.

protected static final String
NAMESPACE_GROWTH

Feature identifier: namespace growth

protected static final String
NAMESPACES

Feature identifier: namespaces.

protected static final String
NORMALIZE_DATA

Feature identifier: expose schema normalized value

protected static final String
NOTIFY_BUILTIN_REFS

Feature identifier: notify built-in refereces.

protected static final String
NOTIFY_CHAR_REFS

Feature identifier: notify character refereces.

protected static final String
ROOT_ELEMENT_DECL

Property identifier: root element declaration.

protected static final String
ROOT_TYPE_DEF

Property identifier: root type definition.

protected static final String
SCHEMA_AUGMENT_PSVI

Feature identifier: augment PSVI

protected static final String
SCHEMA_DV_FACTORY

Property identifier: Schema DV Factory

protected static final String
SCHEMA_ELEMENT_DEFAULT

Feature identifier: send element default value via characters()

protected static final String
SCHEMA_LOCATION

Property identifier: schema location.

protected static final String
SCHEMA_NONS_LOCATION

Property identifier: no namespace schema location.

protected static final String
SCHEMA_VALIDATOR

Property identifier: XML Schema validator.

private static final String
SECURITY_MANAGER

Property identifier: Security manager.

protected static final String
SYMBOL_TABLE

Property identifier: symbol table.

protected static final String
TOLERATE_DUPLICATES

Feature identifier: tolerate duplicates

protected static final String
UNPARSED_ENTITY_CHECKING

Feature identifier: whether to ignore unparsed entity errors

protected static final String
USE_GRAMMAR_POOL_ONLY

Feature identifier: use grammar pool only

protected static final String
VALIDATE_ANNOTATIONS

Feature identifier: validate annotations

protected static final String
VALIDATION

Feature identifier: validation.

protected static final String
protected static final String
WARN_ON_DUPLICATE_ATTDEF

Feature identifier: warn on duplicate attribute definition.

protected static final String
WARN_ON_DUPLICATE_ENTITYDEF

Feature identifier: warn on duplicate entity definition.

protected static final String
WARN_ON_UNDECLARED_ELEMDEF

Feature identifier: warn on undeclared element definition.

protected static final String
private static final String
XML_SECURITY_PROPERTY_MANAGER

Property identifier: Security property manager.

protected static final String
XML_STRING

Property identifier: xml string.

protected static final String
XMLGRAMMAR_POOL

Property identifier: grammar pool.

protected static final String
XMLSCHEMA_FULL_CHECKING

feature identifier: XML Schema validation -- full checking

protected static final String
XMLSCHEMA_VALIDATION

feature identifier: XML Schema validation

Inherited from com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings:
fFeaturesfParentSettingsfPropertiesfRecognizedFeaturesfRecognizedPropertiesPARSER_SETTINGS

Constructor Summary

AccessConstructor and Description
public
XML11Configuration()

Default constructor.

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

Constructs a parser configuration using the specified symbol table.

public
XML11Configuration(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
XML11Configuration(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
XML11Configuration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings, XMLSecurityPropertyManager securityPropertyMgr, XMLSecurityManager securityManager)

Method Summary

Modifier and TypeMethod and Description
protected void
addCommonComponent(XMLComponent
The component to add.
component
)

Adds common component to the parser configuration.

protected void
addComponent(XMLComponent
The component to add.
component
)

Adds a component to the parser configuration.

protected void
addRecognizedParamsAndSetDefaults(XMLComponent
The component whose recognized features and properties will be added to the configuration
component
)

Adds all of the component's recognized features and properties to the list of default recognized features and properties, and sets default values on the configuration for features and properties which were previously absent from the configuration.

protected void
addXML11Component(XMLComponent
The component to add.
component
)

Adds an XML 1.1 component to the parser configuration.

protected FeatureState
checkFeature(String
The unique identifier (URI) of the feature.
featureId
)

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.checkFeature.

Check a feature.

protected PropertyState
checkProperty(String
The unique identifier (URI) of the property being set.
propertyId
)

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.checkProperty.

Check a property.

public void
cleanup()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration.cleanup.

If the application decides to terminate parsing before the xml document is fully parsed, the application should call this method to free any resource allocated during parsing.

protected void
configurePipeline()

Configures the pipeline.

protected void
configureXML11Pipeline()

Configures the XML 1.1 pipeline.

public XMLDocumentHandler
public XMLDTDContentModelHandler
public XMLDTDHandler
public XMLEntityResolver

Returns:

The current entity resolver, or null if none has been registered.
getEntityResolver
()

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

Return the current entity resolver.

public XMLErrorHandler

Returns:

The current error handler, or null if none has been registered.
getErrorHandler
()

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

Return the current error handler.

public FeatureState

Returns:

true if the feature is supported
getFeatureState
(String
The feature identifier.
featureId
)

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.getFeatureState.

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

Returns the state of a feature.

pack-priv FeatureState
getFeatureState0(String featureId)

Returns the state of a feature.

public Locale
public PropertyState

Returns:

the value of the property
getPropertyState
(String
The property identifier.
propertyId
)

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.getPropertyState.

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

Returns the value of a property.

private void
public void
parse(XMLInputSource
The input source.
source
)

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

Parses the specified input source.

public boolean
parse(boolean
True if the pull parser should parse the remaining document completely.
complete
)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration.parse.

Parses the document in a pull parsing fashion.

protected void
reset()

reset all XML 1.0 components before parsing and namespace context

protected void
resetCommon()

reset all common components before parsing

private void
resetSymbolTable()

Reset the symbol table if it wasn't provided during construction, its not the first time when parse is called after initialization and RESET_SYMBOL_TABLE feature is set to true

protected void
resetXML11()

reset all components before parsing and namespace context

public void
setDocumentHandler(XMLDocumentHandler
The document handler.
documentHandler
)

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

Sets the document handler on the last component in the pipeline to receive information about the document.

public void
public void
public void
setEntityResolver(XMLEntityResolver
The new entity resolver. Passing a null value will uninstall the currently installed resolver.
resolver
)

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

Sets the resolver used to resolve external entities.

public void
setErrorHandler(XMLErrorHandler
The error handler.
errorHandler
)

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

Allow an application to register an error event handler.

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.util.ParserConfigurationSettings.setFeature.

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

Set the state of a feature.

public void
setInputSource(XMLInputSource
The document's input source.
inputSource
)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration.setInputSource.

Sets the input source for the document to parse.

public void
setLocale(Locale
The locale object to use for localization of messages.
locale
)

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

Set the locale to use for messages.

public void
Inherited from com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings:
addRecognizedFeaturesaddRecognizedPropertiesgetFeaturegetFeaturegetPropertygetProperty