com.ochafik.xml
Class XPathUtils

java.lang.Object
  extended by com.ochafik.xml.XPathUtils

public class XPathUtils
extends Object


Field Summary
static Map<String,SoftReference<XPathExpression>> xPathExpressionsCache
           
 
Constructor Summary
XPathUtils()
           
 
Method Summary
static Node findNodeByXPath(String xPathString, Object source)
           
static List<Node> findNodesByXPath(String xPathString, Object source)
           
static Iterable<Node> findNodesIterableByXPath(String xPathString, Object source)
           
static String findStringByXPath(String xPathString, Object source)
           
static XPath getSharedXPath()
           
static XPathExpression getXPathExpression(String xPathString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xPathExpressionsCache

public static Map<String,SoftReference<XPathExpression>> xPathExpressionsCache
Constructor Detail

XPathUtils

public XPathUtils()
Method Detail

getSharedXPath

public static XPath getSharedXPath()

findNodesByXPath

public static List<Node> findNodesByXPath(String xPathString,
                                          Object source)
                                   throws XPathExpressionException
Throws:
XPathExpressionException

findNodesIterableByXPath

public static Iterable<Node> findNodesIterableByXPath(String xPathString,
                                                      Object source)
                                               throws XPathExpressionException
Throws:
XPathExpressionException

findNodeByXPath

public static Node findNodeByXPath(String xPathString,
                                   Object source)
                            throws XPathExpressionException
Throws:
XPathExpressionException

findStringByXPath

public static String findStringByXPath(String xPathString,
                                       Object source)
                                throws XPathExpressionException
Throws:
XPathExpressionException

getXPathExpression

public static XPathExpression getXPathExpression(String xPathString)
                                          throws XPathExpressionException
Throws:
XPathExpressionException


Copyright © 2009. All Rights Reserved.