FileDocCategorySizeDatePackage
PSVIConfiguration.javaAPI DocApache Xerces 3.0.14716Fri Sep 14 20:33:58 BST 2007xni.parser

PSVIConfiguration

public class PSVIConfiguration extends org.apache.xerces.parsers.XIncludeAwareParserConfiguration
This is the DTD/ XML Schema parser configuration that includes PSVIWriter component. The document will be fully assessed and will produce PSVI as required by XML Schema specification configuration including XML Schema Validator in the pipeline.
author
Elena Litani, IBM
version
$Id: PSVIConfiguration.java 447690 2006-09-19 02:41:53Z mrglavas $

Fields Summary
protected xni.PSVIWriter
fPSVIWriter
PSVI Writer
Constructors Summary
public PSVIConfiguration()
Constructs a document parser using the default symbol table and grammar pool or the ones specified by the application (through the properties).

        this(null, null);
    
public PSVIConfiguration(org.apache.xerces.util.SymbolTable symbolTable)
Constructs a document parser using the specified symbol table.

param
symbolTable The symbol table to use.

        this(symbolTable, null);
    
public PSVIConfiguration(org.apache.xerces.util.SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
Constructs a document parser using the specified symbol table and grammar pool.

REVISIT: Grammar pool will be updated when the new validation engine is implemented.

param
symbolTable The symbol table to use.
param
grammarPool The grammar pool to use.

        this(symbolTable, grammarPool, null);
    
public PSVIConfiguration(org.apache.xerces.util.SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool, org.apache.xerces.xni.parser.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.

param
symbolTable The symbol table to use.
param
grammarPool The grammar pool to use.
param
parentSettings The parent settings.

        super(symbolTable, grammarPool, parentSettings);
        fPSVIWriter = createPSVIWriter();
        if (fPSVIWriter != null) {
            addCommonComponent(fPSVIWriter);
        }

    
Methods Summary
protected voidaddPSVIWriterToPipeline()
Adds PSVI writer to the pipeline.

        if (fSchemaValidator != null) {
            fSchemaValidator.setDocumentHandler(fPSVIWriter);
            fPSVIWriter.setDocumentSource(fSchemaValidator);
            fPSVIWriter.setDocumentHandler(fDocumentHandler);
            if (fDocumentHandler != null) {
                fDocumentHandler.setDocumentSource(fPSVIWriter);
            }
        }
    
protected voidconfigurePipeline()
Configures the pipeline.

        super.configurePipeline();
        addPSVIWriterToPipeline();
    
protected voidconfigureXML11Pipeline()
Configures the XML 1.1 pipeline.

        super.configureXML11Pipeline();
        addPSVIWriterToPipeline();
    
protected xni.PSVIWritercreatePSVIWriter()
Create a PSVIWriter

        return new PSVIWriter();