Package org.apache.abdera.util
Class AbstractXPath
- java.lang.Object
-
- org.apache.abdera.util.AbstractXPath
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValueOf(java.lang.String path, Base base)Return a boolean representation of the specified Pathjava.lang.Objectevaluate(java.lang.String path, Base base)Evaluate the specified XPath and return it's valuejava.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.util.ListselectNodes(java.lang.String path, Base base)Return a listing of nodes matching the specified Pathjava.lang.ObjectselectSingleNode(java.lang.String path, Base base)Return the first node matching the specified Pathjava.lang.StringvalueOf(java.lang.String path, Base base)Return the text value of the specified Path-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.abdera.xpath.XPath
booleanValueOf, evaluate, numericValueOf, selectNodes, selectSingleNode, valueOf
-
-
-
-
Method Detail
-
getDefaultNamespaces
public java.util.Map<java.lang.String,java.lang.String> getDefaultNamespaces()
Description copied from interface:XPathReturn the default mapping of Prefixes to XML Namespaces- Specified by:
getDefaultNamespacesin interfaceXPath
-
selectNodes
public java.util.List selectNodes(java.lang.String path, Base base) throws XPathExceptionDescription copied from interface:XPathReturn a listing of nodes matching the specified Path- Specified by:
selectNodesin interfaceXPath- Throws:
XPathException
-
selectSingleNode
public java.lang.Object selectSingleNode(java.lang.String path, Base base) throws XPathExceptionDescription copied from interface:XPathReturn the first node matching the specified Path- Specified by:
selectSingleNodein interfaceXPath- Throws:
XPathException
-
evaluate
public java.lang.Object evaluate(java.lang.String path, Base base) throws XPathExceptionDescription copied from interface:XPathEvaluate the specified XPath and return it's value- Specified by:
evaluatein interfaceXPath- Throws:
XPathException
-
valueOf
public java.lang.String valueOf(java.lang.String path, Base base) throws XPathExceptionDescription copied from interface:XPathReturn the text value of the specified Path- Specified by:
valueOfin interfaceXPath- Throws:
XPathException
-
booleanValueOf
public boolean booleanValueOf(java.lang.String path, Base base) throws XPathExceptionDescription copied from interface:XPathReturn a boolean representation of the specified Path- Specified by:
booleanValueOfin interfaceXPath- Throws:
XPathException
-
numericValueOf
public java.lang.Number numericValueOf(java.lang.String path, Base base) throws XPathExceptionDescription copied from interface:XPathReturn a numeric representation of the specified Path- Specified by:
numericValueOfin interfaceXPath- Throws:
XPathException
-
-