public class StandardParserConfiguration extends DTDConfiguration
In addition to the features and properties recognized by the base parser configuration, this class recognizes these additional features and properties:
| Modifier and Type | Field and Description |
|---|---|
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 |
NAMESPACE_GROWTH
Feature identifier: namespace growth
|
protected static String |
NORMALIZE_DATA
Feature identifier: expose schema normalized value
|
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 |
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
|
ALLOW_JAVA_ENCODINGS, CONTINUE_AFTER_FATAL_ERROR, DATATYPE_VALIDATOR_FACTORY, DOCUMENT_SCANNER, DTD_PROCESSOR, DTD_SCANNER, DTD_VALIDATOR, ENTITY_MANAGER, ERROR_REPORTER, fDatatypeValidatorFactory, fDTDProcessor, fDTDScanner, fDTDValidator, fEntityManager, fErrorReporter, fGrammarPool, fInputSource, fLocator, fNamespaceBinder, fParseInProgress, fScanner, fValidationManager, JAXP_SCHEMA_LANGUAGE, JAXP_SCHEMA_SOURCE, LOAD_EXTERNAL_DTD, LOCALE, NAMESPACE_BINDER, NOTIFY_BUILTIN_REFS, NOTIFY_CHAR_REFS, PRINT_EXCEPTION_STACK_TRACE, VALIDATION_MANAGER, WARN_ON_DUPLICATE_ATTDEF, WARN_ON_DUPLICATE_ENTITYDEF, WARN_ON_UNDECLARED_ELEMDEF, XML_SECURITY_PROPERTY_MANAGER, XMLGRAMMAR_POOLENTITY_RESOLVER, ERROR_HANDLER, EXTERNAL_GENERAL_ENTITIES, EXTERNAL_PARAMETER_ENTITIES, fComponents, fDocumentHandler, fDTDContentModelHandler, fDTDHandler, fLastComponent, fLocale, fSymbolTable, NAMESPACES, SYMBOL_TABLE, VALIDATION, XML_STRINGfFeatures, fParentSettings, fProperties, fRecognizedFeatures, fRecognizedProperties, PARSER_SETTINGS| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected FeatureState |
checkFeature(String featureId)
Check a feature.
|
protected PropertyState |
checkProperty(String propertyId)
Check a property.
|
protected void |
configurePipeline()
Configures the pipeline.
|
cleanup, configureDTDPipeline, createDatatypeValidatorFactory, createDocumentScanner, createDTDProcessor, createDTDScanner, createDTDValidator, createEntityManager, createErrorReporter, createNamespaceBinder, createValidationManager, getPropertyState, parse, parse, reset, setInputSource, setLocale, setPropertyaddComponent, getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLocale, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeatureaddRecognizedFeatures, addRecognizedProperties, getFeature, getFeature, getFeatureState, getProperty, getPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRecognizedFeatures, addRecognizedProperties, getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getLocale, getProperty, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeaturegetFeature, getFeatureState, getPropertyprotected 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 SCHEMA_VALIDATOR
protected static final String SCHEMA_LOCATION
protected static final String SCHEMA_NONS_LOCATION
protected static final String SCHEMA_DV_FACTORY
protected XMLSchemaValidator fSchemaValidator
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.protected void configurePipeline()
configurePipeline in class DTDConfigurationprotected FeatureState checkFeature(String featureId) throws XMLConfigurationException
checkFeature in class DTDConfigurationfeatureId - 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 PropertyState checkProperty(String propertyId) throws XMLConfigurationException
checkProperty in class DTDConfigurationpropertyId - 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.Copyright © 2018–2021 mhoffrogge. All rights reserved.