Interface Constraint

All Superinterfaces:
SelectorUnit
All Known Implementing Classes:
_Constraint

public interface Constraint extends SelectorUnit
Element used by filter to restrict qualifying Records
  • Method Details

    • copy

      Constraint copy()
      Specified by:
      copy in interface SelectorUnit
    • getId

      long getId()
    • getPrefix

      Prefix getPrefix()
    • getSubject

      Field getSubject()
      Specified by:
      getSubject in interface SelectorUnit
      Returns:
      the Field of the Record to qualify
    • getRelation

      Operator getRelation()
      Returns:
      the Operator used to qualify the Subject
    • getBound

      Field getBound()
      Returns:
      the Field value or reference to qualify the Subject against
    • isReference

      boolean isReference()
    • pass

      boolean pass(Record record)
    • setId

      Constraint setId(long id)
    • setIsReference

      Constraint setIsReference(boolean isReference)
    • setPrefix

      Constraint setPrefix(Prefix prefix)
    • setSubject

      Constraint setSubject(Field subject)
      Specified by:
      setSubject in interface SelectorUnit
      Parameters:
      subject - the Field of the Record to qualify
      Returns:
      the Constraint with Subject set
    • setRelation

      Constraint setRelation(Operator op)
      Parameters:
      op - the Operator used to qualify the subject
      Returns:
      the Constraint with Operator set
    • setBound

      Constraint setBound(Field bound)
      Parameters:
      bound - the Field value or reference to qualify the Subject agains
      Returns:
      the Constraint with Bound set