Interface Condition


@NonNullByDefault public interface Condition
A representation of a sitemap rule condition.
Author:
Mark Herwege - Initial contribution
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Get the condition comparator.
    @Nullable String
    Get the item for which the state will be used in the condition evaluation.
    Get the condition comparison value.
    void
    setCondition(@Nullable String condition)
    Set the condition comparator, see getCondition().
    void
    setItem(@Nullable String item)
    Set the item for which the state will be used in the condition evaluation.
    void
    Set the condition comparison value.
  • Method Details

    • getItem

      @Nullable String getItem()
      Get the item for which the state will be used in the condition evaluation. If no item is set (null returned), the item of the widget will be used.
      Returns:
      item
    • setItem

      void setItem(@Nullable String item)
      Set the item for which the state will be used in the condition evaluation.
      Parameters:
      item -
    • getCondition

      @Nullable String getCondition()
      Get the condition comparator. Valid values are: "==", ">", "<", ">=", "<=", "!=". The item in the condition will be compared against the value using this comparator. If no condition comparator is set, "==" is assumed.
      Returns:
      condition comparator
    • setCondition

      void setCondition(@Nullable String condition)
      Set the condition comparator, see getCondition().
      Parameters:
      condition -
    • getValue

      String getValue()
      Get the condition comparison value.
      Returns:
      value
    • setValue

      void setValue(String value)
      Set the condition comparison value.
      Parameters:
      value -