public class

IntegratedParserConfiguration

extends StandardParserConfiguration
java.lang.Object
   ↳ org.apache.xerces.util.ParserConfigurationSettings
     ↳ org.apache.xerces.parsers.BasicParserConfiguration
       ↳ org.apache.xerces.parsers.DTDConfiguration
         ↳ org.apache.xerces.parsers.StandardParserConfiguration
           ↳ org.apache.xerces.parsers.IntegratedParserConfiguration

Class Overview

This is configuration uses a scanner that integrates both scanning of the document and binding namespaces. If namespace feature is turned on, the pipeline is constructured with the following components: XMLNSDocumentScannerImpl -> XMLNSDTDValidator -> (optional) XMLSchemaValidator If the namespace feature is turned off the default document scanner implementation is used (XMLDocumentScannerImpl).

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

[Expand]
Inherited Constants
From class org.apache.xerces.parsers.StandardParserConfiguration
From class org.apache.xerces.parsers.DTDConfiguration
From class org.apache.xerces.parsers.BasicParserConfiguration
From class org.apache.xerces.util.ParserConfigurationSettings
Fields
protected XMLNSDocumentScannerImpl fNamespaceScanner Document scanner that does namespace binding.
protected XMLDTDValidator fNonNSDTDValidator DTD Validator that does not bind namespaces
protected XMLDocumentScannerImpl fNonNSScanner Default Xerces implementation of scanner
[Expand]
Inherited Fields
From class org.apache.xerces.parsers.StandardParserConfiguration
From class org.apache.xerces.parsers.DTDConfiguration
From class org.apache.xerces.parsers.BasicParserConfiguration
From class org.apache.xerces.util.ParserConfigurationSettings
Public Constructors
IntegratedParserConfiguration()
Default constructor.
IntegratedParserConfiguration(SymbolTable symbolTable)
Constructs a parser configuration using the specified symbol table.
IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Constructs a parser configuration using the specified symbol table and grammar pool.
IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)
Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.
Protected Methods
void configurePipeline()
Configures the pipeline.
XMLDTDValidator createDTDValidator()
Create a DTD validator: this validator performs namespace binding.
XMLDocumentScanner createDocumentScanner()
Create a document scanner: this scanner performs namespace binding
[Expand]
Inherited Methods
From class org.apache.xerces.parsers.StandardParserConfiguration
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

Fields

protected XMLNSDocumentScannerImpl fNamespaceScanner

Document scanner that does namespace binding.

protected XMLDTDValidator fNonNSDTDValidator

DTD Validator that does not bind namespaces

protected XMLDocumentScannerImpl fNonNSScanner

Default Xerces implementation of scanner

Public Constructors

public IntegratedParserConfiguration ()

Default constructor.

public IntegratedParserConfiguration (SymbolTable symbolTable)

Constructs a parser configuration using the specified symbol table.

Parameters
symbolTable The symbol table to use.

public IntegratedParserConfiguration (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 IntegratedParserConfiguration (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 configurePipeline ()

Configures the pipeline.

protected XMLDTDValidator createDTDValidator ()

Create a DTD validator: this validator performs namespace binding.

protected XMLDocumentScanner createDocumentScanner ()

Create a document scanner: this scanner performs namespace binding