|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xerces.parsers.XMLParser | +--weblogic.apache.xerces.parsers.AbstractXMLDocumentParser | +--weblogic.apache.xerces.parsers.AbstractDOMParser | +--weblogic.apache.xerces.parsers.DOMBuilderImpl
This is Xerces DOM Builder class. It uses the abstract DOM parser with a document scanner, a dtd scanner, and a validator, as well as a grammar pool.
Field Summary | |
protected static boolean |
DEBUG
|
protected static java.lang.String |
DTD_VALIDATION
|
protected static java.lang.String |
DYNAMIC_VALIDATION
Dynamic validation |
protected DOMErrorHandlerWrapper |
fErrorHandler
|
protected java.lang.String |
fSchemaType
|
protected static java.lang.String |
NAMESPACES
Feature identifier: namespaces. |
protected static java.lang.String |
VALIDATION_FEATURE
Feature id: validation. |
protected static java.lang.String |
XML_SCHEMA_VALIDATION
|
protected static java.lang.String |
XMLSCHEMA
XML Schema validation |
Fields inherited from class weblogic.apache.xerces.parsers.AbstractXMLDocumentParser |
fDocumentSource,
fInDTD |
Fields inherited from class weblogic.apache.xerces.parsers.XMLParser |
ENTITY_RESOLVER,
ERROR_HANDLER,
fConfiguration |
Constructor Summary | |
DOMBuilderImpl(java.lang.String configuration,
java.lang.String schemaType)
Constructs a DOM Builder using the standard parser configuration. |
|
DOMBuilderImpl(SymbolTable symbolTable)
Constructs a DOM Builder using the specified symbol table. |
|
DOMBuilderImpl(SymbolTable symbolTable,
XMLGrammarPool grammarPool)
Constructs a DOM Builder using the specified symbol table and grammar pool. |
|
DOMBuilderImpl(XMLParserConfiguration config)
Constructs a DOM Builder using the specified parser configuration. |
Method Summary | |
boolean |
canSetFeature(java.lang.String name,
boolean state)
Query whether setting a feature to a specific value is supported. |
void |
endDocument(Augmentations augs)
Overwrite endDocument call to copy some information required for re-validation of DOM tree. |
org.w3c.dom.ls.DOMEntityResolver |
getEntityResolver()
If a DOMEntityResolver has been specified, each time a
reference to an external entity is encountered the
DOMBuilder will pass the public and system IDs to the
entity resolver, which can then specify the actual source of the
entity. |
org.apache.xerces.dom3.DOMErrorHandler |
getErrorHandler()
In the event that an error is encountered in the XML document being parsed, the DOMDcoumentBuilder will call back to the
errorHandler with the error information. |
boolean |
getFeature(java.lang.String name)
Look up the value of a feature. |
org.w3c.dom.ls.DOMBuilderFilter |
getFilter()
When the application provides a filter, the parser will call out to the filter at the completion of the construction of each Element node. |
protected void |
initGrammarPool()
|
org.w3c.dom.Document |
parse(org.w3c.dom.ls.DOMInputSource is)
Parse an XML document from a resource identified by an DOMInputSource . |
org.w3c.dom.Document |
parseURI(java.lang.String uri)
Parse an XML document from a location identified by an URI reference. |
void |
parseWithContext(org.w3c.dom.ls.DOMInputSource is,
org.w3c.dom.Node cnode,
short action)
Parse an XML document or fragment from a resource identified by an DOMInputSource and insert the content into an existing
document at the position epcified with the contextNode
and action arguments. |
void |
reset()
Resets the parser state. |
void |
setEntityResolver(org.w3c.dom.ls.DOMEntityResolver entityResolver)
If a DOMEntityResolver has been specified, each time a
reference to an external entity is encountered the
DOMBuilder will pass the public and system IDs to the
entity resolver, which can then specify the actual source of the
entity. |
void |
setErrorHandler(org.apache.xerces.dom3.DOMErrorHandler errorHandler)
In the event that an error is encountered in the XML document being parsed, the DOMDcoumentBuilder will call back to the
errorHandler with the error information. |
void |
setFeature(java.lang.String name,
boolean state)
Set the state of a feature. |
void |
setFilter(org.w3c.dom.ls.DOMBuilderFilter filter)
When the application provides a filter, the parser will call out to the filter at the completion of the construction of each Element node. |
Methods inherited from class weblogic.apache.xerces.parsers.AbstractXMLDocumentParser |
any,
element,
empty,
endContentModel,
endGroup,
getDocumentSource,
occurrence,
pcdata,
separator,
setDocumentSource,
startContentModel,
startGroup |
Methods inherited from class weblogic.apache.xerces.parsers.XMLParser |
parse |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final java.lang.String NAMESPACES
protected static final java.lang.String VALIDATION_FEATURE
protected static final java.lang.String XMLSCHEMA
protected static final java.lang.String DYNAMIC_VALIDATION
protected static final java.lang.String XML_SCHEMA_VALIDATION
protected static final java.lang.String DTD_VALIDATION
protected java.lang.String fSchemaType
protected static final boolean DEBUG
protected DOMErrorHandlerWrapper fErrorHandler
Constructor Detail |
public DOMBuilderImpl(java.lang.String configuration, java.lang.String schemaType)
public DOMBuilderImpl(XMLParserConfiguration config)
public DOMBuilderImpl(SymbolTable symbolTable)
public DOMBuilderImpl(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Method Detail |
public void reset()
public org.w3c.dom.ls.DOMEntityResolver getEntityResolver()
DOMEntityResolver
has been specified, each time a
reference to an external entity is encountered the
DOMBuilder
will pass the public and system IDs to the
entity resolver, which can then specify the actual source of the
entity.
public void setEntityResolver(org.w3c.dom.ls.DOMEntityResolver entityResolver)
DOMEntityResolver
has been specified, each time a
reference to an external entity is encountered the
DOMBuilder
will pass the public and system IDs to the
entity resolver, which can then specify the actual source of the
entity.
public org.apache.xerces.dom3.DOMErrorHandler getErrorHandler()
DOMDcoumentBuilder
will call back to the
errorHandler
with the error information. When the
document loading process calls the error handler the node closest to
where the error occured is passed to the error handler if the
implementation, if the implementation is unable to pass the node
where the error occures the document Node is passed to the error
handler. Mutations to the document from within an error handler will
result in implementation dependent behavour.
public void setErrorHandler(org.apache.xerces.dom3.DOMErrorHandler errorHandler)
DOMDcoumentBuilder
will call back to the
errorHandler
with the error information. When the
document loading process calls the error handler the node closest to
where the error occured is passed to the error handler if the
implementation, if the implementation is unable to pass the node
where the error occures the document Node is passed to the error
handler. Mutations to the document from within an error handler will
result in implementation dependent behavour.
public org.w3c.dom.ls.DOMBuilderFilter getFilter()
Element
node. The filter implementation can choose to
remove the element from the document being constructed (unless the
element is the document element) or to terminate the parse early. If
the document is being validated when it's loaded the validation
happens before the filter is called.
public void setFilter(org.w3c.dom.ls.DOMBuilderFilter filter)
Element
node. The filter implementation can choose to
remove the element from the document being constructed (unless the
element is the document element) or to terminate the parse early. If
the document is being validated when it's loaded the validation
happens before the filter is called.
public void setFeature(java.lang.String name, boolean state) throws org.w3c.dom.DOMException
DOMBuilder
to recognize a feature
name but to be unable to set its value.
name
- The feature name.state
- The requested state of the feature (true
or
false
).DOMBuilder
recognizes the feature name but cannot set the requested value.
DOMBuilder
does not
recognize the feature name.public boolean canSetFeature(java.lang.String name, boolean state)
name
- The feature name, which is a DOM has-feature style string.state
- The requested state of the feature (true
or
false
).true
if the feature could be successfully set to
the specified value, or false
if the feature is not
recognized or the requested value is not supported. The value of
the feature itself is not changed.public boolean getFeature(java.lang.String name) throws org.w3c.dom.DOMException
name
- The feature name, which is a string with DOM has-feature
syntax.true
or
false
).DOMBuilder
does not
recognize the feature name.public org.w3c.dom.Document parseURI(java.lang.String uri)
public org.w3c.dom.Document parse(org.w3c.dom.ls.DOMInputSource is)
DOMInputSource
.
protected void initGrammarPool()
public void parseWithContext(org.w3c.dom.ls.DOMInputSource is, org.w3c.dom.Node cnode, short action) throws org.w3c.dom.DOMException
DOMInputSource
and insert the content into an existing
document at the position epcified with the contextNode
and action
arguments. When parsing the input stream the
context node is used for resolving unbound namespace prefixes.
is
- The DOMInputSource
from which the source
document is to be read.cnode
- The Node
that is used as the context for
the data that is being parsed.action
- This parameter describes which action should be taken
between the new set of node being inserted and the existing
children of the context node. The set of possible actions is
defined above.public void endDocument(Augmentations augs) throws XNIException
augs
-
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |