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

pack-priv final Class SchemaValidatorConfiguration

extends Object
implements XMLComponentManager
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager
Imports
com.sun.org.apache.xerces.internal.impl.Constants, .XMLErrorReporter, com.sun.org.apache.xerces.internal.impl.validation.ValidationManager, com.sun.org.apache.xerces.internal.impl.xs.XSMessageFormatter, com.sun.org.apache.xerces.internal.jaxp.validation.XSGrammarPoolContainer, com.sun.org.apache.xerces.internal.util.FeatureState, .PropertyState, com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool, com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager, .XMLConfigurationException

Parser configuration for Xerces' XMLSchemaValidator.

Field Summary

Modifier and TypeField and Description
private static final String
ERROR_REPORTER

Property identifier: error reporter.

private final XMLGrammarPool
fGrammarPool

The Schema's grammar pool.

private final XMLComponentManager
fParentComponentManager

Parent component manager.

private final boolean
fUseGrammarPoolOnly

Tracks whether the validator should use components from the grammar pool to the exclusion of all others.

private final ValidationManager
fValidationManager

Validation manager.

private static final String
PARSER_SETTINGS

Feature identifier: parser settings.

private static final String
SCHEMA_VALIDATION

Feature identifier: schema validation.

private static final String
USE_GRAMMAR_POOL_ONLY

Feature identifier: use grammar pool only.

private static final String
VALIDATION

Feature identifier: validation.

private static final String
VALIDATION_MANAGER

Property identifier: validation manager.

private static final String
XMLGRAMMAR_POOL

Property identifier: grammar pool.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

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

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

Returns the state of a feature.

public boolean
getFeature(String
The feature identifier.
featureId
,
boolean
Default value if future is not available.
defaultValue
)

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

Returns the state of a feature.

public FeatureState
public Object

Returns:

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

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

Returns the value of a property.

public Object
getProperty(String
The property identifier.
propertyId
,
Object
Return value if property is not available.
defaultValue
)

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

Returns the value of a property.

public PropertyState
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ERROR_REPORTERback to summary
private static final String ERROR_REPORTER

Property identifier: error reporter.

fGrammarPoolback to summary
private final XMLGrammarPool fGrammarPool

The Schema's grammar pool.

fParentComponentManagerback to summary
private final XMLComponentManager fParentComponentManager

Parent component manager.

fUseGrammarPoolOnlyback to summary
private final boolean fUseGrammarPoolOnly

Tracks whether the validator should use components from the grammar pool to the exclusion of all others.

fValidationManagerback to summary
private final ValidationManager fValidationManager

Validation manager.

PARSER_SETTINGSback to summary
private static final String PARSER_SETTINGS

Feature identifier: parser settings.

SCHEMA_VALIDATIONback to summary
private static final String SCHEMA_VALIDATION

Feature identifier: schema validation.

USE_GRAMMAR_POOL_ONLYback to summary
private static final String USE_GRAMMAR_POOL_ONLY

Feature identifier: use grammar pool only.

VALIDATIONback to summary
private static final String VALIDATION

Feature identifier: validation.

VALIDATION_MANAGERback to summary
private static final String VALIDATION_MANAGER

Property identifier: validation manager.

XMLGRAMMAR_POOLback to summary
private static final String XMLGRAMMAR_POOL

Property identifier: grammar pool.

Constructor Detail

SchemaValidatorConfigurationback to summary
public SchemaValidatorConfiguration(XMLComponentManager parentManager, XSGrammarPoolContainer grammarContainer, ValidationManager validationManager)

Method Detail

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

Implements 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.
getFeatureback to summary
public boolean getFeature(String featureId, boolean defaultValue)

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

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager.getFeature.

Returns the state of a feature. Does not throw exceptions.

Parameters
featureId:String

The feature identifier.

defaultValue:boolean

Default value if future is not available.

getFeatureStateback to summary
public FeatureState getFeatureState(String featureId)

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

getPropertyback to summary
public Object getProperty(String propertyId) throws XMLConfigurationException

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

Returns the value of a property.

Parameters
propertyId:String

The property identifier.

Returns:Object

the value of the property

Exceptions
XMLConfigurationException:
Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
getPropertyback to summary
public Object getProperty(String propertyId, Object defaultValue)

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

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager.getProperty.

Returns the value of a property. Does not throw exceptions.

Parameters
propertyId:String

The property identifier.

defaultValue:Object

Return value if property is not available.

getPropertyStateback to summary
public PropertyState getPropertyState(String propertyId)

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