| java.lang.Object com.rimfaxe.xml.xmlreader.xpath.XPath
XPath | public class XPath implements Cloneable(Code) | | 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.
version: $Date: 2003/01/27 23:30:58 $ $Revision: 1.6 $ author: Eamonn O'Brien-Strain |
Method Summary | |
public Object | clone() A one-level clone in which the steps list is cloned but not the steps objects themselves.
It is OK for different XPaths to share Steps because they are immutable. | public static XPath | get(String xpathString) Return the xpath parse-tree object for this expression.
This may be either a newly
created object or a cached copy. | public static XPath | get(boolean isAbsolute, Step[] steps) Create an XPath from some steps. | public String | getIndexingAttrName() Return the attribute name in a trailing [@attrName] predicate. | public Enumeration | getSteps() | public boolean | isAbsolute() | public boolean | isStringValue() | public static boolean | isStringValue(String xpathString) | public String | toString() |
clone | public Object clone()(Code) | | A one-level clone in which the steps list is cloned but not the steps objects themselves.
It is OK for different XPaths to share Steps because they are immutable.
|
get | public static XPath get(String xpathString) throws XPathException(Code) | | Return the xpath parse-tree object for this expression.
This may be either a newly
created object or a cached copy.
|
get | public static XPath get(boolean isAbsolute, Step[] steps)(Code) | | Create an XPath from some steps.
The value of steps.length must be >= 1
|
getIndexingAttrName | public String getIndexingAttrName() throws XPathException(Code) | | Return the attribute name in a trailing [@attrName] predicate.
For example if the Xpath expression was "/a/b[@p='pp']/c[@q]"
then the indexing attribute name would be "q"
|
isAbsolute | public boolean isAbsolute()(Code) | | Does this path begin with a '/' or '//' ?
|
isStringValue | public boolean isStringValue()(Code) | | Does xpath evaluate to a string values (attribute values or
text() nodes)
|
|
|