org.apache.xerces.parsers

Class DOMASBuilderImpl

public class DOMASBuilderImpl extends DOMParserImpl implements DOMASBuilder

Deprecated:

This is Abstract Schema DOM Builder class. It extends the DOMParserImpl class. Provides support for preparsing schemas.

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

Author: Pavani Mukthipudi, Sun Microsystems Inc. Neil Graham, IBM

Field Summary
protected static StringENTITY_MANAGER
protected static StringERROR_REPORTER
protected ASModelImplfAbstractSchema
protected XSGrammarBucketfGrammarBucket
protected static StringSCHEMA_FULL_CHECKING
protected static StringSYMBOL_TABLE
Constructor Summary
DOMASBuilderImpl()
Constructs a DOM Builder using the dtd/xml schema parser configuration.
DOMASBuilderImpl(XMLGrammarCachingConfiguration config)
Constructs a DOM Builder using the specified parser configuration.
DOMASBuilderImpl(SymbolTable symbolTable)
Constructs a DOM Builder using the specified symbol table.
DOMASBuilderImpl(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Constructs a DOM Builder using the specified symbol table and grammar pool.
Method Summary
ASModelgetAbstractSchema()
Associate an ASModel with a document instance.
ASModelparseASInputSource(LSInput is)
Parse a Abstract Schema from a location identified by an LSInput.
ASModelparseASURI(String uri)
Parse a Abstract Schema from a location identified by an URI.
voidsetAbstractSchema(ASModel abstractSchema)
Associate an ASModel with a document instance.

Field Detail

ENTITY_MANAGER

protected static final String ENTITY_MANAGER

ERROR_REPORTER

protected static final String ERROR_REPORTER

fAbstractSchema

protected ASModelImpl fAbstractSchema

fGrammarBucket

protected XSGrammarBucket fGrammarBucket

SCHEMA_FULL_CHECKING

protected static final String SCHEMA_FULL_CHECKING

SYMBOL_TABLE

protected static final String SYMBOL_TABLE

Constructor Detail

DOMASBuilderImpl

public DOMASBuilderImpl()
Constructs a DOM Builder using the dtd/xml schema parser configuration.

DOMASBuilderImpl

public DOMASBuilderImpl(XMLGrammarCachingConfiguration config)
Constructs a DOM Builder using the specified parser configuration. We must demand that the configuration extend XMLGrammarCachingConfiguration to make sure all relevant methods/features are available.

DOMASBuilderImpl

public DOMASBuilderImpl(SymbolTable symbolTable)
Constructs a DOM Builder using the specified symbol table.

DOMASBuilderImpl

public DOMASBuilderImpl(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Constructs a DOM Builder using the specified symbol table and grammar pool. The grammarPool implementation should extent the default implementation; otherwise, correct functioning of this class may not occur.

Method Detail

getAbstractSchema

public ASModel getAbstractSchema()
Associate an ASModel with a document instance. This ASModel will be used by the " validate-if-schema" and " datatype-normalization" options during the load of a new Document.

parseASInputSource

public ASModel parseASInputSource(LSInput is)
Parse a Abstract Schema from a location identified by an LSInput.

Parameters: is The LSInput from which the source Abstract Schema is to be read.

Returns: The newly created ASModel.

Throws: DOMASException Exceptions raised by parseASURI() originate with the installed ErrorHandler, and thus depend on the implementation of the DOMErrorHandler interfaces. The default error handlers will raise a DOMASException if any form of Abstract Schema inconsistencies or warning occurs during the parse, but application defined errorHandlers are not required to do so.
WRONG_MIME_TYPE_ERR: Raised when mimeTypeCheck is true and the inputsource has an incorrect MIME Type. See attribute mimeTypeCheck.
DOMSystemException Exceptions raised by parseURI() originate with the installed ErrorHandler, and thus depend on the implementation of the DOMErrorHandler interfaces. The default error handlers will raise a DOMSystemException if any form I/O or other system error occurs during the parse, but application defined error handlers are not required to do so.

parseASURI

public ASModel parseASURI(String uri)
Parse a Abstract Schema from a location identified by an URI.

Parameters: uri The location of the Abstract Schema to be read.

Returns: The newly created Abstract Schema.

Throws: DOMASException Exceptions raised by parseASURI() originate with the installed ErrorHandler, and thus depend on the implementation of the DOMErrorHandler interfaces. The default error handlers will raise a DOMASException if any form of Abstract Schema inconsistencies or warning occurs during the parse, but application defined errorHandlers are not required to do so.
WRONG_MIME_TYPE_ERR: Raised when mimeTypeCheck is true and the inputsource has an incorrect MIME Type. See attribute mimeTypeCheck.
DOMSystemException Exceptions raised by parseURI() originate with the installed ErrorHandler, and thus depend on the implementation of the DOMErrorHandler interfaces. The default error handlers will raise a DOMSystemException if any form I/O or other system error occurs during the parse, but application defined error handlers are not required to do so.

setAbstractSchema

public void setAbstractSchema(ASModel abstractSchema)
Associate an ASModel with a document instance. This ASModel will be used by the " validate-if-schema" and " datatype-normalization" options during the load of a new Document.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.