org.apache.xerces.parsers
Class DOMASBuilderImpl

java.lang.Object
  extended by org.apache.xerces.parsers.XMLParser
      extended by org.apache.xerces.parsers.AbstractXMLDocumentParser
          extended by org.apache.xerces.parsers.AbstractDOMParser
              extended by org.apache.xerces.parsers.DOMParserImpl
                  extended by org.apache.xerces.parsers.DOMASBuilderImpl
All Implemented Interfaces:
DOMASBuilder, XMLDocumentHandler, XMLDTDContentModelHandler, XMLDTDHandler, DOMConfiguration, LSParser

Deprecated.

public class DOMASBuilderImpl
extends DOMParserImpl
implements DOMASBuilder

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

Version:
$Id: DOMASBuilderImpl.java 447239 2006-09-18 05:08:26Z mrglavas $
Author:
Pavani Mukthipudi, Sun Microsystems Inc., Neil Graham, IBM

Field Summary
 
Fields inherited from interface org.w3c.dom.ls.LSParser
ACTION_APPEND_AS_CHILDREN, ACTION_INSERT_AFTER, ACTION_INSERT_BEFORE, ACTION_REPLACE, ACTION_REPLACE_CHILDREN
 
Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE
 
Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE
 
Constructor Summary
DOMASBuilderImpl()
          Deprecated. Constructs a DOM Builder using the dtd/xml schema parser configuration.
DOMASBuilderImpl(SymbolTable symbolTable)
          Deprecated. Constructs a DOM Builder using the specified symbol table.
DOMASBuilderImpl(SymbolTable symbolTable, XMLGrammarPool grammarPool)
          Deprecated. Constructs a DOM Builder using the specified symbol table and grammar pool.
DOMASBuilderImpl(XMLGrammarCachingConfiguration config)
          Deprecated. Constructs a DOM Builder using the specified parser configuration.
 
Method Summary
 ASModel getAbstractSchema()
          Deprecated. Associate an ASModel with a document instance.
 ASModel parseASInputSource(LSInput is)
          Deprecated. Parse a Abstract Schema from a location identified by an LSInput.
 ASModel parseASURI(java.lang.String uri)
          Deprecated. Parse a Abstract Schema from a location identified by an URI.
 void setAbstractSchema(ASModel abstractSchema)
          Deprecated. Associate an ASModel with a document instance.
 
Methods inherited from class org.apache.xerces.parsers.DOMParserImpl
abort, canSetParameter, getAsync, getBusy, getDomConfig, getFilter, getParameter, getParameterNames, parse, parseURI, parseWithContext, reset, setFilter, setParameter, startElement
 
Methods inherited from class org.apache.xerces.parsers.AbstractDOMParser
attributeDecl, characters, comment, doctypeDecl, dropDocumentReferences, elementDecl, emptyElement, endAttlist, endCDATA, endConditional, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endParameterEntity, externalEntityDecl, getDocument, ignorableWhitespace, ignoredCharacters, internalEntityDecl, notationDecl, processingInstruction, setLocale, startAttlist, startCDATA, startConditional, startDocument, startDTD, startExternalSubset, startGeneralEntity, startParameterEntity, textDecl, unparsedEntityDecl, xmlDecl
 
Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser
any, element, empty, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startContentModel, startGroup
 
Methods inherited from class org.apache.xerces.parsers.XMLParser
parse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.ls.LSParser
abort, getAsync, getBusy, getDomConfig, getFilter, parse, parseURI, parseWithContext, setFilter
 

Constructor Detail

DOMASBuilderImpl

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


DOMASBuilderImpl

public DOMASBuilderImpl(XMLGrammarCachingConfiguration config)
Deprecated. 
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)
Deprecated. 
Constructs a DOM Builder using the specified symbol table.


DOMASBuilderImpl

public DOMASBuilderImpl(SymbolTable symbolTable,
                        XMLGrammarPool grammarPool)
Deprecated. 
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()
Deprecated. 
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.

Specified by:
getAbstractSchema in interface DOMASBuilder

setAbstractSchema

public void setAbstractSchema(ASModel abstractSchema)
Deprecated. 
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.

Specified by:
setAbstractSchema in interface DOMASBuilder

parseASURI

public ASModel parseASURI(java.lang.String uri)
                   throws DOMASException,
                          java.lang.Exception
Deprecated. 
Parse a Abstract Schema from a location identified by an URI.

Specified by:
parseASURI in interface DOMASBuilder
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.
java.lang.Exception

parseASInputSource

public ASModel parseASInputSource(LSInput is)
                           throws DOMASException,
                                  java.lang.Exception
Deprecated. 
Parse a Abstract Schema from a location identified by an LSInput.

Specified by:
parseASInputSource in interface DOMASBuilder
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.
java.lang.Exception