Home » Xerces-J-src.2.9.1 » org.apache.xerces » parsers » [javadoc | source]
org.apache.xerces.parsers
public class: StandardParserConfiguration [javadoc | source]
java.lang.Object
   org.apache.xerces.util.ParserConfigurationSettings
      org.apache.xerces.parsers.BasicParserConfiguration
         org.apache.xerces.parsers.DTDConfiguration
            org.apache.xerces.parsers.StandardParserConfiguration

All Implemented Interfaces:
    XMLPullParserConfiguration, XMLParserConfiguration, XMLComponentManager

Direct Known Subclasses:
    NonValidatingParserConfiguration, IntegratedParserConfiguration

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 static final  String NORMALIZE_DATA    Feature identifier: expose schema normalized value 
protected static final  String SCHEMA_ELEMENT_DEFAULT    Feature identifier: send element default value via characters() 
protected static final  String SCHEMA_AUGMENT_PSVI    Feature identifier: augment PSVI 
protected static final  String XMLSCHEMA_VALIDATION    feature identifier: XML Schema validation 
protected static final  String XMLSCHEMA_FULL_CHECKING    feature identifier: XML Schema validation -- full checking 
protected static final  String GENERATE_SYNTHETIC_ANNOTATIONS    Feature: generate synthetic annotations 
protected static final  String VALIDATE_ANNOTATIONS    Feature identifier: validate annotations 
protected static final  String HONOUR_ALL_SCHEMALOCATIONS    Feature identifier: honour all schemaLocations 
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 ID_IDREF_CHECKING    Feature identifier: whether to ignore ID/IDREF errors 
protected static final  String UNPARSED_ENTITY_CHECKING    Feature identifier: whether to ignore unparsed entity errors 
protected static final  String IDENTITY_CONSTRAINT_CHECKING    Feature identifier: whether to ignore identity constraint errors 
protected static final  String SCHEMA_VALIDATOR    Property identifier: XML Schema validator. 
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 ROOT_TYPE_DEF    Property identifier: root type definition. 
protected  XMLSchemaValidator fSchemaValidator    XML Schema Validator. 
Fields inherited from org.apache.xerces.parsers.DTDConfiguration:
WARN_ON_DUPLICATE_ATTDEF,  WARN_ON_DUPLICATE_ENTITYDEF,  WARN_ON_UNDECLARED_ELEMDEF,  ALLOW_JAVA_ENCODINGS,  CONTINUE_AFTER_FATAL_ERROR,  LOAD_EXTERNAL_DTD,  NOTIFY_BUILTIN_REFS,  NOTIFY_CHAR_REFS,  ERROR_REPORTER,  ENTITY_MANAGER,  DOCUMENT_SCANNER,  DTD_SCANNER,  XMLGRAMMAR_POOL,  DTD_PROCESSOR,  DTD_VALIDATOR,  NAMESPACE_BINDER,  DATATYPE_VALIDATOR_FACTORY,  VALIDATION_MANAGER,  JAXP_SCHEMA_LANGUAGE,  JAXP_SCHEMA_SOURCE,  PRINT_EXCEPTION_STACK_TRACE,  fGrammarPool,  fDatatypeValidatorFactory,  fErrorReporter,  fEntityManager,  fScanner,  fInputSource,  fDTDScanner,  fDTDProcessor,  fDTDValidator,  fNamespaceBinder,  fValidationManager,  fLocator,  fParseInProgress
Fields inherited from org.apache.xerces.parsers.BasicParserConfiguration:
VALIDATION,  NAMESPACES,  EXTERNAL_GENERAL_ENTITIES,  EXTERNAL_PARAMETER_ENTITIES,  XML_STRING,  SYMBOL_TABLE,  ERROR_HANDLER,  ENTITY_RESOLVER,  fSymbolTable,  fLocale,  fComponents,  fDocumentHandler,  fDTDHandler,  fDTDContentModelHandler,  fLastComponent
Fields inherited from org.apache.xerces.util.ParserConfigurationSettings:
PARSER_SETTINGS,  fRecognizedProperties,  fProperties,  fRecognizedFeatures,  fFeatures,  fParentSettings
Constructor:
 public StandardParserConfiguration() 
 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.
Method from org.apache.xerces.parsers.StandardParserConfiguration Summary:
checkFeature,   checkProperty,   configurePipeline
Methods from org.apache.xerces.parsers.DTDConfiguration:
checkFeature,   checkProperty,   cleanup,   configureDTDPipeline,   configurePipeline,   createDTDProcessor,   createDTDScanner,   createDTDValidator,   createDatatypeValidatorFactory,   createDocumentScanner,   createEntityManager,   createErrorReporter,   createNamespaceBinder,   createValidationManager,   parse,   parse,   reset,   setInputSource,   setLocale
Methods from org.apache.xerces.parsers.BasicParserConfiguration:
addComponent,   checkFeature,   checkProperty,   getDTDContentModelHandler,   getDTDHandler,   getDocumentHandler,   getEntityResolver,   getErrorHandler,   getLocale,   parse,   reset,   setDTDContentModelHandler,   setDTDHandler,   setDocumentHandler,   setEntityResolver,   setErrorHandler,   setFeature,   setLocale,   setProperty
Methods from org.apache.xerces.util.ParserConfigurationSettings:
addRecognizedFeatures,   addRecognizedProperties,   checkFeature,   checkProperty,   getFeature,   getProperty,   setFeature,   setProperty
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xerces.parsers.StandardParserConfiguration Detail:
 protected  void checkFeature(String featureId) throws XMLConfigurationException 
    Check a feature. If feature is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
 protected  void checkProperty(String propertyId) throws XMLConfigurationException 
    Check a property. If the property is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
 protected  void configurePipeline() 
    Configures the pipeline.