Interface InstancePredicate
-
- All Known Subinterfaces:
InstanceEnumerationPredicate,InstanceIntervalPredicate,InstanceOntologyOrderPredicate,InstanceTaxonomyOrderPredicate,InstanceTotalOrderPredicate,InstanceValueOrderPredicate
- All Known Implementing Classes:
InstanceEnumerationPredicateImpl,InstanceIntervalPredicateImpl,InstanceOntologyOrderPredicateImpl,InstancePredicateImpl,InstanceTaxonomyOrderPredicateImpl,InstanceTotalOrderPredicateImpl,InstanceValueOrderPredicateImpl
public interface InstancePredicateTheInstancePredicatecan be used inAtomicClasses to refine the range of possible values.The
InstancePredicateis an abstract interface for that no implementation exists. Only the inherited interfaces can be instantiated:InstanceEnumerationPredicatecan be instantiated by usingAtomicClass.createNewInstanceEnumerationPredicate()InstanceIntervalPredicatecan be instantiated by usingAtomicClass.createNewInstanceIntervalPredicate()
- Author:
- Rainer Maximini
- See Also:
InstanceEnumerationPredicate,InstanceIntervalPredicate,AtomicClass
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AtomicClassgetAtomicClass()EachInstancePredicateis defined for anAtomicClass.booleanholdsFor(Object value)EachInstancePredicatemust implement this method to check if the givenvalueis an element of theInstancePredicate.booleanisEnumerationPredicate()isEnumerationPredicate.booleanisIntervalPredicate()isIntervalPredicate.booleanisTaxonomyOrderPredicate()isTaxonomyOrderPredicate.booleanisTotalOrderPredicate()isTotalOrderPredicate.
-
-
-
Method Detail
-
isEnumerationPredicate
boolean isEnumerationPredicate()
isEnumerationPredicate.
- Returns:
trueif the predicate is anInstanceEnumerationPredicate
-
isIntervalPredicate
boolean isIntervalPredicate()
isIntervalPredicate.
- Returns:
trueif the predicate is anInstanceIntervalPredicate
-
isTaxonomyOrderPredicate
boolean isTaxonomyOrderPredicate()
isTaxonomyOrderPredicate.
- Returns:
trueif the order is a taxonomy- See Also:
InstanceTaxonomyOrderPredicate
-
isTotalOrderPredicate
boolean isTotalOrderPredicate()
isTotalOrderPredicate.
- Returns:
trueif the predicate is anInstanceTotalOrderPredicate
-
getAtomicClass
AtomicClass getAtomicClass()
EachInstancePredicateis defined for anAtomicClass. This class can be received with this method.- Returns:
- The
AtomicClasson that theInstancePredicateis defined.
-
holdsFor
boolean holdsFor(Object value)
EachInstancePredicatemust implement this method to check if the givenvalueis an element of theInstancePredicate.- Parameters:
value- The value to check- Returns:
trueif the value is an element of theInstancePredicate
-
-