public class

StandardParserConfiguration

extends DTDConfiguration
java.lang.Object
   ↳ org.apache.xerces.util.ParserConfigurationSettings
     ↳ org.apache.xerces.parsers.BasicParserConfiguration
       ↳ org.apache.xerces.parsers.DTDConfiguration
         ↳ org.apache.xerces.parsers.StandardParserConfiguration
Known Direct Subclasses

Class Overview

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:

  • Features
    • http://apache.org/xml/features/validation/schema
    • http://apache.org/xml/features/validation/schema-full-checking
    • http://apache.org/xml/features/validation/schema/normalized-value
    • http://apache.org/xml/features/validation/schema/element-default
  • Properties
    • http://apache.org/xml/properties/internal/error-reporter
    • http://apache.org/xml/properties/internal/entity-manager
    • http://apache.org/xml/properties/internal/document-scanner
    • http://apache.org/xml/properties/internal/dtd-scanner
    • http://apache.org/xml/properties/internal/grammar-pool
    • http://apache.org/xml/properties/internal/validator/dtd
    • http://apache.org/xml/properties/internal/datatype-validator-factory

Summary

Constants
String GENERATE_SYNTHETIC_ANNOTATIONS Feature: generate synthetic annotations
String HONOUR_ALL_SCHEMALOCATIONS Feature identifier: honour all schemaLocations
String IDENTITY_CONSTRAINT_CHECKING Feature identifier: whether to ignore identity constraint errors
String ID_IDREF_CHECKING Feature identifier: whether to ignore ID/IDREF errors
String IGNORE_XSI_TYPE Feature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered
String NORMALIZE_DATA Feature identifier: expose schema normalized value
String ROOT_TYPE_DEF Property identifier: root type definition.
String SCHEMA_AUGMENT_PSVI Feature identifier: augment PSVI
String SCHEMA_ELEMENT_DEFAULT Feature identifier: send element default value via characters()
String SCHEMA_LOCATION Property identifier: schema location.
String SCHEMA_NONS_LOCATION Property identifier: no namespace schema location.
String SCHEMA_VALIDATOR Property identifier: XML Schema validator.
String UNPARSED_ENTITY_CHECKING Feature identifier: whether to ignore unparsed entity errors
String VALIDATE_ANNOTATIONS Feature identifier: validate annotations
String XMLSCHEMA_FULL_CHECKING feature identifier: XML Schema validation -- full checking
String XMLSCHEMA_VALIDATION feature identifier: XML Schema validation
[Expand]
Inherited Constants
From class org.apache.xerces.parsers.DTDConfiguration
From class org.apache.xerces.parsers.BasicParserConfiguration
From class org.apache.xerces.util.ParserConfigurationSettings
Fields
protected XMLSchemaValidator fSchemaValidator XML Schema Validator.
[Expand]
Inherited Fields
From class org.apache.xerces.parsers.DTDConfiguration
From class org.apache.xerces.parsers.BasicParserConfiguration
From class org.apache.xerces.util.ParserConfigurationSettings
Public Constructors
StandardParserConfiguration()
Default constructor.
StandardParserConfiguration(SymbolTable symbolTable)
Constructs a parser configuration using the specified symbol table.
StandardParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Constructs a parser configuration using the specified symbol table and grammar pool.
StandardParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)
Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.
Protected Methods
void checkFeature(String featureId)
Check a feature.
void checkProperty(String propertyId)
Check a property.
void configurePipeline()
Configures the pipeline.
[Expand]
Inherited Methods
From class org.apache.xerces.parsers.DTDConfiguration
From class org.apache.xerces.parsers.BasicParserConfiguration
From class org.apache.xerces.util.ParserConfigurationSettings
From class java.lang.Object
From interface org.apache.xerces.xni.parser.XMLComponentManager
From interface org.apache.xerces.xni.parser.XMLParserConfiguration
From interface org.apache.xerces.xni.parser.XMLPullParserConfiguration

Constants

protected static final String GENERATE_SYNTHETIC_ANNOTATIONS

Feature: generate synthetic annotations

Constant Value: "http://apache.org/xml/features/generate-synthetic-annotations"

protected static final String HONOUR_ALL_SCHEMALOCATIONS

Feature identifier: honour all schemaLocations

Constant Value: "http://apache.org/xml/features/honour-all-schemaLocations"

protected static final String IDENTITY_CONSTRAINT_CHECKING

Feature identifier: whether to ignore identity constraint errors

Constant Value: "http://apache.org/xml/features/validation/identity-constraint-checking"

protected static final String ID_IDREF_CHECKING

Feature identifier: whether to ignore ID/IDREF errors

Constant Value: "http://apache.org/xml/features/validation/id-idref-checking"

protected static final String IGNORE_XSI_TYPE

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

Constant Value: "http://apache.org/xml/features/validation/schema/ignore-xsi-type-until-elemdecl"

protected static final String NORMALIZE_DATA

Feature identifier: expose schema normalized value

Constant Value: "http://apache.org/xml/features/validation/schema/normalized-value"

protected static final String ROOT_TYPE_DEF

Property identifier: root type definition.

Constant Value: "http://apache.org/xml/properties/validation/schema/root-type-definition"

protected static final String SCHEMA_AUGMENT_PSVI

Feature identifier: augment PSVI

Constant Value: "http://apache.org/xml/features/validation/schema/augment-psvi"

protected static final String SCHEMA_ELEMENT_DEFAULT

Feature identifier: send element default value via characters()

Constant Value: "http://apache.org/xml/features/validation/schema/element-default"

protected static final String SCHEMA_LOCATION

Property identifier: schema location.

Constant Value: "http://apache.org/xml/properties/schema/external-schemaLocation"

protected static final String SCHEMA_NONS_LOCATION

Property identifier: no namespace schema location.

Constant Value: "http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation"

protected static final String SCHEMA_VALIDATOR

Property identifier: XML Schema validator.

Constant Value: "http://apache.org/xml/properties/internal/validator/schema"

protected static final String UNPARSED_ENTITY_CHECKING

Feature identifier: whether to ignore unparsed entity errors

Constant Value: "http://apache.org/xml/features/validation/unparsed-entity-checking"

protected static final String VALIDATE_ANNOTATIONS

Feature identifier: validate annotations

Constant Value: "http://apache.org/xml/features/validate-annotations"

protected static final String XMLSCHEMA_FULL_CHECKING

feature identifier: XML Schema validation -- full checking

Constant Value: "http://apache.org/xml/features/validation/schema-full-checking"

protected static final String XMLSCHEMA_VALIDATION

feature identifier: XML Schema validation

Constant Value: "http://apache.org/xml/features/validation/schema"

Fields

protected XMLSchemaValidator fSchemaValidator

XML Schema Validator.

Public Constructors

public StandardParserConfiguration ()

Default constructor.

public StandardParserConfiguration (SymbolTable symbolTable)

Constructs a parser configuration using the specified symbol table.

Parameters
symbolTable The symbol table to use.

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 The symbol table to use.
grammarPool The grammar pool to use.

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 The symbol table to use.
grammarPool The grammar pool to use.
parentSettings The parent settings.

Protected Methods

protected void checkFeature (String featureId)

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

Parameters
featureId The unique identifier (URI) of the feature.
Throws
XMLConfigurationException Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.

protected void checkProperty (String propertyId)

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

Parameters
propertyId The unique identifier (URI) of the property being set.
Throws
XMLConfigurationException Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.

protected void configurePipeline ()

Configures the pipeline.