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

public Class DOMConfigurationImpl

extends ParserConfigurationSettings
implements XMLParserConfiguration, DOMConfiguration
Class Inheritance
All Implemented Interfaces
org.w3c.dom.DOMConfiguration, com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration, com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager
Imports
com.sun.org.apache.xerces.internal.impl.Constants, .XMLEntityManager, .XMLErrorReporter, 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.util.DOMEntityResolverWrapper, .DOMErrorHandlerWrapper, .MessageFormatter, .ParserConfigurationSettings, .PropertyState, .SymbolTable, com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager, com.sun.org.apache.xerces.internal.xni.XMLDTDContentModelHandler, .XMLDTDHandler, .XMLDocumentHandler, .XNIException, com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool, com.sun.org.apache.xerces.internal.xni.parser.XMLComponent, .XMLComponentManager, .XMLConfigurationException, .XMLEntityResolver, .XMLErrorHandler, .XMLInputSource, .XMLParserConfiguration, java.io.IOException, java.util.ArrayList, .HashMap, .List, .Locale, .StringTokenizer, javax.xml.XMLConstants, javax.xml.catalog.CatalogFeatures, jdk.xml.internal.JdkConstants, .JdkXmlUtils, .XMLSecurityManager, org.w3c.dom.DOMConfiguration, .DOMErrorHandler, .DOMException, .DOMStringList, org.w3c.dom.ls.LSResourceResolver

Xerces implementation of DOMConfiguration that maintains a table of recognized parameters.
Authors
Elena Litani, IBM, Neeraj Bajaj, Sun Microsystems.

Field Summary

Modifier and TypeField and Description
protected static final String
BALANCE_SYNTAX_TREES

Feature identifier: balance syntax trees.

protected static final short
protected static final short
protected static final String
DISALLOW_DOCTYPE_DECL_FEATURE

Feature identifier: load external DTD.

protected static final String
DTD_VALIDATOR_FACTORY_PROPERTY

Property identifier: datatype validator factory.

protected static final String
DTD_VALIDATOR_PROPERTY

Property identifier: DTD validator.

protected static final short
protected static final String
protected static final short
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 List<XMLComponent>
fComponents

Components.

protected DTDDVFactory
fCurrentDVFactory

Current Datatype validator factory.

protected DTDDVFactory
fDatatypeValidatorFactory

The XML 1.0 Datatype validator factory.

pack-priv XMLDocumentHandler
protected short
features

Normalization features

protected final DOMErrorHandlerWrapper
protected XMLErrorReporter
fErrorReporter

Error reporter

protected Locale
fLocale

Locale.

private DOMStringList
private String
protected SymbolTable
fSymbolTable

Symbol table.

protected ValidationManager
protected DTDDVFactory
fXML11DatatypeFactory

The XML 1.1 Datatype validator factory.

protected static final String
GENERATE_SYNTHETIC_ANNOTATIONS

Feature: generate synthetic annotations

protected static final String
GRAMMAR_POOL

Property id: Grammar pool.

protected static final String
HONOUR_ALL_SCHEMALOCATIONS

Feature identifier: honour all schemaLocations

protected static final short
protected static final short
protected static final short
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
NAMESPACE_GROWTH

Feature identifier: namespace growth

protected static final short
protected static final String
protected static final short
protected static final short
protected static final String
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
protected static final String
SCHEMA_LOCATION

Property identifier: schema location.

protected static final String
SCHEMA_NONS_LOCATION

Property identifier: no namespace schema location.

private static final String
SECURITY_MANAGER

Property identifier: Security manager.

protected static final String
SEND_PSVI

sending psvi in the pipeline

protected static final short
protected static final String
SYMBOL_TABLE

Property identifier: symbol table.

protected static final String
protected static final String
USE_GRAMMAR_POOL_ONLY

Feature identifier: use grammar pool only

protected static final short
protected static final String
VALIDATE_ANNOTATIONS

Feature identifier: validate annotations

protected static final String
protected static final String
WARN_ON_DUPLICATE_ATTDEF

