public class XPathParser extends Object
Constructor and Description |
---|
XPathParser(File file) |
XPathParser(InputSource inputSource) |
XPathParser(InputStream inputStream) |
XPathParser(Node rootNode) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Node parentNode,
String query) |
Object |
evaluate(String query) |
static double |
getAttributeDouble(Node node,
String attributeName) |
static Float |
getAttributeFloat(Node node,
String attributeName) |
static long |
getAttributeLong(Node node,
String attributeName) |
static String |
getAttributeString(Node node,
String attributeName) |
String |
getAttributeString(String query,
String attributeName) |
static boolean |
getAttributeStringMatch(Node node,
String attributeName,
String value) |
static int |
getAttributeValue(Node node,
String attributeName) |
int |
getAttributeValue(String query,
String attributeName) |
File |
getCurrentFile() |
Node |
getNode(Node parentNode,
String query) |
Node |
getNode(String query) |
NodeList |
getNodeList(Node parentNode,
String query) |
NodeList |
getNodeList(String query) |
String |
getNodeString(Node node,
boolean trim) |
String |
getNodeString(Node parentNode,
String query) |
String |
getNodeString(String query) |
String |
getSubNodeTextIfAny(Node parentNode,
String nodeName,
boolean trim) |
public XPathParser(File file) throws ParserConfigurationException, SAXException, IOException
public XPathParser(InputSource inputSource) throws SAXException, IOException, ParserConfigurationException
public XPathParser(InputStream inputStream) throws SAXException, IOException, ParserConfigurationException
public XPathParser(Node rootNode)
public File getCurrentFile()
public Object evaluate(Node parentNode, String query) throws XPathExpressionException
XPathExpressionException
public Object evaluate(String query) throws XPathExpressionException
XPathExpressionException
public final Node getNode(Node parentNode, String query) throws XPathExpressionException
XPathExpressionException
public final Node getNode(String query) throws XPathExpressionException
XPathExpressionException
public final String getNodeString(Node parentNode, String query) throws XPathExpressionException
XPathExpressionException
public final String getNodeString(String query) throws XPathExpressionException
XPathExpressionException
public final String getNodeString(Node node, boolean trim) throws XPathExpressionException
XPathExpressionException
public final NodeList getNodeList(Node parentNode, String query) throws XPathExpressionException
XPathExpressionException
public final NodeList getNodeList(String query) throws XPathExpressionException
XPathExpressionException
public final String getAttributeString(String query, String attributeName) throws XPathExpressionException
XPathExpressionException
public final int getAttributeValue(String query, String attributeName) throws XPathExpressionException
XPathExpressionException
public static final boolean getAttributeStringMatch(Node node, String attributeName, String value)
public final String getSubNodeTextIfAny(Node parentNode, String nodeName, boolean trim) throws XPathExpressionException
XPathExpressionException
Copyright © 2013 Jaeksoft OpenSearchServer. All rights reserved.