org.tm4j.tologx.QueryEvaluator .registerPredicateClass(java.lang.String predicateName,java.lang.Class predicateClass)
Description
Registers an extension predicate with the QueryEvaluator.
All implementation classes MUST implement the Predicate interface.
If predicateName
is the name of an already registered predicate,
then the new registration overwrites the old one.
Parameters | ||
---|---|---|
java.lang.Class | predicateClass | the implementation class for the predicate. |
java.lang.String | predicateName | the name to be used to reference the predicate from a tolog query. |
Throws
- java.lang.IllegalArgumentException - if the specified implementation class does not implement the Predicate interface.
Meta Data (1)