Feature identifier: warn on duplicate attribute definition.

protected static final short
protected static final String
XERCES_NAMESPACES

Feature identifier: namespaces.

protected static final String
XERCES_VALIDATION

Feature identifier: validation.

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.

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

Constructor Summary

AccessConstructor and Description
protected
DOMConfigurationImpl()

Default Constructor.

protected
DOMConfigurationImpl(SymbolTable
The symbol table to use.
symbolTable
)

Constructs a parser configuration using the specified symbol table.

protected
DOMConfigurationImpl(SymbolTable
The symbol table to use.
symbolTable
,
XMLComponentManager
The parent settings.
parentSettings
)

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

Method Summary

Modifier and TypeMethod and Description
protected void
public boolean

Returns:

true if the parameter could be successfully set to the specified value, or false if the parameter is not recognized or the requested value is not supported. This does not change the current value of the parameter itself.
canSetParameter
(String
The name of the parameter to check.
name
,
Object
An object. if null, the returned value is true.
value
)

Implements org.w3c.dom.DOMConfiguration.canSetParameter.

DOM Level 3 WD - Experimental.

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.

protected ValidationManager
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 boolean
public Locale
public Object
getParameter(String
The name of the parameter.
name
)

Implements org.w3c.dom.DOMConfiguration.getParameter.

DOM Level 3 WD - Experimental.

public DOMStringList
getParameterNames()

Implements org.w3c.dom.DOMConfiguration.getParameterNames.

DOM Level 3 CR - Experimental.

private static DOMException
private static DOMException
private static DOMException
public void
parse(XMLInputSource
The input source for the top-level of the XML document.
inputSource
)

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

Parse an XML document.

protected void
reset()

reset all components before parsing

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
protected final 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
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
setParameter(String
The name of the parameter to set.
name
,
Object
The new value or null if the user wishes to unset the parameter. While the type of the value parameter is defined as DOMUserData, the object type must match the type defined by the definition of the parameter. For example, if the parameter is "error-handler", the value must be of type DOMErrorHandler.
value
)

Implements org.w3c.dom.DOMConfiguration.setParameter.

DOM Level 3 WD - Experimental.

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

Field Detail

BALANCE_SYNTAX_TREESback to summary
protected static final String BALANCE_SYNTAX_TREES

Feature identifier: balance syntax trees.

CDATAback to summary
protected static final short CDATA
COMMENTSback to summary
protected static final short COMMENTS
DISALLOW_DOCTYPE_DECL_FEATUREback to summary
protected static final String DISALLOW_DOCTYPE_DECL_FEATURE

Feature identifier: load external DTD.

DTD_VALIDATOR_FACTORY_PROPERTYback to summary
protected static final String DTD_VALIDATOR_FACTORY_PROPERTY

Property identifier: datatype validator factory.

DTD_VALIDATOR_PROPERTYback to summary
protected static final String DTD_VALIDATOR_PROPERTY

Property identifier: DTD validator.

DTNORMALIZATIONback to summary
protected static final short DTNORMALIZATION
DYNAMIC_VALIDATIONback to summary
protected static final String DYNAMIC_VALIDATION
ENTITIESback to summary
protected static final short ENTITIES
ENTITY_MANAGERback to summary
protected static final String ENTITY_MANAGER

Property identifier: entity manager.

ENTITY_RESOLVERback to summary
protected static final String ENTITY_RESOLVER

Property identifier: entity resolver.

ERROR_HANDLERback to summary
protected static final String ERROR_HANDLER

Property identifier: error handler.

ERROR_REPORTERback to summary
protected static final String ERROR_REPORTER

Property identifier: error reporter.

fComponentsback to summary
protected List<XMLComponent> fComponents

Components.

fCurrentDVFactoryback to summary
protected DTDDVFactory fCurrentDVFactory

Current Datatype validator factory.

fDatatypeValidatorFactoryback to summary
protected DTDDVFactory fDatatypeValidatorFactory

The XML 1.0 Datatype validator factory.

fDocumentHandlerback to summary
pack-priv XMLDocumentHandler fDocumentHandler
featuresback to summary
protected short features

