|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hp.hpl.sparta.xpath.XPath
The root of the parse tree for an XPath expression. This is a participant in the Visitor Pattern [Gamma et al, #331]. You create an XPath object (which parses an XPath expression into a parse tree), create a Vistor object, and pass the visitor to the XPath.accept method.
Copyright (C) 2002 Hewlett-Packard Company. This file is part of Sparta, an XML Parser, DOM, and XPath library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Method Summary | |
static XPath |
get(java.lang.String xpathString)
Return the xpath parse-tree object for this expression. |
java.lang.String |
getIndexingAttrName()
Return the attribute name in a trailing [@attrName] predicate. |
java.util.Enumeration |
getSteps()
|
boolean |
isAbsolute()
Does this path begin with a '/' or '//' ? |
boolean |
isStringValue()
Does xpath evaluate to a string values (attribute values or text() nodes) |
static boolean |
isStringValue(java.lang.String xpathString)
Convenience function equivalent to get(xpathString).isStringValue() |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isAbsolute()
public boolean isStringValue()
public java.util.Enumeration getSteps()
public java.lang.String getIndexingAttrName() throws XPathException
public static XPath get(java.lang.String xpathString) throws XPathException
public static boolean isStringValue(java.lang.String xpathString) throws XPathException, java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |