Interface BooleanRestriction

All Superinterfaces:
SearchRestriction
All Known Implementing Classes:
BooleanRestrictionImpl

public interface BooleanRestriction extends SearchRestriction
A boolean search restriction. Users of this interface will ensure that only items satisfying all the restrictions returned by getRestrictions() using the boolean logic returned by getBooleanLogic() are returned.
  • Method Details

    • getRestrictions

      Collection<SearchRestriction> getRestrictions()
      Returns a collection of restrictions. Only items satisfying the restrictions using the boolean logic are returned. I.e. if the list of restrictions are empty, then no results are returned.
      Returns:
      a collection of SearchRestriction
      See Also:
    • getBooleanLogic

      Returns the boolean logic used against the collection of SearchRestriction returned by getRestrictions() to determine if an item should be included in a search result.
      Returns:
      boolean logic