org.apache.xerces.parsers

Class IntegratedParserConfiguration

public class IntegratedParserConfiguration extends StandardParserConfiguration

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:

Version: $Id: IntegratedParserConfiguration.java,v 1.13 2004/02/24 23:15:57 mrglavas Exp $

Author: Elena Litani, IBM

Field Summary
protected XMLNSDocumentScannerImplfNamespaceScanner
Document scanner that does namespace binding.
protected XMLDTDValidatorfNonNSDTDValidator
DTD Validator that does not bind namespaces
protected XMLDocumentScannerImplfNonNSScanner
Default Xerces implementation of scanner
Constructor Summary
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.
Method Summary
protected voidconfigurePipeline()
Configures the pipeline.
protected XMLDocumentScannercreateDocumentScanner()
Create a document scanner: this scanner performs namespace binding
protected XMLDTDValidatorcreateDTDValidator()
Create a DTD validator: this validator performs namespace binding.

Field Detail

fNamespaceScanner

protected XMLNSDocumentScannerImpl fNamespaceScanner
Document scanner that does namespace binding.

fNonNSDTDValidator

protected XMLDTDValidator fNonNSDTDValidator
DTD Validator that does not bind namespaces

fNonNSScanner

protected XMLDocumentScannerImpl fNonNSScanner
Default Xerces implementation of scanner

Constructor Detail

IntegratedParserConfiguration

public IntegratedParserConfiguration()
Default constructor.

IntegratedParserConfiguration

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

Parameters: symbolTable The symbol table to use.

IntegratedParserConfiguration

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.

IntegratedParserConfiguration

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.

Method Detail

configurePipeline

protected void configurePipeline()
Configures the pipeline.

createDocumentScanner

protected XMLDocumentScanner createDocumentScanner()
Create a document scanner: this scanner performs namespace binding

createDTDValidator

protected XMLDTDValidator createDTDValidator()
Create a DTD validator: this validator performs namespace binding.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.