Normalization features

fErrorHandlerWrapperback to summary
protected final DOMErrorHandlerWrapper fErrorHandlerWrapper
fErrorReporterback to summary
protected XMLErrorReporter fErrorReporter

Error reporter

fLocaleback to summary
protected Locale fLocale

Locale.

fRecognizedParametersback to summary
private DOMStringList fRecognizedParameters
fSchemaLocationback to summary
private String fSchemaLocation
fSymbolTableback to summary
protected SymbolTable fSymbolTable

Symbol table.

fValidationManagerback to summary
protected ValidationManager fValidationManager
fXML11DatatypeFactoryback to summary
protected DTDDVFactory fXML11DatatypeFactory

The XML 1.1 Datatype validator factory.

GENERATE_SYNTHETIC_ANNOTATIONSback to summary
protected static final String GENERATE_SYNTHETIC_ANNOTATIONS

Feature: generate synthetic annotations

GRAMMAR_POOLback to summary
protected static final String GRAMMAR_POOL

Property id: Grammar pool.

HONOUR_ALL_SCHEMALOCATIONSback to summary
protected static final String HONOUR_ALL_SCHEMALOCATIONS

Feature identifier: honour all schemaLocations

INFOSET_FALSE_PARAMSback to summary
protected static final short INFOSET_FALSE_PARAMS
INFOSET_MASKback to summary
protected static final short INFOSET_MASK
INFOSET_TRUE_PARAMSback to summary
protected static final short INFOSET_TRUE_PARAMS
JAXP_SCHEMA_LANGUAGEback to summary
protected static final String JAXP_SCHEMA_LANGUAGE

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

JAXP_SCHEMA_SOURCEback to summary
protected static final String JAXP_SCHEMA_SOURCE

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

NAMESPACE_GROWTHback to summary
protected static final String NAMESPACE_GROWTH

Feature identifier: namespace growth

NAMESPACESback to summary
protected static final short NAMESPACES
NORMALIZE_DATAback to summary
protected static final String NORMALIZE_DATA
NSDECLback to summary
protected static final short NSDECL
PSVIback to summary
protected static final short PSVI
SCHEMAback to summary
protected static final String SCHEMA
SCHEMA_DV_FACTORYback to summary
protected static final String SCHEMA_DV_FACTORY

Property identifier: Schema DV Factory

SCHEMA_ELEMENT_DEFAULTback to summary
protected static final String SCHEMA_ELEMENT_DEFAULT

Feature identifier: send element default value via characters()

SCHEMA_FULL_CHECKINGback to summary
protected static final String SCHEMA_FULL_CHECKING
SCHEMA_LOCATIONback to summary
protected static final String SCHEMA_LOCATION

Property identifier: schema location.

SCHEMA_NONS_LOCATIONback to summary
protected static final String SCHEMA_NONS_LOCATION

Property identifier: no namespace schema location.

SECURITY_MANAGERback to summary
private static final String SECURITY_MANAGER

Property identifier: Security manager.

SEND_PSVIback to summary
protected static final String SEND_PSVI

sending psvi in the pipeline

SPLITCDATAback to summary
protected static final short SPLITCDATA
SYMBOL_TABLEback to summary
protected static final String SYMBOL_TABLE

Property identifier: symbol table.

TOLERATE_DUPLICATESback to summary
protected static final String TOLERATE_DUPLICATES
USE_GRAMMAR_POOL_ONLYback to summary
protected static final String USE_GRAMMAR_POOL_ONLY

Feature identifier: use grammar pool only

VALIDATEback to summary
protected static final short VALIDATE
VALIDATE_ANNOTATIONSback to summary
protected static final String VALIDATE_ANNOTATIONS

Feature identifier: validate annotations

VALIDATION_MANAGERback to summary
protected static final String VALIDATION_MANAGER
WARN_ON_DUPLICATE_ATTDEFback to summary
protected static final String WARN_ON_DUPLICATE_ATTDEF

Feature identifier: warn on duplicate attribute definition.

