Class NotFunction

    • Constructor Summary

      Constructors 
      Constructor Description
      NotFunction()
      Create a new NotFunction object.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object call​(Context context, java.util.List args)
      Returns Boolean.TRUE if the boolean value of args.get(0) is false, and Boolean.FALSE otherwise.
      static java.lang.Boolean evaluate​(java.lang.Object obj, Navigator nav)
      Returns Boolean.TRUE if the boolean value of obj is false, and Boolean.FALSE otherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NotFunction

        public NotFunction()
        Create a new NotFunction object.
    • Method Detail

      • call

        public java.lang.Object call​(Context context,
                                     java.util.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.
        Specified by:
        call in interface Function
        Parameters:
        context - the context at the point in the expression where the function is called
        args - a single element list
        Returns:
        Boolean.TRUE if the boolean value of obj is false, and Boolean.FALSE otherwise
        Throws:
        FunctionCallException - if args does not have exactly one argument
      • evaluate

        public static java.lang.Boolean evaluate​(java.lang.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.
        Parameters:
        obj - the object whose boolean value is inverted
        nav - the Navigator used to calculate the boolean value of obj
        Returns:
        Boolean.TRUE if the boolean value of obj is false, and Boolean.FALSE otherwise