org.apache.abdera.parser.stax
Class FOMXPath

java.lang.Object
  extended by org.apache.abdera.util.AbstractXPath
      extended by org.apache.abdera.parser.stax.FOMXPath
All Implemented Interfaces:
XPath

public class FOMXPath
extends AbstractXPath


Constructor Summary
  FOMXPath(Abdera abdera)
           
protected FOMXPath(Map<String,String> defaultNamespaces)
           
protected FOMXPath(Map<String,String> defaultNamespaces, Map<QName,org.jaxen.Function> defaultFunctions, Map<QName,Object> defaultVariables)
           
 
Method Summary
 boolean booleanValueOf(String path, Base base, Map<String,String> namespaces)
          Return a boolean representation of the specified Path using the specified Namespaces mapping
 boolean booleanValueOf(String path, Base base, Map<String,String> namespaces, Map<QName,org.jaxen.Function> functions, Map<QName,Object> variables)
           
 Object evaluate(String path, Base base, Map<String,String> namespaces)
          Evaluate the specified XPath and return it's value using the specified Namespaces mapping
 Object evaluate(String path, Base base, Map<String,String> namespaces, Map<QName,org.jaxen.Function> functions, Map<QName,Object> variables)
           
 Map<QName,org.jaxen.Function> getDefaultFunctions()
           
 Map<QName,Object> getDefaultVariables()
           
static org.jaxen.XPath getXPath(String path)
           
static org.jaxen.XPath getXPath(String path, Map<String,String> namespaces)
           
static org.jaxen.XPath getXPath(String path, Map<String,String> namespaces, Map<QName,org.jaxen.Function> functions, Map<QName,Object> variables)
           
protected  Map<String,String> initDefaultNamespaces()
           
 Number numericValueOf(String path, Base base, Map<String,String> namespaces)
          Return a numeric representation of the specified Path using the specified Namespaces mapping
 Number numericValueOf(String path, Base base, Map<String,String> namespaces, Map<QName,org.jaxen.Function> functions, Map<QName,Object> variables)
           
 List selectNodes(String path, Base base, Map<String,String> namespaces)
          Return a listing of nodes matching the specified Path using the specified Namespaces mapping
 List selectNodes(String path, Base base, Map<String,String> namespaces, Map<QName,org.jaxen.Function> functions, Map<QName,Object> variables)
           
 Object selectSingleNode(String path, Base base, Map<String,String> namespaces)
          Return a the first node matching the specified Path using the specified Namespaces mapping
 Object selectSingleNode(String path, Base base, Map<String,String> namespaces, Map<QName,org.jaxen.Function> functions, Map<QName,Object> variables)
           
 void setDefaultFunctions(Map<QName,org.jaxen.Function> functions)
           
 void setDefaultVariables(Map<QName,Object> variables)
           
 String valueOf(String path, Base base, Map<String,String> namespaces)
          Return the text value of the specified Path using the specified Namespaces mapping
 String valueOf(String path, Base base, Map<String,String> namespaces, Map<QName,org.jaxen.Function> functions, Map<QName,Object> variables)
           
 
Methods inherited from class org.apache.abdera.util.AbstractXPath
booleanValueOf, evaluate, getDefaultNamespaces, numericValueOf, selectNodes, selectSingleNode, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FOMXPath

public FOMXPath(Abdera abdera)

FOMXPath

protected FOMXPath(Map<String,String> defaultNamespaces)

FOMXPath

protected FOMXPath(Map<String,String> defaultNamespaces,
                   Map<QName,org.jaxen.Function> defaultFunctions,
                   Map<QName,Object> defaultVariables)
Method Detail

initDefaultNamespaces

protected Map<String,String> initDefaultNamespaces()
Overrides:
initDefaultNamespaces in class AbstractXPath

getXPath

public static org.jaxen.XPath getXPath(String path)
                                throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

getXPath

public static org.jaxen.XPath getXPath(String path,
                                       Map<String,String> namespaces,
                                       Map<QName,org.jaxen.Function> functions,
                                       Map<QName,Object> variables)
                                throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

getXPath

public static org.jaxen.XPath getXPath(String path,
                                       Map<String,String> namespaces)
                                throws org.jaxen.JaxenException
Throws:
org.jaxen.JaxenException

selectNodes

public List selectNodes(String path,
                        Base base,
                        Map<String,String> namespaces,
                        Map<QName,org.jaxen.Function> functions,
                        Map<QName,Object> variables)
                 throws XPathException
Throws:
XPathException

selectNodes

public List selectNodes(String path,
                        Base base,
                        Map<String,String> namespaces)
                 throws XPathException
Description copied from interface: XPath
Return a listing of nodes matching the specified Path using the specified Namespaces mapping

Throws:
XPathException

selectSingleNode

public Object selectSingleNode(String path,
                               Base base,
                               Map<String,String> namespaces,
                               Map<QName,org.jaxen.Function> functions,
                               Map<QName,Object> variables)
                        throws XPathException
Throws:
XPathException

selectSingleNode

public Object selectSingleNode(String path,
                               Base base,
                               Map<String,String> namespaces)
                        throws XPathException
Description copied from interface: XPath
Return a the first node matching the specified Path using the specified Namespaces mapping

Throws:
XPathException

evaluate

public Object evaluate(String path,
                       Base base,
                       Map<String,String> namespaces,
                       Map<QName,org.jaxen.Function> functions,
                       Map<QName,Object> variables)
                throws XPathException
Throws:
XPathException

evaluate

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

Throws:
XPathException

valueOf

public String valueOf(String path,
                      Base base,
                      Map<String,String> namespaces,
                      Map<QName,org.jaxen.Function> functions,
                      Map<QName,Object> variables)
               throws XPathException
Throws:
XPathException

valueOf

public String valueOf(String path,
                      Base base,
                      Map<String,String> namespaces)
               throws XPathException
Description copied from interface: XPath
Return the text value of the specified Path using the specified Namespaces mapping

Throws:
XPathException

booleanValueOf

public boolean booleanValueOf(String path,
                              Base base,
                              Map<String,String> namespaces,
                              Map<QName,org.jaxen.Function> functions,
                              Map<QName,Object> variables)
                       throws XPathException
Throws:
XPathException

booleanValueOf

public boolean booleanValueOf(String path,
                              Base base,
                              Map<String,String> namespaces)
                       throws XPathException
Description copied from interface: XPath
Return a boolean representation of the specified Path using the specified Namespaces mapping

Throws:
XPathException

numericValueOf

public Number numericValueOf(String path,
                             Base base,
                             Map<String,String> namespaces,
                             Map<QName,org.jaxen.Function> functions,
                             Map<QName,Object> variables)
                      throws XPathException
Throws:
XPathException

numericValueOf

public Number numericValueOf(String path,
                             Base base,
                             Map<String,String> namespaces)
                      throws XPathException
Description copied from interface: XPath
Return a numeric representation of the specified Path using the specified Namespaces mapping

Throws:
XPathException

getDefaultFunctions

public Map<QName,org.jaxen.Function> getDefaultFunctions()

setDefaultFunctions

public void setDefaultFunctions(Map<QName,org.jaxen.Function> functions)

getDefaultVariables

public Map<QName,Object> getDefaultVariables()

setDefaultVariables

public void setDefaultVariables(Map<QName,Object> variables)


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