com.japisoft.xpath.function.basic
Class Id
java.lang.Object
|
+--com.japisoft.xpath.function.AbstractFunction
|
+--com.japisoft.xpath.function.basic.Id
- All Implemented Interfaces:
- Function
- public final class Id
- extends AbstractFunction
function selects elements by their unique ID (see [5.2.1 Unique IDs]).
When the argument to id is of type node-set, then the result is the union of the
result of applying id to the string-value of each of the nodes in the
argument node-set. When the argument to id is of any other type,
the argument is converted to a string as if by a call to the
string function; the string is split into a whitespace-separated
list of tokens (whitespace is any sequence of characters matching
the production S); the result is a node-set containing the elements
in the same document as the context node that have a unique ID equal
to any of the tokens in the list.
- Version:
- 1.1
- Author:
- (c) 2003 JAPISOFT
|
Method Summary |
java.lang.Object |
eval(XPathContext context,
FastVector arg)
Evalute this function for this context and the following arguments |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Id
public Id()
eval
public java.lang.Object eval(XPathContext context,
FastVector arg)
- Description copied from class:
AbstractFunction
- Evalute this function for this context and the following arguments
- Specified by:
eval in interface Function- Specified by:
eval in class AbstractFunction
- Parameters:
arg - a Vector value, this is the responsability of the function to test the argument type
- Returns:
- an
Object value like Integer, Boolean, String or NodeSet