cdqa.function
Class UnaryPredicate

java.lang.Object
  extended by cdqa.function.Function
      extended by cdqa.function.UnaryFunction
          extended by cdqa.function.UnaryPredicate
Direct Known Subclasses:
UnaryPredicateOr

public abstract class UnaryPredicate
extends UnaryFunction


Field Summary
(package private) static UnaryPredicate ISTRUE
           
static UnaryPredicate TRUE
           
 
Fields inherited from class cdqa.function.Function
NULL, repository
 
Constructor Summary
UnaryPredicate()
           
 
Method Summary
 boolean apply(XObject o)
           
static UnaryPredicate isTrue()
           
abstract  boolean onApply(XObject o)
           
 XObject onExecute(XObject o)
           
static UnaryPredicate or(UnaryPredicate p1, UnaryPredicate p2)
           
static UnaryPredicate pathToParentMatch(java.lang.String regex)
           
 
Methods inherited from class cdqa.function.UnaryFunction
createIteratorInstance, execute
 
Methods inherited from class cdqa.function.Function
createIteratorInstance, createIteratorInstance, forName, getRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISTRUE

static UnaryPredicate ISTRUE

TRUE

public static UnaryPredicate TRUE
Constructor Detail

UnaryPredicate

public UnaryPredicate()
Method Detail

onApply

public abstract boolean onApply(XObject o)

onExecute

public final XObject onExecute(XObject o)
Specified by:
onExecute in class UnaryFunction

apply

public final boolean apply(XObject o)

isTrue

public static UnaryPredicate isTrue()

or

public static UnaryPredicate or(UnaryPredicate p1,
                                UnaryPredicate p2)

pathToParentMatch

public static UnaryPredicate pathToParentMatch(java.lang.String regex)