com.veromodo.tempo.filters.rules
Interface SemanticPredicate<T>

Type Parameters:
T - The type of Objects to be analyzed
All Known Subinterfaces:
IntegerPredicate
All Known Implementing Classes:
AndPredicate, EvolvePredicate, KeywordPredicate, NotPredicate, OrPredicate, RuleFactory.exprNoTypePredicate, RuleFactory.exprOnlyTypePredicate, RuleFactory.noDescriptorPredicate, RuleFactory.onlyDescriptorPredicate

public interface SemanticPredicate<T>

checks the validity of objects that are subclasses of T. Nessisary to define anonymus classes when implementing a BasicRule.


Method Summary
 boolean eval(T n)
          evaluates the object n.
 

Method Detail

eval

boolean eval(T n)
evaluates the object n. Returns true if the object matches the critera, false otherwise. Reports errors if nessisary.

Parameters:
n - an object to be checked.
Returns:
true if the object matches.