Package org.apache.abdera.xpath
Interface XPath
-
- All Known Implementing Classes:
AbstractXPath
public interface XPath
Used to execute XPath queries over Feed Object Model instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
booleanValueOf(java.lang.String path, Base base)
Return a boolean representation of the specified Pathboolean
booleanValueOf(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.Object
evaluate(java.lang.String path, Base base)
Evaluate the specified XPath and return it's valuejava.lang.Object
evaluate(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.Number
numericValueOf(java.lang.String path, Base base)
Return a numeric representation of the specified Pathjava.lang.Number
numericValueOf(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.List
selectNodes(java.lang.String path, Base base)
Return a listing of nodes matching the specified Pathjava.util.List
selectNodes(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.Object
selectSingleNode(java.lang.String path, Base base)
Return the first node matching the specified Pathjava.lang.Object
selectSingleNode(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.String
valueOf(java.lang.String path, Base base)
Return the text value of the specified Pathjava.lang.String
valueOf(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 XPathException
Return a listing of nodes matching the specified Path- Throws:
XPathException
-
selectSingleNode
java.lang.Object selectSingleNode(java.lang.String path, Base base) throws XPathException
Return the first node matching the specified Path- Throws:
XPathException
-
evaluate
java.lang.Object evaluate(java.lang.String path, Base base) throws XPathException
Evaluate the specified XPath and return it's value- Throws:
XPathException
-
valueOf
java.lang.String valueOf(java.lang.String path, Base base) throws XPathException
Return the text value of the specified Path- Throws:
XPathException
-
booleanValueOf
boolean booleanValueOf(java.lang.String path, Base base) throws XPathException
Return a boolean representation of the specified Path- Throws:
XPathException
-
numericValueOf
java.lang.Number numericValueOf(java.lang.String path, Base base) throws XPathException
Return 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 XPathException
Return 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 XPathException
Return 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 XPathException
Evaluate 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 XPathException
Return 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 XPathException
Return 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 XPathException
Return a numeric representation of the specified Path using the specified Namespaces mapping- Throws:
XPathException
-
-