WELLFORMEDback to summary
protected static final short WELLFORMED
XERCES_NAMESPACESback to summary
protected static final String XERCES_NAMESPACES

Feature identifier: namespaces.

XERCES_VALIDATIONback to summary
protected static final String XERCES_VALIDATION

Feature identifier: validation.

XML11_DATATYPE_VALIDATOR_FACTORYback to summary
protected static final String XML11_DATATYPE_VALIDATOR_FACTORY
XML_SECURITY_PROPERTY_MANAGERback to summary
private static final String XML_SECURITY_PROPERTY_MANAGER

Property identifier: Security property manager.

XML_STRINGback to summary
protected static final String XML_STRING

Property identifier: xml string.

Constructor Detail

DOMConfigurationImplback to summary
protected DOMConfigurationImpl()

Default Constructor.

DOMConfigurationImplback to summary
protected DOMConfigurationImpl(SymbolTable symbolTable)

Constructs a parser configuration using the specified symbol table.

Parameters
symbolTable:SymbolTable

The symbol table to use.

DOMConfigurationImplback to summary
protected DOMConfigurationImpl(SymbolTable symbolTable, XMLComponentManager parentSettings)

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

Parameters
symbolTable:SymbolTable

The symbol table to use.

parentSettings:XMLComponentManager

The parent settings.

Method Detail

addComponentback to summary
protected void addComponent(XMLComponent component)
canSetParameterback to summary
public boolean canSetParameter(String name, Object value)

Implements org.w3c.dom.DOMConfiguration.canSetParameter.

DOM Level 3 WD - Experimental. Check if setting a parameter to a specific value is supported.

Parameters
name:String

The name of the parameter to check.

value:Object

An object. if null, the returned value is true.

Returns:boolean

true if the parameter could be successfully set to the specified value, or false if the parameter is not recognized or the requested value is not supported. This does not change the current value of the parameter itself.

checkPropertyback to summary
protected PropertyState checkProperty(String propertyId) throws XMLConfigurationException

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

Check a property. If the property is known and supported, this method simply returns. Otherwise, the appropriate exception is thrown.

Parameters
propertyId:String

The unique identifier (URI) of the property being set.

Returns:PropertyState

Doc from com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.checkProperty.

the PropertyState

Annotations
@Override
Exceptions
XMLConfigurationException:
If the requested feature is not known or supported.
createValidationManagerback to summary
protected ValidationManager createValidationManager()
getDocumentHandlerback to summary
public XMLDocumentHandler getDocumentHandler()

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

Returns the registered document handler.

getDTDContentModelHandlerback to summary
public XMLDTDContentModelHandler getDTDContentModelHandler()

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

Returns the registered DTD content model handler.

getDTDHandlerback to summary
public XMLDTDHandler getDTDHandler()

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

Returns the registered DTD handler.

getEntityResolverback to summary
public XMLEntityResolver getEntityResolver()

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

Return the current entity resolver.

Returns:XMLEntityResolver

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

See Also
setEntityResolver
getErrorHandlerback to summary
public XMLErrorHandler getErrorHandler()

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

Return the current error handler.

Returns:XMLErrorHandler

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

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

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

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.getFeature, com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager.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.
getLocaleback to summary
public Locale getLocale()

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

Returns the locale.

getParameterback to summary
public Object getParameter(String name) throws DOMException

Implements org.w3c.dom.DOMConfiguration.getParameter.

DOM Level 3 WD - Experimental. getParameter

Parameters
name:String

Doc from org.w3c.dom.DOMConfiguration.getParameter.

The name of the parameter.

Returns:Object

Doc from org.w3c.dom.DOMConfiguration.getParameter.

The current object associated with the specified parameter or null if no object has been associated or if the parameter is not supported.

Exceptions
DOMException:

Doc from org.w3c.dom.DOMConfiguration.getParameter.

NOT_FOUND_ERR: Raised when the parameter name is not recognized.

getParameterNamesback to summary
public DOMStringList getParameterNames()

Implements org.w3c.dom.DOMConfiguration.getParameterNames.

