org.apache.xerces.parsers
Class DOMASBuilderImpl
java.lang.Object
|
+--org.apache.xerces.parsers.XMLParser
|
+--org.apache.xerces.parsers.AbstractXMLDocumentParser
|
+--org.apache.xerces.parsers.AbstractDOMParser
|
+--org.apache.xerces.parsers.DOMBuilderImpl
|
+--org.apache.xerces.parsers.DOMASBuilderImpl
- All Implemented Interfaces:
- org.apache.xerces.dom3.as.DOMASBuilder, org.apache.xerces.dom3.ls.DOMBuilder, org.apache.xerces.xni.XMLDocumentHandler, org.apache.xerces.xni.XMLDTDContentModelHandler, org.apache.xerces.xni.XMLDTDHandler
- public class DOMASBuilderImpl
- extends DOMBuilderImpl
- implements org.apache.xerces.dom3.as.DOMASBuilder
This is Abstract Schema DOM Builder class. It extends the DOMBuilderImpl
class. Provides support for preparsing schemas.
- Version:
- $Id: DOMASBuilderImpl.java,v 1.8 2002/01/29 23:16:43 sandygao Exp $
- Author:
- Pavani Mukthipudi, Sun Microsystems Inc., Neil Graham, IBM
Fields inherited from class org.apache.xerces.parsers.DOMBuilderImpl |
CHARSET_OVERRIDES_XML_ENCODING, COMMENTS, CREATE_ENTITY_NODES, CREATE_ENTITY_REFERENCE_NODES, DATATYPE_NORMALIZATION, DYNAMIC_VALIDATION, EXTERNAL_DTD_SUBSET, EXTERNAL_GENERAL_ENTITIES, EXTERNAL_GENERAL_ENTITIES_FEATURE, EXTERNAL_PARAMETER_ENTITIES, EXTERNAL_PARAMETER_ENTITIES_FEATURE, LOAD_AS_INFOSET, LOAD_EXTERNAL_DTD_FEATURE, NAMESPACE_DECLARATIONS, SUPPORTED_MEDIATYPES_ONLY, VALIDATE_AGAINST_DTD, VALIDATE_IF_SCHEMA, VALIDATION, VALIDATION_FEATURE, WHITESPACE_IN_ELEMENT_CONTENT, XMLSCHEMA |
Fields inherited from class org.apache.xerces.parsers.AbstractDOMParser |
CREATE_CDATA_NODES_FEATURE, CREATE_ENTITY_REF_NODES, CURRENT_ELEMENT_NODE, DEFAULT_DOCUMENT_CLASS_NAME, DEFER_NODE_EXPANSION, DOCUMENT_CLASS_NAME, fCreateCDATANodes, fCreateEntityRefNodes, fCurrentCDATASection, fCurrentCDATASectionIndex, fCurrentNode, fCurrentNodeIndex, fDeferNodeExpansion, fDeferredDocumentImpl, fDocument, fDocumentClassName, fDocumentImpl, fDocumentIndex, fDocumentType, fDocumentTypeIndex, fInCDATASection, fIncludeComments, fIncludeIgnorableWhitespace, fInDocument, fInDTDExternalSubset, fInternalSubset, fNamespaceAware, fNormalizeData, INCLUDE_COMMENTS_FEATURE, INCLUDE_IGNORABLE_WHITESPACE, NAMESPACES, NORMALIZE_DATA |
Fields inherited from interface org.apache.xerces.dom3.ls.DOMBuilder |
ACTION_APPEND, ACTION_INSERT_AFTER, ACTION_INSERT_BEFORE, ACTION_REPLACE |
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()
Constructs a DOM Builder using the dtd/xml schema parser configuration. |
DOMASBuilderImpl(SymbolTable symbolTable)
Constructs a DOM Builder using the specified symbol table. |
DOMASBuilderImpl(SymbolTable symbolTable,
org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
Constructs a DOM Builder using the specified symbol table and
grammar pool. |
DOMASBuilderImpl(org.apache.xerces.xni.parser.XMLParserConfiguration config)
Constructs a DOM Builder using the specified parser configuration. |
Method Summary |
org.apache.xerces.dom3.as.ASModel |
getAbstractSchema()
Associate an ASModel with a document instance. |
org.apache.xerces.dom3.as.ASModel |
parseASInputSource(org.apache.xerces.dom3.ls.DOMInputSource is)
Parse a Abstract Schema from a location identified by an
DOMInputSource . |
org.apache.xerces.dom3.as.ASModel |
parseASURI(java.lang.String uri)
Parse a Abstract Schema from a location identified by an URI. |
void |
setAbstractSchema(org.apache.xerces.dom3.as.ASModel abstractSchema)
Associate an ASModel with a document instance. |
Methods inherited from class org.apache.xerces.parsers.DOMBuilderImpl |
canSetFeature, getEntityResolver, getErrorHandler, getFeature, getFilter, parse, parseURI, parseWithContext, reset, setEntityResolver, setErrorHandler, setFeature, setFilter |
Methods inherited from class org.apache.xerces.parsers.AbstractDOMParser |
attributeDecl, characters, comment, createAttrNode, createElementNode, doctypeDecl, elementDecl, endCDATA, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endPrefixMapping, externalEntityDecl, getDocument, getDocumentClassName, ignorableWhitespace, internalEntityDecl, notationDecl, processingInstruction, setDocumentClassName, startCDATA, startDocument, startDTD, startElement, startExternalSubset, startGeneralEntity, textDecl, unparsedEntityDecl, xmlDecl |
Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser |
any, element, empty, emptyElement, endAttlist, endConditional, endContentModel, endGroup, endParameterEntity, ignoredCharacters, occurrence, pcdata, separator, startAttlist, startConditional, startContentModel, startGroup, startParameterEntity, startPrefixMapping |
Methods inherited from class org.apache.xerces.parsers.XMLParser |
parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.xerces.dom3.ls.DOMBuilder |
canSetFeature, getEntityResolver, getErrorHandler, getFeature, getFilter, parse, parseURI, parseWithContext, setEntityResolver, setErrorHandler, setFeature, setFilter |
SCHEMA_FULL_CHECKING
protected static final java.lang.String SCHEMA_FULL_CHECKING
ERROR_REPORTER
protected static final java.lang.String ERROR_REPORTER
SYMBOL_TABLE
protected static final java.lang.String SYMBOL_TABLE
ENTITY_MANAGER
protected static final java.lang.String ENTITY_MANAGER
fGrammarBucket
protected XSGrammarBucket fGrammarBucket
fSubGroupHandler
protected SubstitutionGroupHandler fSubGroupHandler
fCMBuilder
protected CMBuilder fCMBuilder
fSchemaHandler
protected XSDHandler fSchemaHandler
fErrorReporter
protected XMLErrorReporter fErrorReporter
fEntityResolver
protected org.apache.xerces.xni.parser.XMLEntityResolver fEntityResolver
fSymbolTable
protected SymbolTable fSymbolTable
fGrammarPool
protected org.apache.xerces.xni.grammars.XMLGrammarPool fGrammarPool
fAbstractSchema
protected ASModelImpl fAbstractSchema
DOMASBuilderImpl
public DOMASBuilderImpl()
- Constructs a DOM Builder using the dtd/xml schema parser configuration.
DOMASBuilderImpl
public DOMASBuilderImpl(org.apache.xerces.xni.parser.XMLParserConfiguration config)
- Constructs a DOM Builder using the specified parser configuration.
DOMASBuilderImpl
public DOMASBuilderImpl(SymbolTable symbolTable)
- Constructs a DOM Builder using the specified symbol table.
DOMASBuilderImpl
public DOMASBuilderImpl(SymbolTable symbolTable,
org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
- Constructs a DOM Builder using the specified symbol table and
grammar pool.
getAbstractSchema
public org.apache.xerces.dom3.as.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
.
- Specified by:
getAbstractSchema
in interface org.apache.xerces.dom3.as.DOMASBuilder
setAbstractSchema
public void setAbstractSchema(org.apache.xerces.dom3.as.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
.
- Specified by:
setAbstractSchema
in interface org.apache.xerces.dom3.as.DOMASBuilder
parseASURI
public org.apache.xerces.dom3.as.ASModel parseASURI(java.lang.String uri)
throws org.apache.xerces.dom3.as.DOMASException,
java.lang.Exception
- Parse a Abstract Schema from a location identified by an URI.
- Specified by:
parseASURI
in interface org.apache.xerces.dom3.as.DOMASBuilder
- Parameters:
uri
- The location of the Abstract Schema to be read.- Returns:
- The newly created
Abstract Schema
. - Throws:
org.apache.xerces.dom3.as.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.
parseASInputSource
public org.apache.xerces.dom3.as.ASModel parseASInputSource(org.apache.xerces.dom3.ls.DOMInputSource is)
throws org.apache.xerces.dom3.as.DOMASException,
java.lang.Exception
- Parse a Abstract Schema from a location identified by an
DOMInputSource
.
- Specified by:
parseASInputSource
in interface org.apache.xerces.dom3.as.DOMASBuilder
- Parameters:
is
- The DOMInputSource
from which the source
Abstract Schema is to be read.- Returns:
- The newly created
ASModel
. - Throws:
org.apache.xerces.dom3.as.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.
Copyright © 1999-2002 Apache XML Project. All Rights Reserved.