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

public Class StandardParserConfiguration

extends DTDConfiguration
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xerces.internal.parsers.IntegratedParserConfiguration
Imports
com.sun.org.apache.xerces.internal.impl.Constants, com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator, .XSMessageFormatter, com.sun.org.apache.xerces.internal.util.FeatureState, .PropertyState, .Status, .SymbolTable, com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool, com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager, .XMLConfigurationException

This is the "standard" parser configuration. It extends the DTD configuration with the standard set of parser components. The standard set of parser components include those needed to parse and validate with DTD's, and those needed for XML Schema.

In addition to the features and properties recognized by the base parser configuration, this class recognizes these additional features and properties:

Authors
Arnaud Le Hors, IBM, Andy Clark, IBM

Field Summary

Modifier and TypeField and Description
protected XMLSchemaValidator
fSchemaValidator

XML Schema Validator.

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
NAMESPACE_GROWTH

Feature identifier: namespace growth

protected static final String
NORMALIZE_DATA

Feature identifier: expose schema normalized value

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.

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
VALIDATE_ANNOTATIONS

Feature identifier: validate annotations

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.parsers.DTDConfiguration:
ALLOW_JAVA_ENCODINGSCONTINUE_AFTER_FATAL_ERRORDATATYPE_VALIDATOR_FACTORYDOCUMENT_SCANNERDTD_PROCESSORDTD_SCANNERDTD_VALIDATORENTITY_MANAGERERROR_REPORTERfDatatypeValidatorFactoryfDTDProcessorfDTDScannerfDTDValidatorfEntityManagerfErrorReporterfGrammarPoolfInputSourcefLocatorfNamespaceBinderfParseInProgressfScannerfValidationManagerJAXP_SCHEMA_LANGUAGEJAXP_SCHEMA_SOURCELOAD_EXTERNAL_DTDLOCALENAMESPACE_BINDERNOTIFY_BUILTIN_REFSNOTIFY_CHAR_REFSPRINT_EXCEPTION_STACK_TRACEVALIDATION_MANAGERWARN_ON_DUPLICATE_ATTDEFWARN_ON_DUPLICATE_ENTITYDEFWARN_ON_UNDECLARED_ELEMDEFXML_SECURITY_PROPERTY_MANAGERXMLGRAMMAR_POOL

Constructor Summary

AccessConstructor and Description
public
StandardParserConfiguration()

Default constructor.

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

Constructs a parser configuration using the specified symbol table.

public
StandardParserConfiguration(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
StandardParserConfiguration(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 FeatureState
checkFeature(String
The unique identifier (URI) of the feature.
featureId
)

Overrides com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.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.parsers.DTDConfiguration.checkProperty.

Check a property.

protected void
Inherited from com.sun.org.apache.xerces.internal.parsers.DTDConfiguration:
cleanupconfigureDTDPipelinecreateDatatypeValidatorFactorycreateDocumentScannercreateDTDProcessorcreateDTDScannercreateDTDValidatorcreateEntityManagercreateErrorReportercreateNamespaceBindercreateValidationManagergetPropertyStateparseparseresetsetInputSourcesetLocalesetProperty

Field Detail

fSchemaValidatorback to summary
protected XMLSchemaValidator fSchemaValidator

XML Schema Validator.

GENERATE_SYNTHETIC_ANNOTATIONSback to summary
protected static final String GENERATE_SYNTHETIC_ANNOTATIONS

Feature: generate synthetic annotations

HONOUR_ALL_SCHEMALOCATIONSback to summary
protected static final String HONOUR_ALL_SCHEMALOCATIONS

Feature identifier: honour all schemaLocations

ID_IDREF_CHECKINGback to summary
protected static final String ID_IDREF_CHECKING

Feature identifier: whether to ignore ID/IDREF errors

IDENTITY_CONSTRAINT_CHECKINGback to summary
protected static final String IDENTITY_CONSTRAINT_CHECKING

Feature identifier: whether to ignore identity constraint errors

IGNORE_XSI_TYPEback to summary
protected static final String IGNORE_XSI_TYPE

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

NAMESPACE_GROWTHback to summary
protected static final String NAMESPACE_GROWTH

Feature identifier: namespace growth

NORMALIZE_DATAback to summary
protected static final String NORMALIZE_DATA

Feature identifier: expose schema normalized value

ROOT_ELEMENT_DECLback to summary
protected static final String ROOT_ELEMENT_DECL

Property identifier: root element declaration.

ROOT_TYPE_DEFback to summary
protected static final String ROOT_TYPE_DEF

Property identifier: root type definition.

SCHEMA_AUGMENT_PSVIback to summary
protected static final String SCHEMA_AUGMENT_PSVI

Feature identifier: augment PSVI

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_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.

SCHEMA_VALIDATORback to summary
protected static final String SCHEMA_VALIDATOR

Property identifier: XML Schema validator.

TOLERATE_DUPLICATESback to summary
protected static final String TOLERATE_DUPLICATES

Feature identifier: tolerate duplicates

UNPARSED_ENTITY_CHECKINGback to summary
protected static final String UNPARSED_ENTITY_CHECKING

Feature identifier: whether to ignore unparsed entity errors

VALIDATE_ANNOTATIONSback to summary
protected static final String VALIDATE_ANNOTATIONS

Feature identifier: validate annotations

XMLSCHEMA_FULL_CHECKINGback to summary
protected static final String XMLSCHEMA_FULL_CHECKING

feature identifier: XML Schema validation -- full checking

XMLSCHEMA_VALIDATIONback to summary
protected static final String XMLSCHEMA_VALIDATION

feature identifier: XML Schema validation

Constructor Detail

StandardParserConfigurationback to summary
public StandardParserConfiguration()

Default constructor.

StandardParserConfigurationback to summary
public StandardParserConfiguration(SymbolTable symbolTable)

Constructs a parser configuration using the specified symbol table.

Parameters
symbolTable:SymbolTable

The symbol table to use.

StandardParserConfigurationback to summary
public StandardParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)

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

Revisit

Grammar pool will be updated when the new validation engine is implemented.

Parameters
symbolTable:SymbolTable

The symbol table to use.

grammarPool:XMLGrammarPool

The grammar pool to use.

StandardParserConfigurationback to summary
public StandardParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)

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

Revisit

Grammar pool will be updated when the new validation engine is implemented.

Parameters
symbolTable:SymbolTable

The symbol table to use.

grammarPool:XMLGrammarPool

The grammar pool to use.

parentSettings:XMLComponentManager

The parent settings.

Method Detail

checkFeatureback to summary
protected FeatureState checkFeature(String featureId) throws XMLConfigurationException

Overrides com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.checkFeature.

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

Parameters
featureId:String

The unique identifier (URI) of the feature.

Exceptions
XMLConfigurationException:
Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
checkPropertyback to summary
protected PropertyState checkProperty(String propertyId) throws XMLConfigurationException

Overrides com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.checkProperty.

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

Parameters
propertyId:String

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

Exceptions
XMLConfigurationException:
Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
configurePipelineback to summary
protected void configurePipeline()

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

Configures the pipeline.