org.xfp.engine
Class XPathUtils
java.lang.Object
org.xfp.engine.XPathUtils
- public class XPathUtils
- extends java.lang.Object
Utility methods for the DOM Level 3 XPath API.
- Version:
- $Id: XPathUtils.java,v 1.1 2004/03/19 15:56:43 flaviotordini Exp $
- Author:
- Flavio Tordini
Method Summary |
static org.w3c.dom.xpath.XPathEvaluator |
getEvaluator(org.w3c.dom.Document document)
|
static org.w3c.dom.xpath.XPathNSResolver |
getNamespaceResolver()
|
static boolean |
selectBoolean(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator)
|
static org.w3c.dom.xpath.XPathResult |
selectIterator(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator)
|
static org.w3c.dom.xpath.XPathResult |
selectNodeSnapshot(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator)
|
static double |
selectNumber(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator)
|
static org.w3c.dom.Node |
selectSingleNode(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator)
|
static java.lang.String |
selectString(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator,
boolean checkEmpty)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathUtils
public XPathUtils()
getNamespaceResolver
public static org.w3c.dom.xpath.XPathNSResolver getNamespaceResolver()
getEvaluator
public static org.w3c.dom.xpath.XPathEvaluator getEvaluator(org.w3c.dom.Document document)
selectSingleNode
public static org.w3c.dom.Node selectSingleNode(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator)
selectString
public static java.lang.String selectString(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator,
boolean checkEmpty)
throws java.lang.Exception
- Throws:
java.lang.Exception
selectNumber
public static double selectNumber(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator)
selectBoolean
public static boolean selectBoolean(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator)
selectIterator
public static org.w3c.dom.xpath.XPathResult selectIterator(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator)
selectNodeSnapshot
public static org.w3c.dom.xpath.XPathResult selectNodeSnapshot(java.lang.String query,
org.w3c.dom.Node context,
org.w3c.dom.xpath.XPathEvaluator evaluator)
Copyright © 2003-2004 XFP Team. All Rights Reserved.