org.jaxen.function
Class NotFunction
java.lang.Object
org.jaxen.function.NotFunction
- Function
public class NotFunction
extends java.lang.Object
4.3 boolean not(boolean)
The not function returns true if its argument is false, and false otherwise.
- bob mcwhirter (bob @ werken.com)
Object | call(Context context, List args) - Returns
Boolean.TRUE if the boolean value of
args.get(0) is false, and Boolean.FALSE otherwise.
|
static Boolean | evaluate(Object obj, Navigator nav) - Returns
Boolean.TRUE if the boolean value of
obj is false, and Boolean.FALSE otherwise.
|
NotFunction
public NotFunction()
Create a new NotFunction
object.
call
public Object call(Context context,
List args)
throws FunctionCallException
Returns Boolean.TRUE
if the boolean value of
args.get(0)
is false, and Boolean.FALSE
otherwise.
The boolean value is calculated as if by the XPath boolean
function.
- call in interface Function
context
- the context at the point in the
expression where the function is calledargs
- a single element list
Boolean.TRUE
if the boolean value of
obj
is false, and Boolean.FALSE
otherwise
evaluate
public static Boolean evaluate(Object obj,
Navigator nav)
Returns Boolean.TRUE
if the boolean value of
obj
is false, and Boolean.FALSE
otherwise.
The boolean value is calculated as if by the XPath boolean
function.
obj
- the object whose boolean value is invertednav
- the Navigator
used to calculate the boolean value of obj
Boolean.TRUE
if the boolean value of
obj
is false, and Boolean.FALSE
otherwise