us.monoid.web
Class XPathQuery
java.lang.Object
us.monoid.web.PathQuery<XMLResource,NodeList>
us.monoid.web.XPathQuery
public class XPathQuery
- extends PathQuery<XMLResource,NodeList>
PathQuery for XPath.
Use this to access XMLResource objects.
Many times you might want to use Resty.xpath(...) to create instances of this class.
- Author:
- beders
Method Summary |
|
eval(XMLResource resource,
Class<T> aReturnType)
Evaluate the XPath on an XMLResource and convert the result into aReturnType. |
XPathQuery
public XPathQuery(String anXPath)
throws XPathException
- Throws:
XPathException
eval
public <T> T eval(XMLResource resource,
Class<T> aReturnType)
throws Exception
- Evaluate the XPath on an XMLResource and convert the result into aReturnType.
- Type Parameters:
T
- the expected type of the result- Parameters:
resource
- aReturnType
-
- Returns:
-
- Throws:
Exception
Copyright © 2013. All Rights Reserved.