org.apache.abdera.xpath
Interface XPath


public interface XPath

Used to execute XPath queries over Feed Object Model instances.


Method Summary
 boolean booleanValueOf(java.lang.String path, Base base)
          Return a boolean representation of the specified Path
 boolean 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 mapping
 java.lang.Object evaluate(java.lang.String path, Base base)
          Evaluate the specified XPath and return it's value
 java.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 mapping
 java.util.Map<java.lang.String,java.lang.String> getDefaultNamespaces()
          Return the default mapping of Prefixes to XML Namespaces
 java.lang.Number numericValueOf(java.lang.String path, Base base)
          Return a numeric representation of the specified Path
 java.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 mapping
 java.util.List selectNodes(java.lang.String path, Base base)
          Return a listing of nodes matching the specified Path
 java.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 mapping
 java.lang.Object selectSingleNode(java.lang.String path, Base base)
          Return the first node matching the specified Path
 java.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 mapping
 java.lang.String valueOf(java.lang.String path, Base base)
          Return the text value of the specified Path
 java.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