Interface InstancePredicate

All Known Subinterfaces:
InstanceEnumerationPredicate, InstanceIntervalPredicate, InstanceOntologyOrderPredicate, InstanceTaxonomyOrderPredicate, InstanceTotalOrderPredicate, InstanceValueOrderPredicate
All Known Implementing Classes:
InstanceEnumerationPredicateImpl, InstanceIntervalPredicateImpl, InstanceOntologyOrderPredicateImpl, InstancePredicateImpl, InstanceTaxonomyOrderPredicateImpl, InstanceTotalOrderPredicateImpl, InstanceValueOrderPredicateImpl

public interface InstancePredicate
The InstancePredicate can be used in AtomicClasses to refine the range of possible values.

The InstancePredicate is an abstract interface for that no implementation exists. Only the inherited interfaces can be instantiated:

Author:
Rainer Maximini
See Also:
  • Method Details

    • isEnumerationPredicate

      boolean isEnumerationPredicate()

      isEnumerationPredicate.

      Returns:
      true if the predicate is an InstanceEnumerationPredicate
    • isIntervalPredicate

      boolean isIntervalPredicate()

      isIntervalPredicate.

      Returns:
      true if the predicate is an InstanceIntervalPredicate
    • isTaxonomyOrderPredicate

      boolean isTaxonomyOrderPredicate()

      isTaxonomyOrderPredicate.

      Returns:
      true if the order is a taxonomy
      See Also:
    • isTotalOrderPredicate

      boolean isTotalOrderPredicate()

      isTotalOrderPredicate.

      Returns:
      true if the predicate is an InstanceTotalOrderPredicate
    • isOntologyOrderPredicate

      boolean isOntologyOrderPredicate()

      isOntologyOrderPredicate.

      Returns:
      true if the predicate is an InstanceOntologyOrderPredicate
    • getAtomicClass

      AtomicClass getAtomicClass()
      Each InstancePredicate is defined for an AtomicClass. This class can be received with this method.
      Returns:
      The AtomicClass on that the InstancePredicate is defined.
    • holdsFor

      boolean holdsFor(Object value)
      Each InstancePredicate must implement this method to check if the given value is an element of the InstancePredicate.
      Parameters:
      value - The value to check
      Returns:
      true if the value is an element of the InstancePredicate