|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xerces.util.ParserConfigurationSettings
org.apache.xerces.parsers.BasicParserConfiguration
org.apache.xerces.parsers.DTDConfiguration
org.apache.xerces.parsers.StandardParserConfiguration
public class StandardParserConfiguration
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:
Field Summary | |
---|---|
protected XMLSchemaValidator |
fSchemaValidator
XML Schema Validator. |
protected static String |
GENERATE_SYNTHETIC_ANNOTATIONS
Feature: generate synthetic annotations |
protected static String |
HONOUR_ALL_SCHEMALOCATIONS
Feature identifier: honour all schemaLocations |
protected static String |
ID_IDREF_CHECKING
Feature identifier: whether to ignore ID/IDREF errors |
protected static String |
IDENTITY_CONSTRAINT_CHECKING
Feature identifier: whether to ignore identity constraint errors |
protected static String |
IGNORE_XSI_TYPE
Feature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered |
protected static String |
NAMESPACE_GROWTH
Feature identifier: namespace growth |
protected static String |
NORMALIZE_DATA
Feature identifier: expose schema normalized value |
protected static String |
ROOT_ELEMENT_DECL
Property identifier: root element declaration. |
protected static String |
ROOT_TYPE_DEF
Property identifier: root type definition. |
protected static String |
SCHEMA_AUGMENT_PSVI
Feature identifier: augment PSVI |
protected static String |
SCHEMA_DV_FACTORY
Property identifier: Schema DV Factory |
protected static String |
SCHEMA_ELEMENT_DEFAULT
Feature identifier: send element default value via characters() |
protected static String |
SCHEMA_LOCATION
Property identifier: schema location. |
protected static String |
SCHEMA_NONS_LOCATION
Property identifier: no namespace schema location. |
protected static String |
SCHEMA_VALIDATOR
Property identifier: XML Schema validator. |
protected static String |
TOLERATE_DUPLICATES
Feature identifier: tolerate duplicates |
protected static String |
UNPARSED_ENTITY_CHECKING
Feature identifier: whether to ignore unparsed entity errors |
protected static String |
VALIDATE_ANNOTATIONS
Feature identifier: validate annotations |
protected static String |
XMLSCHEMA_FULL_CHECKING
feature identifier: XML Schema validation -- full checking |
protected static String |
XMLSCHEMA_VALIDATION
feature identifier: XML Schema validation |
Fields inherited from class org.apache.xerces.parsers.BasicParserConfiguration |
---|
ENTITY_RESOLVER, ERROR_HANDLER, EXTERNAL_GENERAL_ENTITIES, EXTERNAL_PARAMETER_ENTITIES, fComponents, fDocumentHandler, fDTDContentModelHandler, fDTDHandler, fLastComponent, fLocale, fSymbolTable, NAMESPACES, SYMBOL_TABLE, VALIDATION, XML_STRING |
Fields inherited from class org.apache.xerces.util.ParserConfigurationSettings |
---|
fFeatures, fParentSettings, fProperties, fRecognizedFeatures, fRecognizedProperties, PARSER_SETTINGS |
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 void |
checkFeature(String featureId)
Check a feature. |
protected void |
checkProperty(String propertyId)
Check a property. |
protected void |
configurePipeline()
Configures the pipeline. |
Methods inherited from class org.apache.xerces.parsers.DTDConfiguration |
---|
cleanup, configureDTDPipeline, createDatatypeValidatorFactory, createDocumentScanner, createDTDProcessor, createDTDScanner, createDTDValidator, createEntityManager, createErrorReporter, createNamespaceBinder, createValidationManager, getProperty, parse, parse, reset, setInputSource, setLocale, setProperty |
Methods inherited from class org.apache.xerces.parsers.BasicParserConfiguration |
---|
addComponent, getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLocale, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature |
Methods inherited from class org.apache.xerces.util.ParserConfigurationSettings |
---|
addRecognizedFeatures, addRecognizedProperties, getFeature |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.xerces.xni.parser.XMLParserConfiguration |
---|
addRecognizedFeatures, addRecognizedProperties, getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getLocale, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature |
Field Detail |
---|
protected static final String NORMALIZE_DATA
protected static final String SCHEMA_ELEMENT_DEFAULT
protected static final String SCHEMA_AUGMENT_PSVI
protected static final String XMLSCHEMA_VALIDATION
protected static final String XMLSCHEMA_FULL_CHECKING
protected static final String GENERATE_SYNTHETIC_ANNOTATIONS
protected static final String VALIDATE_ANNOTATIONS
protected static final String HONOUR_ALL_SCHEMALOCATIONS
protected static final String NAMESPACE_GROWTH
protected static final String TOLERATE_DUPLICATES
protected static final String IGNORE_XSI_TYPE
protected static final String ID_IDREF_CHECKING
protected static final String UNPARSED_ENTITY_CHECKING
protected static final String IDENTITY_CONSTRAINT_CHECKING
protected static final String SCHEMA_VALIDATOR
protected static final String SCHEMA_LOCATION
protected static final String SCHEMA_NONS_LOCATION
protected static final String ROOT_TYPE_DEF
protected static final String ROOT_ELEMENT_DECL
protected static final String SCHEMA_DV_FACTORY
protected XMLSchemaValidator fSchemaValidator
Constructor Detail |
---|
public StandardParserConfiguration()
public StandardParserConfiguration(SymbolTable symbolTable)
symbolTable
- The symbol table to use.public StandardParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)
REVISIT: Grammar pool will be updated when the new validation engine is implemented.
symbolTable
- The symbol table to use.grammarPool
- The grammar pool to use.public StandardParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)
REVISIT: Grammar pool will be updated when the new validation engine is implemented.
symbolTable
- The symbol table to use.grammarPool
- The grammar pool to use.parentSettings
- The parent settings.Method Detail |
---|
protected void configurePipeline()
configurePipeline
in class DTDConfiguration
protected void checkFeature(String featureId) throws XMLConfigurationException
checkFeature
in class DTDConfiguration
featureId
- The unique identifier (URI) of the feature.
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) throws XMLConfigurationException
checkProperty
in class DTDConfiguration
propertyId
- The unique identifier (URI) of the property
being set.
XMLConfigurationException
- Thrown for configuration error.
In general, components should
only throw this exception if
it is really
a critical error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |