|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.geclipse.jsdl.xpath.XPathDocument
public class XPathDocument
Class simplifying querying of XML Document using XPath language.
Handle such things like namespaces, caching compiled expressions etc.
| Constructor Summary | |
|---|---|
XPathDocument(org.w3c.dom.Document document)
|
|
| Method Summary | |
|---|---|
org.w3c.dom.Document |
getDomDocument()
|
org.w3c.dom.NodeList |
getNodes(org.w3c.dom.Node parentNode,
java.lang.String xpathQuery)
Get nodes selected by giving XPath |
org.w3c.dom.NodeList |
getNodes(java.lang.String xpathQuery)
Makes the same as getNodes(Node, String) starting from document root |
java.lang.String |
getValue(org.w3c.dom.Node parentNode,
java.lang.String xpathQuery)
Get String value from node selected by query. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XPathDocument(org.w3c.dom.Document document)
document - on which XPath queries will be run| Method Detail |
|---|
public org.w3c.dom.NodeList getNodes(org.w3c.dom.Node parentNode,
java.lang.String xpathQuery)
throws javax.xml.xpath.XPathExpressionException
parentNode - XML node, from which query will be executed.xpathQuery -
javax.xml.xpath.XPathExpressionException
public org.w3c.dom.NodeList getNodes(java.lang.String xpathQuery)
throws javax.xml.xpath.XPathExpressionException
getNodes(Node, String) starting from document root
xpathQuery -
javax.xml.xpath.XPathExpressionException
public java.lang.String getValue(org.w3c.dom.Node parentNode,
java.lang.String xpathQuery)
throws javax.xml.xpath.XPathExpressionException
parentNode - xpathQuery -
javax.xml.xpath.XPathExpressionExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic org.w3c.dom.Document getDomDocument()
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||