| Modifier and Type | Field and Description |
|---|---|
protected Node |
context |
protected String |
query |
protected XPath |
xpath |
| Constructor and Description |
|---|
XPathQuery(Node node) |
XPathQuery(Node node,
String queryString) |
XPathQuery(Node node,
String queryString,
XPath xpath) |
XPathQuery(Node node,
XPath xpath) |
XPathQuery(XmlUtil.XPathQuery sample) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
as(Boolean defaultValue) |
Double |
as(Double defaultValue) |
Node |
as(Node defaultValue) |
NodeList |
as(NodeList defaultValue) |
String |
as(String defaultValue) |
XmlUtil.XPathQuery |
clone() |
XmlUtil.XPathQuery |
context(Node node) |
Boolean |
getBoolean() |
Node |
getContext() |
Double |
getDouble() |
Node |
getNode() |
NodeList |
getNodeList() |
String |
getQuery() |
String |
getString()
Получение строки согласно xpath запросу
|
XPath |
getXpath() |
XmlUtil.XPathQuery |
query(String query) |
void |
setContext(Node context) |
void |
setQuery(String query) |
void |
setXpath(XPath xpath) |
XmlUtil.XPathQuery |
xpath(XPath xpath) |
protected XPath xpath
protected Node context
protected String query
public XPathQuery(Node node)
public XPathQuery(XmlUtil.XPathQuery sample)
public XmlUtil.XPathQuery clone()
public XPath getXpath()
public void setXpath(XPath xpath)
public XmlUtil.XPathQuery xpath(XPath xpath)
public Node getContext()
public void setContext(Node context)
public XmlUtil.XPathQuery context(Node node)
public String getQuery()
public void setQuery(String query)
public XmlUtil.XPathQuery query(String query)
public String getString()
public NodeList getNodeList()
public Node getNode()
public Double getDouble()
public Boolean getBoolean()
Copyright © 2018. All rights reserved.