|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.exolab.adaptx.xpath.XPathNode
|
+--org.exolab.adaptx.xml.dom2xpn.BaseDOMXPathNode
|
+--org.exolab.adaptx.xml.dom2xpn.ParentDOMXPathNode
|
+--org.exolab.adaptx.xml.dom2xpn.DocumentWrapperXPathNode
An XPathNode wrapper for DOM Element nodes, used by the implementation of XPathNode for the W3C DOM API
| Field Summary |
|---|
| Fields inherited from class org.exolab.adaptx.xpath.XPathNode |
|---|
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, PI, ROOT, TEXT |
| Constructor Summary | |
|---|---|
DocumentWrapperXPathNode(org.w3c.dom.Document document)
Creates a new DocumentWrapperXPathNode |
|
| Method Summary | |
|---|---|
java.lang.String |
getAttribute(java.lang.String uri,
java.lang.String local)
Returns the value of the named attribute, or null if the node has no such attribute. |
XPathNode |
getFirstAttribute()
Returns the first in a list of attribute nodes, or null if the node has no attributes. |
XPathNode |
getFirstChild()
Returns the first child node of this node, or null if the node has no children. |
XPathNode |
getFirstNamespace()
Returns the first in a list of namespace nodes, or null if the node has no namespaces. |
java.lang.String |
getLocalName()
Returns the local name of the node. |
java.lang.String |
getNamespacePrefix(java.lang.String uri)
Returns the namespace prefix associated with this namespace URI, as defined in the context of this node. |
java.lang.String |
getNamespaceURI()
Returns the namespace URI the node. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Returns the namespace URI associated with this namespace prefix, as defined in the context of this node. |
XPathNode |
getNext()
Returns the next sibling node in document order, or null if this node is the last node. |
int |
getNodeType()
Returns the type of this node. |
XPathNode |
getParentNode()
Returns the parent node, or null if the node has no parent. |
XPathNode |
getPrevious()
Returns the previous sibling node in document order, or null if this node is the first node. |
XPathNode |
getRootNode()
Returns the root node. |
java.lang.String |
getStringValue()
Returns the string value of the node. |
boolean |
hasChildNodes()
Returns true if this node has any child nodes. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DocumentWrapperXPathNode(org.w3c.dom.Document document)
document - the Document that this XPathNode wraps.
This must not be null.| Method Detail |
public int getNodeType()
getNodeType in class org.exolab.adaptx.xml.dom2xpn.BaseDOMXPathNodepublic java.lang.String getLocalName()
getLocalName in class org.exolab.adaptx.xml.dom2xpn.BaseDOMXPathNodepublic java.lang.String getNamespaceURI()
getNamespaceURI in class org.exolab.adaptx.xml.dom2xpn.BaseDOMXPathNodepublic java.lang.String getStringValue()
getStringValue in class org.exolab.adaptx.xml.dom2xpn.BaseDOMXPathNodepublic java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in class org.exolab.adaptx.xml.dom2xpn.BaseDOMXPathNodeprefix - The namespace prefix
public java.lang.String getNamespacePrefix(java.lang.String uri)
getNamespacePrefix in class org.exolab.adaptx.xml.dom2xpn.BaseDOMXPathNodeuri - The namespace URI
public XPathNode getFirstChild()
getFirstChild in class org.exolab.adaptx.xml.dom2xpn.BaseDOMXPathNodepublic boolean hasChildNodes()
hasChildNodes in class org.exolab.adaptx.xml.dom2xpn.BaseDOMXPathNodepublic XPathNode getNext()
getNext in class XPathNodepublic XPathNode getPrevious()
getPrevious in class XPathNodepublic XPathNode getFirstAttribute()
getFirstAttribute in class XPathNode
public java.lang.String getAttribute(java.lang.String uri,
java.lang.String local)
getAttribute in class XPathNodeuri - The attribute's namespace URI, or nulllocal - The attribute's local name
public XPathNode getFirstNamespace()
getFirstNamespace in class XPathNodepublic XPathNode getParentNode()
getParentNode in class XPathNodepublic XPathNode getRootNode()
getRootNode in class XPathNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||