DOM Level 3 CR - Experimental. The list of the parameters supported by this DOMConfiguration object and for which at least one value can be set by the application. Note that this list can also contain parameter names defined outside this specification.

newFeatureNotFoundErrorback to summary
private static DOMException newFeatureNotFoundError(String name)
newFeatureNotSupportedErrorback to summary
private static DOMException newFeatureNotSupportedError(String name)
newTypeMismatchErrorback to summary
private static DOMException newTypeMismatchError(String name)
parseback to summary
public void parse(XMLInputSource inputSource) throws XNIException, IOException

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

Parse an XML document.

The parser can use this method to instruct this configuration to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).

Parsers may not invoke this method while a parse is in progress. Once a parse is complete, the parser may then parse another XML document.

This method is synchronous: it will not return until parsing has ended. If a client application wants to terminate parsing early, it should throw an exception.

Parameters
inputSource:XMLInputSource

The input source for the top-level of the XML document.

Exceptions
XNIException:
Any XNI exception, possibly wrapping another exception.
IOException:
An IO exception from the parser, possibly from a byte stream or character stream supplied by the parser.
resetback to summary
protected void reset() throws XNIException

reset all components before parsing

setDocumentHandlerback to summary
public void setDocumentHandler(XMLDocumentHandler 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.

Parameters
documentHandler:XMLDocumentHandler

The document handler.

setDTDContentModelHandlerback to summary
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler)

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

Sets the DTD content model handler.

Parameters
handler:XMLDTDContentModelHandler

The DTD content model handler.

setDTDHandlerback to summary
public void setDTDHandler(XMLDTDHandler dtdHandler)

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

Sets the DTD handler.

Parameters
dtdHandler:XMLDTDHandler

The DTD handler.

setDTDValidatorFactoryback to summary
protected final void setDTDValidatorFactory(String version)
setEntityResolverback to summary
public void setEntityResolver(XMLEntityResolver resolver)

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

Sets the resolver used to resolve external entities. The EntityResolver interface supports resolution of public and system identifiers.

Parameters
resolver:XMLEntityResolver

The new entity resolver. Passing a null value will uninstall the currently installed resolver.

setErrorHandlerback to summary
public void setErrorHandler(XMLErrorHandler errorHandler)

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

Allow an application to register an error event handler.

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Parameters
errorHandler:XMLErrorHandler

The error handler.

Exceptions
NullPointerException:
If the handler argument is null.
See Also
getErrorHandler
setFeatureback to summary
public void setFeature(String featureId, boolean state) throws XMLConfigurationException

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. 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.
setLocaleback to summary
public void setLocale(Locale locale) throws XNIException

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

Set the locale to use for messages.

Parameters
locale:Locale

The locale object to use for localization of messages.

Exceptions
XNIException:
Thrown if the parser does not support the specified locale.
setParameterback to summary
public void setParameter(String name, Object value) throws DOMException

Implements org.w3c.dom.DOMConfiguration.setParameter.

DOM Level 3 WD - Experimental. setParameter

Parameters
name:String

Doc from org.w3c.dom.DOMConfiguration.setParameter.

The name of the parameter to set.

value:Object

Doc from org.w3c.dom.DOMConfiguration.setParameter.

The new value or null if the user wishes to unset the parameter. While the type of the value parameter is defined as DOMUserData, the object type must match the type defined by the definition of the parameter. For example, if the parameter is "error-handler", the value must be of type DOMErrorHandler.

Exceptions
DOMException:

Doc from org.w3c.dom.DOMConfiguration.setParameter.

NOT_FOUND_ERR: Raised when the parameter name is not recognized.
NOT_SUPPORTED_ERR: Raised when the parameter name is recognized but the requested value cannot be set.
TYPE_MISMATCH_ERR: Raised if the value type for this parameter name is incompatible with the expected value type.

setPropertyback to summary
public void setProperty(String propertyId, Object value) throws XMLConfigurationException

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

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

setProperty

Exceptions
XMLConfigurationException:

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setProperty.

Thrown if there is a configuration error.