org.apache.xerces.parsers

Class StandardParserConfiguration

public class StandardParserConfiguration extends DTDConfiguration

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:

Version: $Id: StandardParserConfiguration.java,v 1.38 2005/02/09 15:34:02 ankitp Exp $

Author: Arnaud Le Hors, IBM Andy Clark, IBM

Field Summary
protected XMLSchemaValidatorfSchemaValidator
XML Schema Validator.
protected static StringGENERATE_SYNTHETIC_ANNOTATIONS
Feature: generate synthetic annotations
protected static StringHONOUR_ALL_SCHEMALOCATIONS
Feature identifier: honour all schemaLocations
protected static StringNORMALIZE_DATA
Feature identifier: expose schema normalized value
protected static StringSCHEMA_AUGMENT_PSVI
Feature identifier: augment PSVI
protected static StringSCHEMA_ELEMENT_DEFAULT
Feature identifier: send element default value via characters()
protected static StringSCHEMA_LOCATION
Property identifier: schema location.
protected static StringSCHEMA_NONS_LOCATION
Property identifier: no namespace schema location.
protected static StringSCHEMA_VALIDATOR
Property identifier: XML Schema validator.
protected static StringVALIDATE_ANNOTATIONS
Feature identifier: validate annotations
protected static StringXMLSCHEMA_FULL_CHECKING
feature identifier: XML Schema validation -- full checking
protected static StringXMLSCHEMA_VALIDATION
feature identifier: XML Schema validation
Constructor Summary
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.
Method Summary
protected voidcheckFeature(String featureId)
Check a feature.
protected voidcheckProperty(String propertyId)
Check a property.
protected voidconfigurePipeline()
Configures the pipeline.

Field Detail

fSchemaValidator

protected XMLSchemaValidator fSchemaValidator
XML Schema Validator.

GENERATE_SYNTHETIC_ANNOTATIONS

protected static final String GENERATE_SYNTHETIC_ANNOTATIONS
Feature: generate synthetic annotations

HONOUR_ALL_SCHEMALOCATIONS

protected static final String HONOUR_ALL_SCHEMALOCATIONS
Feature identifier: honour all schemaLocations

NORMALIZE_DATA

protected static final String NORMALIZE_DATA
Feature identifier: expose schema normalized value

SCHEMA_AUGMENT_PSVI

protected static final String SCHEMA_AUGMENT_PSVI
Feature identifier: augment PSVI

SCHEMA_ELEMENT_DEFAULT

protected static final String SCHEMA_ELEMENT_DEFAULT
Feature identifier: send element default value via characters()

SCHEMA_LOCATION

protected static final String SCHEMA_LOCATION
Property identifier: schema location.

SCHEMA_NONS_LOCATION

protected static final String SCHEMA_NONS_LOCATION
Property identifier: no namespace schema location.

SCHEMA_VALIDATOR

protected static final String SCHEMA_VALIDATOR
Property identifier: XML Schema validator.

VALIDATE_ANNOTATIONS

protected static final String VALIDATE_ANNOTATIONS
Feature identifier: validate annotations

XMLSCHEMA_FULL_CHECKING

protected static final String XMLSCHEMA_FULL_CHECKING
feature identifier: XML Schema validation -- full checking

XMLSCHEMA_VALIDATION

protected static final String XMLSCHEMA_VALIDATION
feature identifier: XML Schema validation

Constructor Detail

StandardParserConfiguration

public StandardParserConfiguration()
Default constructor.

StandardParserConfiguration

public StandardParserConfiguration(SymbolTable symbolTable)
Constructs a parser configuration using the specified symbol table.

Parameters: symbolTable The symbol table to use.

StandardParserConfiguration

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.

StandardParserConfiguration

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.

Method Detail

checkFeature

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.

checkProperty

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.

configurePipeline

protected void configurePipeline()
Configures the pipeline.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.