Class SearchQueryItemLine

java.lang.Object
io.goobi.viewer.model.search.SearchQueryItemLine
All Implemented Interfaces:
Serializable

public class SearchQueryItemLine extends Object implements Serializable
Object representing a single line with operator + value(s) within an item.
See Also:
  • Constructor Details

    • SearchQueryItemLine

      public SearchQueryItemLine()
  • Method Details

    • getOperator

      public SearchQueryItem.SearchItemOperator getOperator()
      Getter for the field operator.
      Returns:
      the logical operator (AND/OR/NOT/PHRASE) used for this query line
    • setOperator

      public void setOperator(SearchQueryItem.SearchItemOperator operator)
      Setter for the field operator.
      Parameters:
      operator - the logical operator (AND/OR/NOT/PHRASE) used for this query line
    • getValue

      public String getValue()
      Returns:
      First value
    • setValue

      public void setValue(String value)
      Setter for the field value.
      Parameters:
      value - the search term to store as the first entry in the values list (stripped of JavaScript)
    • isValueSet

      public boolean isValueSet(String value)
      Parameters:
      value - value to check for
      Returns:
      true if values contains given value; false otherwise
    • toggleValue

      public void toggleValue(String value)
      Sets/unsets the given value in the item, depending on the current status.
      Parameters:
      value - Value to set/unset
    • getValue2

      public String getValue2()
    • setValue2

      public void setValue2(String value2)
    • getValues

      public List<String> getValues()
    • setValues

      public void setValues(List<String> values)