|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.XPath
public class XPath
XPath for parsing
Constructor Summary | |
---|---|
XPath()
|
Method Summary | |
---|---|
static org.w3c.dom.Node |
selectNode(java.lang.String path,
java.lang.Object node)
|
static org.w3c.dom.Node |
selectNode(java.lang.String path,
java.lang.Object node,
java.util.Map<java.lang.String,java.lang.String> namespaces)
|
static org.w3c.dom.NodeList |
selectNodes(java.lang.String path,
java.lang.Object node)
Select all nodes that are selected by this XPath expression. |
static org.w3c.dom.NodeList |
selectNodes(java.lang.String path,
java.lang.Object node,
java.util.Map<java.lang.String,java.lang.String> namespaces)
Select all nodes that are selected by this XPath expression. |
static java.lang.String |
selectText(java.lang.String path,
java.lang.Object node)
Return the text of a node, or the value of an attribute |
static java.lang.String |
selectText(java.lang.String path,
java.lang.Object node,
java.util.Map<java.lang.String,java.lang.String> namespaces)
Return the text of a node, or the value of an attribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPath()
Method Detail |
---|
public static org.w3c.dom.NodeList selectNodes(java.lang.String path, java.lang.Object node, java.util.Map<java.lang.String,java.lang.String> namespaces)
path
- node
- namespaces
- Namespaces that need to be available in the xpath, where the key is the
prefix and the value the namespace URI
public static org.w3c.dom.NodeList selectNodes(java.lang.String path, java.lang.Object node)
path
- node
-
public static org.w3c.dom.Node selectNode(java.lang.String path, java.lang.Object node, java.util.Map<java.lang.String,java.lang.String> namespaces)
public static org.w3c.dom.Node selectNode(java.lang.String path, java.lang.Object node)
public static java.lang.String selectText(java.lang.String path, java.lang.Object node, java.util.Map<java.lang.String,java.lang.String> namespaces)
path
- the XPath to executenode
- the node, node-set or Context object for evaluation. This value can be null.public static java.lang.String selectText(java.lang.String path, java.lang.Object node)
path
- the XPath to executenode
- the node, node-set or Context object for evaluation. This value can be null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |