org.apache.abdera.xpath
Interface XPath


public interface XPath

Used to execute XPath queries over Feed Object Model instances.


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

Method Detail

getDefaultNamespaces

Map<String,String> getDefaultNamespaces()
Return the default mapping of Prefixes to XML Namespaces


selectNodes

List selectNodes(String path,
                 Base base)
                 throws XPathException
Return a listing of nodes matching the specified Path

Throws:
XPathException

selectSingleNode

Object selectSingleNode(String path,
                        Base base)
                        throws XPathException
Return the first node matching the specified Path

Throws:
XPathException

evaluate

Object evaluate(String path,
                Base base)
                throws XPathException
Evaluate the specified XPath and return it's value

Throws:
XPathException

valueOf

String valueOf(String path,
               Base base)
               throws XPathException
Return the text value of the specified Path

Throws:
XPathException

booleanValueOf

boolean booleanValueOf(String path,
                       Base base)
                       throws XPathException
Return a boolean representation of the specified Path

Throws:
XPathException

numericValueOf

Number numericValueOf(String path,
                      Base base)
                      throws XPathException
Return a numeric representation of the specified Path

Throws:
XPathException

selectNodes

List selectNodes(String path,
                 Base base,
                 Map<String,String> namespaces)
                 throws XPathException
Return a listing of nodes matching the specified Path using the specified Namespaces mapping

Throws:
XPathException

selectSingleNode

Object selectSingleNode(String path,
                        Base base,
                        Map<String,String> namespaces)
                        throws XPathException
Return a the first node matching the specified Path using the specified Namespaces mapping

Throws:
XPathException

evaluate

Object evaluate(String path,
                Base base,
                Map<String,String> namespaces)
                throws XPathException
Evaluate the specified XPath and return it's value using the specified Namespaces mapping

Throws:
XPathException

valueOf

String valueOf(String path,
               Base base,
               Map<String,String> namespaces)
               throws XPathException
Return the text value of the specified Path using the specified Namespaces mapping

Throws:
XPathException

booleanValueOf

boolean booleanValueOf(String path,
                       Base base,
                       Map<String,String> namespaces)
                       throws XPathException
Return a boolean representation of the specified Path using the specified Namespaces mapping

Throws:
XPathException

numericValueOf

Number numericValueOf(String path,
                      Base base,
                      Map<String,String> namespaces)
                      throws XPathException
Return a numeric representation of the specified Path using the specified Namespaces mapping

Throws:
XPathException


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.