Package org.jaxen.function
Class NotFunction
- java.lang.Object
-
- org.jaxen.function.NotFunction
-
- All Implemented Interfaces:
Function
public class NotFunction extends java.lang.Object implements Function
4.3
boolean not(boolean)The not function returns true if its argument is false, and false otherwise.
- Author:
- bob mcwhirter (bob @ werken.com)
- See Also:
- Section 4.3 of the XPath Specification
-
-
Constructor Summary
Constructors Constructor Description NotFunction()Create a newNotFunctionobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectcall(Context context, java.util.List args)ReturnsBoolean.TRUEif the boolean value ofargs.get(0)is false, andBoolean.FALSEotherwise.static java.lang.Booleanevaluate(java.lang.Object obj, Navigator nav)ReturnsBoolean.TRUEif the boolean value ofobjis false, andBoolean.FALSEotherwise.
-
-
-
Method Detail
-
call
public java.lang.Object call(Context context, java.util.List args) throws FunctionCallException
ReturnsBoolean.TRUEif the boolean value ofargs.get(0)is false, andBoolean.FALSEotherwise. The boolean value is calculated as if by the XPathbooleanfunction.- Specified by:
callin interfaceFunction- Parameters:
context- the context at the point in the expression where the function is calledargs- a single element list- Returns:
Boolean.TRUEif the boolean value ofobjis false, andBoolean.FALSEotherwise- Throws:
FunctionCallException- ifargsdoes not have exactly one argument
-
evaluate
public static java.lang.Boolean evaluate(java.lang.Object obj, Navigator nav)ReturnsBoolean.TRUEif the boolean value ofobjis false, andBoolean.FALSEotherwise. The boolean value is calculated as if by the XPathbooleanfunction.- Parameters:
obj- the object whose boolean value is invertednav- theNavigatorused to calculate the boolean value ofobj- Returns:
Boolean.TRUEif the boolean value ofobjis false, andBoolean.FALSEotherwise
-
-