|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.xerces.parsers.XMLParser
org.apache.xerces.parsers.AbstractXMLDocumentParser
org.apache.xerces.parsers.AbstractDOMParser
org.apache.xerces.parsers.DOMParserImpl
public class DOMParserImpl
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 |
DISALLOW_DOCTYPE_DECL_FEATURE
Feature identifier: disallow docType Decls. |
protected static java.lang.String |
DYNAMIC_VALIDATION
Dynamic validation |
protected boolean |
fBusy
|
protected boolean |
fNamespaceDeclarations
Include namespace declaration attributes in the document. |
protected java.lang.String |
fSchemaType
|
protected static java.lang.String |
HONOUR_ALL_SCHEMALOCATIONS
Feature identifier: honour all schemaLocations |
protected static java.lang.String |
NAMESPACE_GROWTH
Feature identifier: namespace growth |
protected static java.lang.String |
NAMESPACES
Feature identifier: namespaces. |
protected static java.lang.String |
NORMALIZE_DATA
Feature identifier: expose schema normalized value |
protected static java.lang.String |
PSVI_AUGMENT
|
protected static java.lang.String |
SYMBOL_TABLE
|
protected static java.lang.String |
TOLERATE_DUPLICATES
Feature identifier: tolerate duplicates |
protected static java.lang.String |
VALIDATION_FEATURE
Feature id: validation. |
protected static java.lang.String |
XMLSCHEMA
XML Schema validation |
protected static java.lang.String |
XMLSCHEMA_FULL_CHECKING
XML Schema full checking |
| Fields inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser |
|---|
fDocumentSource, fDTDContentModelSource, fDTDSource |
| Fields inherited from class org.apache.xerces.parsers.XMLParser |
|---|
ENTITY_RESOLVER, ERROR_HANDLER, fConfiguration |
| 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 | |
|---|---|
DOMParserImpl(java.lang.String configuration,
java.lang.String schemaType)
Constructs a DOM Builder using the standard parser configuration. |
|
DOMParserImpl(SymbolTable symbolTable)
Constructs a DOM Builder using the specified symbol table. |
|
DOMParserImpl(SymbolTable symbolTable,
org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
Constructs a DOM Builder using the specified symbol table and grammar pool. |
|
DOMParserImpl(org.apache.xerces.xni.parser.XMLParserConfiguration config)
Constructs a DOM Builder using the specified parser configuration. |
|
| Method Summary | |
|---|---|
void |
abort()
|
boolean |
canSetParameter(java.lang.String name,
java.lang.Object value)
|
boolean |
getAsync()
|
boolean |
getBusy()
|
org.w3c.dom.DOMConfiguration |
getDomConfig()
|
org.w3c.dom.ls.LSParserFilter |
getFilter()
When a filter is provided, the implementation will call out to the filter as it is constructing the DOM tree structure. |
java.lang.Object |
getParameter(java.lang.String name)
Look up the value of a feature or a property. |
org.w3c.dom.DOMStringList |
getParameterNames()
DOM Level 3 CR - Experimental. |
org.w3c.dom.Document |
parse(org.w3c.dom.ls.LSInput is)
Parse an XML document from a resource identified by an LSInput. |
org.w3c.dom.Document |
parseURI(java.lang.String uri)
Parse an XML document from a location identified by an URI reference. |
org.w3c.dom.Node |
parseWithContext(org.w3c.dom.ls.LSInput is,
org.w3c.dom.Node cnode,
short action)
Parse an XML document or fragment from a resource identified by an LSInput 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 |
setFilter(org.w3c.dom.ls.LSParserFilter filter)
When a filter is provided, the implementation will call out to the filter as it is constructing the DOM tree structure. |
void |
setParameter(java.lang.String name,
java.lang.Object value)
Set parameters and properties |
void |
startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
The start of an element. |
| 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 |
|---|
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 XMLSCHEMA_FULL_CHECKING
protected static final java.lang.String DYNAMIC_VALIDATION
protected static final java.lang.String NORMALIZE_DATA
protected static final java.lang.String DISALLOW_DOCTYPE_DECL_FEATURE
protected static final java.lang.String HONOUR_ALL_SCHEMALOCATIONS
protected static final java.lang.String NAMESPACE_GROWTH
protected static final java.lang.String TOLERATE_DUPLICATES
protected static final java.lang.String SYMBOL_TABLE
protected static final java.lang.String PSVI_AUGMENT
protected boolean fNamespaceDeclarations
protected java.lang.String fSchemaType
protected boolean fBusy
protected static final boolean DEBUG
| Constructor Detail |
|---|
public DOMParserImpl(java.lang.String configuration,
java.lang.String schemaType)
public DOMParserImpl(org.apache.xerces.xni.parser.XMLParserConfiguration config)
public DOMParserImpl(SymbolTable symbolTable)
public DOMParserImpl(SymbolTable symbolTable,
org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
| Method Detail |
|---|
public void reset()
reset in class AbstractDOMParserSAXException - Thrown on initialization error.public org.w3c.dom.DOMConfiguration getDomConfig()
getDomConfig in interface org.w3c.dom.ls.LSParserpublic org.w3c.dom.ls.LSParserFilter getFilter()
DOMConfiguration parameters have been applied. For
example, if "
validate" is set to true, the validation is done before invoking the
filter.
getFilter in interface org.w3c.dom.ls.LSParserpublic void setFilter(org.w3c.dom.ls.LSParserFilter filter)
DOMConfiguration parameters have been applied. For
example, if "
validate" is set to true, the validation is done before invoking the
filter.
setFilter in interface org.w3c.dom.ls.LSParser
public void setParameter(java.lang.String name,
java.lang.Object value)
throws org.w3c.dom.DOMException
setParameter in interface org.w3c.dom.DOMConfigurationorg.w3c.dom.DOMException
public java.lang.Object getParameter(java.lang.String name)
throws org.w3c.dom.DOMException
getParameter in interface org.w3c.dom.DOMConfigurationorg.w3c.dom.DOMException
public boolean canSetParameter(java.lang.String name,
java.lang.Object value)
canSetParameter in interface org.w3c.dom.DOMConfigurationpublic org.w3c.dom.DOMStringList getParameterNames()
DOMConfiguration object and for which at least one value
can be set by the application. Note that this list can also contain
parameter names defined outside this specification.
getParameterNames in interface org.w3c.dom.DOMConfiguration
public org.w3c.dom.Document parseURI(java.lang.String uri)
throws org.w3c.dom.ls.LSException
parseURI in interface org.w3c.dom.ls.LSParserorg.w3c.dom.ls.LSException
public org.w3c.dom.Document parse(org.w3c.dom.ls.LSInput is)
throws org.w3c.dom.ls.LSException
LSInput.
parse in interface org.w3c.dom.ls.LSParserorg.w3c.dom.ls.LSException
public org.w3c.dom.Node parseWithContext(org.w3c.dom.ls.LSInput is,
org.w3c.dom.Node cnode,
short action)
throws org.w3c.dom.DOMException,
org.w3c.dom.ls.LSException
LSInput 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.
parseWithContext in interface org.w3c.dom.ls.LSParseris - The LSInput 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.
org.w3c.dom.DOMException - HIERARCHY_REQUEST_ERR: Thrown if this action results in an invalid
hierarchy (i.e. a Document with more than one document element).
org.w3c.dom.ls.LSExceptionpublic boolean getAsync()
getAsync in interface org.w3c.dom.ls.LSParserLSParser.getAsync()public boolean getBusy()
getBusy in interface org.w3c.dom.ls.LSParserLSParser.getBusy()public void abort()
abort in interface org.w3c.dom.ls.LSParserabort in class AbstractDOMParserLSParser.abort()
public void startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
startElement in interface org.apache.xerces.xni.XMLDocumentHandlerstartElement in class AbstractDOMParserelement - The name of the element.attributes - The element attributes.augs - Additional information that may include infoset augmentations
org.apache.xerces.xni.XNIException - Thrown by handler to signal an error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||