Package org.apache.abdera.xpath
Interface XPath
-
- All Known Implementing Classes:
AbstractXPath
public interface XPathUsed to execute XPath queries over Feed Object Model instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbooleanValueOf(java.lang.String path, Base base)Return a boolean representation of the specified PathbooleanbooleanValueOf(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces)Return a boolean representation of the specified Path using the specified Namespaces mappingjava.lang.Objectevaluate(java.lang.String path, Base base)Evaluate the specified XPath and return it's valuejava.lang.Objectevaluate(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces)Evaluate the specified XPath and return it's value using the specified Namespaces mappingjava.util.Map<java.lang.String,java.lang.String>getDefaultNamespaces()Return the default mapping of Prefixes to XML Namespacesjava.lang.NumbernumericValueOf(java.lang.String path, Base base)Return a numeric representation of the specified Pathjava.lang.NumbernumericValueOf(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces)Return a numeric representation of the specified Path using the specified Namespaces mappingjava.util.ListselectNodes(java.lang.String path, Base base)Return a listing of nodes matching the specified Pathjava.util.ListselectNodes(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces)Return a listing of nodes matching the specified Path using the specified Namespaces mappingjava.lang.ObjectselectSingleNode(java.lang.String path, Base base)Return the first node matching the specified Pathjava.lang.ObjectselectSingleNode(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces)Return a the first node matching the specified Path using the specified Namespaces mappingjava.lang.StringvalueOf(java.lang.String path, Base base)Return the text value of the specified Pathjava.lang.StringvalueOf(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces)Return the text value of the specified Path using the specified Namespaces mapping
-
-
-
Method Detail
-
getDefaultNamespaces
java.util.Map<java.lang.String,java.lang.String> getDefaultNamespaces()
Return the default mapping of Prefixes to XML Namespaces
-
selectNodes
java.util.List selectNodes(java.lang.String path, Base base) throws XPathExceptionReturn a listing of nodes matching the specified Path- Throws:
XPathException
-
selectSingleNode
java.lang.Object selectSingleNode(java.lang.String path, Base base) throws XPathExceptionReturn the first node matching the specified Path- Throws:
XPathException
-
evaluate
java.lang.Object evaluate(java.lang.String path, Base base) throws XPathExceptionEvaluate the specified XPath and return it's value- Throws:
XPathException
-
valueOf
java.lang.String valueOf(java.lang.String path, Base base) throws XPathExceptionReturn the text value of the specified Path- Throws:
XPathException
-
booleanValueOf
boolean booleanValueOf(java.lang.String path, Base base) throws XPathExceptionReturn a boolean representation of the specified Path- Throws:
XPathException
-
numericValueOf
java.lang.Number numericValueOf(java.lang.String path, Base base) throws XPathExceptionReturn a numeric representation of the specified Path- Throws:
XPathException
-
selectNodes
java.util.List selectNodes(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces) throws XPathExceptionReturn a listing of nodes matching the specified Path using the specified Namespaces mapping- Throws:
XPathException
-
selectSingleNode
java.lang.Object selectSingleNode(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces) throws XPathExceptionReturn a the first node matching the specified Path using the specified Namespaces mapping- Throws:
XPathException
-
evaluate
java.lang.Object evaluate(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces) throws XPathExceptionEvaluate the specified XPath and return it's value using the specified Namespaces mapping- Throws:
XPathException
-
valueOf
java.lang.String valueOf(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces) throws XPathExceptionReturn the text value of the specified Path using the specified Namespaces mapping- Throws:
XPathException
-
booleanValueOf
boolean booleanValueOf(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces) throws XPathExceptionReturn a boolean representation of the specified Path using the specified Namespaces mapping- Throws:
XPathException
-
numericValueOf
java.lang.Number numericValueOf(java.lang.String path, Base base, java.util.Map<java.lang.String,java.lang.String> namespaces) throws XPathExceptionReturn a numeric representation of the specified Path using the specified Namespaces mapping- Throws:
XPathException
-
-