public class

DOMASBuilderImpl

extends DOMParserImpl
implements DOMASBuilder
java.lang.Object
   ↳ org.apache.xerces.parsers.XMLParser
     ↳ org.apache.xerces.parsers.AbstractXMLDocumentParser
       ↳ org.apache.xerces.parsers.AbstractDOMParser
         ↳ org.apache.xerces.parsers.DOMParserImpl
           ↳ org.apache.xerces.parsers.DOMASBuilderImpl

Class Overview

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

Summary

Constants
String ENTITY_MANAGER
String ERROR_REPORTER
String SCHEMA_FULL_CHECKING
String SYMBOL_TABLE
[Expand]
Inherited Constants
From class org.apache.xerces.parsers.DOMParserImpl
From class org.apache.xerces.parsers.AbstractDOMParser
From class org.apache.xerces.parsers.XMLParser
From interface org.apache.xerces.xni.XMLDTDContentModelHandler
From interface org.apache.xerces.xni.XMLDTDHandler
From interface org.w3c.dom.ls.LSParser
Fields
protected ASModelImpl fAbstractSchema
protected XSGrammarBucket fGrammarBucket
[Expand]
Inherited Fields
From class org.apache.xerces.parsers.DOMParserImpl
From class org.apache.xerces.parsers.AbstractDOMParser
From class org.apache.xerces.parsers.AbstractXMLDocumentParser
From class org.apache.xerces.parsers.XMLParser
Public Constructors
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.
Public Methods
ASModel getAbstractSchema()
Associate an ASModel with a document instance.
ASModel parseASInputSource(LSInput is)
Parse a Abstract Schema from a location identified by an LSInput.
ASModel parseASURI(String uri)
Parse a Abstract Schema from a location identified by an URI.
void setAbstractSchema(ASModel abstractSchema)
Associate an ASModel with a document instance.
[Expand]
Inherited Methods
From class org.apache.xerces.parsers.DOMParserImpl
From class org.apache.xerces.parsers.AbstractDOMParser
From class org.apache.xerces.parsers.AbstractXMLDocumentParser
From class org.apache.xerces.parsers.XMLParser
From class java.lang.Object
From interface org.apache.xerces.dom3.as.DOMASBuilder
From interface org.apache.xerces.xni.XMLDTDContentModelHandler
From interface org.apache.xerces.xni.XMLDTDHandler
From interface org.apache.xerces.xni.XMLDocumentHandler
From interface org.w3c.dom.DOMConfiguration
From interface org.w3c.dom.ls.LSParser

Constants

protected static final String ENTITY_MANAGER

Constant Value: "http://apache.org/xml/properties/internal/entity-manager"

protected static final String ERROR_REPORTER

Constant Value: "http://apache.org/xml/properties/internal/error-reporter"

protected static final String SCHEMA_FULL_CHECKING

Constant Value: "http://apache.org/xml/features/validation/schema-full-checking"

protected static final String SYMBOL_TABLE

Constant Value: "http://apache.org/xml/properties/internal/symbol-table"

Fields

protected ASModelImpl fAbstractSchema

protected XSGrammarBucket fGrammarBucket

Public Constructors

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. We must demand that the configuration extend XMLGrammarCachingConfiguration to make sure all relevant methods/features are available.

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. The grammarPool implementation should extent the default implementation; otherwise, correct functioning of this class may not occur.

Public Methods

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.

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.
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.
Exception

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.
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.
Exception

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.