|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.japisoft.xpath.function.AbstractFunction | +--com.japisoft.xpath.function.basic.Id
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.
Constructor Summary | |
Id()
|
Method Summary | |
java.lang.Object |
eval(XPathContext context,
FastVector arg)
Evalute this function for this context and the following arguments |
Methods inherited from class com.japisoft.xpath.function.AbstractFunction |
checkOneNodeSet, checkOneNumber, checkOneParameter, checkOneString, checkThreeStrings, checkTwoStrings, getString1, getString2, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Id()
Method Detail |
public java.lang.Object eval(XPathContext context, FastVector arg)
AbstractFunction
eval
in interface Function
eval
in class AbstractFunction
arg
- a Vector
value, this is the responsability of the function to test the argument type
Object
value like Integer, Boolean, String or NodeSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |