|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaxen.function.CountFunction
4.1 number count(node-set)
The count function returns the number of nodes in the argument node-set.
Constructor Summary | |
CountFunction()
Create a new CountFunction object. |
Method Summary | |
Object |
call(Context context,
List args)
Returns the number of nodes in the specified node-set. |
static Double |
evaluate(Object obj)
Returns the number of nodes in the specified node-set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CountFunction()
CountFunction
object.
Method Detail |
public Object call(Context context, List args) throws FunctionCallException
Returns the number of nodes in the specified node-set.
call
in interface Function
context
- ignoredargs
- the function arguments
Double
giving the integral number of items in the first argument
FunctionCallException
- if args does not have exactly one
item; or that item is not a List
public static Double evaluate(Object obj) throws FunctionCallException
Returns the number of nodes in the specified node-set.
obj
- a List
of nodes
FunctionCallException
- if obj is not a List
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |