Top Description Fields Constructors Methods
org.apache.xerces.parsers

public Class DOMASBuilderImpl

extends DOMParserImpl
implements DOMASBuilder
Class Inheritance
All Implemented Interfaces
org.apache.xerces.dom3.as.DOMASBuilder, org.w3c.dom.ls.LSParser
Imports
java.util.Vector, org.apache.xerces.dom.ASModelImpl, org.apache.xerces.dom3.as.ASModel, .DOMASBuilder, .DOMASException, org.apache.xerces.impl.Constants, org.apache.xerces.impl.xs.SchemaGrammar, .XSGrammarBucket, org.apache.xerces.util.SymbolTable, .XMLGrammarPoolImpl, org.apache.xerces.xni.XNIException, org.apache.xerces.xni.grammars.Grammar, .XMLGrammarPool, org.apache.xerces.xni.parser.XMLInputSource, org.w3c.dom.ls.LSInput

Deprecated

This is Abstract Schema DOM Builder class. It extends the DOMParserImpl class. Provides support for preparsing schemas.
Authors
Pavani Mukthipudi, Sun Microsystems Inc., Neil Graham, IBM
Version
$Id: DOMASBuilderImpl.java 447239 2006-09-18 05:08:26Z mrglavas $

Field Summary

Modifier and TypeField and Description
protected static final String
protected static final String
protected ASModelImpl
fAbstractSchema

Deprecated as a consequence of ASModelImpl being deprecated.
protected XSGrammarBucket
protected static final String
protected static final String
Inherited from org.apache.xerces.parsers.DOMParserImpl:
DEBUGDISALLOW_DOCTYPE_DECL_FEATUREDYNAMIC_VALIDATIONfBusyfNamespaceDeclarationsfSchemaTypeHONOUR_ALL_SCHEMALOCATIONSNAMESPACE_GROWTHNAMESPACESNORMALIZE_DATAPSVI_AUGMENTTOLERATE_DUPLICATESVALIDATION_FEATUREXMLSCHEMAXMLSCHEMA_FULL_CHECKING

Constructor Summary

AccessConstructor and Description
public
DOMASBuilderImpl()

Constructs a DOM Builder using the dtd/xml schema parser configuration.

public
DOMASBuilderImpl(XMLGrammarCachingConfiguration config)

Constructs a DOM Builder using the specified parser configuration.

public
DOMASBuilderImpl(SymbolTable symbolTable)

Constructs a DOM Builder using the specified symbol table.

public
DOMASBuilderImpl(SymbolTable symbolTable, XMLGrammarPool grammarPool)

Constructs a DOM Builder using the specified symbol table and grammar pool.

Method Summary

Modifier and TypeMethod and Description
private void
addGrammars(ASModelImpl model, XSGrammarBucket grammarBucket)

Deprecated as a consequence of ASModelImpl being deprecated.
public ASModel
getAbstractSchema()

Implements org.apache.xerces.dom3.as.DOMASBuilder.getAbstractSchema.

Deprecated as a consequence of ASModel being deprecated.
Associate an ASModel with a document instance.
private void
private void
initGrammarBucketRecurse(ASModelImpl currModel)

Deprecated as a consequence of ASModelImpl being deprecated.
private void
initGrammarPool(ASModelImpl currModel, XMLGrammarPool grammarPool)

Deprecated as a consequence of ASModelImpl being deprecated.
public ASModel

Returns:

The newly created ASModel.
parseASInputSource
(LSInput
The LSInput from which the source Abstract Schema is to be read.
is
)

Implements org.apache.xerces.dom3.as.DOMASBuilder.parseASInputSource.

Deprecated as a consequence of ASModel being deprecated.
Parse a Abstract Schema from a location identified by an LSInput.
pack-priv ASModel
parseASInputSource(XMLInputSource is)

Deprecated as a consequence of ASModel being deprecated.
public ASModel

Returns:

The newly created Abstract Schema.
parseASURI
(String
The location of the Abstract Schema to be read.
uri
)

Implements org.apache.xerces.dom3.as.DOMASBuilder.parseASURI.

Deprecated as a consequence of ASModel being deprecated.
Parse a Abstract Schema from a location identified by an URI.
public void
setAbstractSchema(ASModel abstractSchema)

Implements org.apache.xerces.dom3.as.DOMASBuilder.setAbstractSchema.

Deprecated as a consequence of ASModel being deprecated.
Associate an ASModel with a document instance.
Inherited from org.apache.xerces.parsers.DOMParserImpl:
abortcanSetParameterdom2xmlInputSourcegetAsyncgetBusygetDomConfiggetFiltergetParametergetParameterNamesparseparseURIparseWithContextresetsetFiltersetParameterstartElement

Field Detail

ENTITY_MANAGERback to summary
protected static final String ENTITY_MANAGER
ERROR_REPORTERback to summary
protected static final String ERROR_REPORTER
fAbstractSchemaback to summary
protected ASModelImpl fAbstractSchema

Deprecated

as a consequence of ASModelImpl being deprecated. See corresponding docs for further information.

fGrammarBucketback to summary
protected XSGrammarBucket fGrammarBucket
SCHEMA_FULL_CHECKINGback to summary
protected static final String SCHEMA_FULL_CHECKING
SYMBOL_TABLEback to summary
protected static final String SYMBOL_TABLE

Hides org.apache.xerces.parsers.DOMParserImpl.SYMBOL_TABLE.

Constructor Detail

DOMASBuilderImplback to summary
public DOMASBuilderImpl()

Constructs a DOM Builder using the dtd/xml schema parser configuration.

DOMASBuilderImplback to summary
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.

DOMASBuilderImplback to summary
public DOMASBuilderImpl(SymbolTable symbolTable)

Constructs a DOM Builder using the specified symbol table.

DOMASBuilderImplback to summary
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

addGrammarsback to summary
private void addGrammars(ASModelImpl model, XSGrammarBucket grammarBucket)

Deprecated

as a consequence of ASModelImpl being deprecated. See corresponding docs for further information.

getAbstractSchemaback to summary
public ASModel getAbstractSchema()

Implements org.apache.xerces.dom3.as.DOMASBuilder.getAbstractSchema.

Deprecated

as a consequence of ASModel being deprecated. See corresponding docs for further information.

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.

initGrammarBucketback to summary
private void initGrammarBucket()
initGrammarBucketRecurseback to summary
private void initGrammarBucketRecurse(ASModelImpl currModel)

Deprecated

as a consequence of ASModelImpl being deprecated. See corresponding docs for further information.

initGrammarPoolback to summary
private void initGrammarPool(ASModelImpl currModel, XMLGrammarPool grammarPool)

Deprecated

as a consequence of ASModelImpl being deprecated. See corresponding docs for further information.

parseASInputSourceback to summary
public ASModel parseASInputSource(LSInput is) throws DOMASException, Exception

Implements org.apache.xerces.dom3.as.DOMASBuilder.parseASInputSource.

Deprecated

as a consequence of ASModel being deprecated. See corresponding docs for further information.

Parse a Abstract Schema from a location identified by an LSInput.

Parameters
is:LSInput

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

Returns:ASModel

The newly created ASModel.

Exceptions
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.
DOMException:
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.
parseASInputSourceback to summary
pack-priv ASModel parseASInputSource(XMLInputSource is) throws Exception

Deprecated

as a consequence of ASModel being deprecated. See corresponding docs for further information.

parseASURIback to summary
public ASModel parseASURI(String uri) throws DOMASException, Exception

Implements org.apache.xerces.dom3.as.DOMASBuilder.parseASURI.

Deprecated

as a consequence of ASModel being deprecated. See corresponding docs for further information.

Parse a Abstract Schema from a location identified by an URI.

Parameters
uri:String

The location of the Abstract Schema to be read.

Returns:ASModel

The newly created Abstract Schema.

Exceptions
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.
DOMException:
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.
setAbstractSchemaback to summary
public void setAbstractSchema(ASModel abstractSchema)

Implements org.apache.xerces.dom3.as.DOMASBuilder.setAbstractSchema.

Deprecated

as a consequence of ASModel being deprecated. See corresponding docs for further information.

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.