Class PropertyFilter

java.lang.Object
ucar.unidata.ui.PropertyFilter

public class PropertyFilter extends Object
Is used to define an operator/value and to evaluate the filter on a given object.
  • Field Details

  • Constructor Details

    • PropertyFilter

      public PropertyFilter(String name, String operator, String value)
      Create a filter.
      Parameters:
      name - the property name
      operator - The operator
      value - The value to match
    • PropertyFilter

      public PropertyFilter(String name, int operator, String value)
      Create a filter.
      Parameters:
      name - the property name
      operator - The operator
      value - The value to match
    • PropertyFilter

      public PropertyFilter()
      A parameterless ctor for encoding/decoding
  • Method Details

    • ok

      public boolean ok(Object inValue)
      Apply this filter to the given value.
      Parameters:
      inValue - The value to check
      Returns:
      Does this filter match the given value.
    • isNumericOperator

      public boolean isNumericOperator()
      _more_
      Returns:
      _more_
    • ok

      public boolean ok(Object inValue, Object myValue)
      _more_
      Parameters:
      inValue - _more_
      myValue - _more_
      Returns:
      _more_
    • getOperator

      public static int getOperator(String opLabel)
      _more_
      Parameters:
      opLabel - _more_
      Returns:
      _more_
    • getOperatorLabel

      public String getOperatorLabel()
      _more_
      Returns:
      _more_
    • setName

      public void setName(String value)
      Set the Name property.
      Parameters:
      value - The new value for Name
    • getName

      public String getName()
      _more_
      Returns:
      _more_
    • setOperator

      public void setOperator(String value)
      Set the Operator property. This is here for legacy bundles
      Parameters:
      value - The new value for Operator
    • setOperator

      public void setOperator(int value)
      Set the Operator property.
      Parameters:
      value - The new value for Operator
    • getOperator

      public int getOperator()
      Get the Operator property.
      Returns:
      The Operator
    • setValue

      public void setValue(String value)
      Set the Value property.
      Parameters:
      value - The new value for Value
    • getValue

      public String getValue()
      Get the Value property.
      Returns:
      The Value
    • setIsNot

      public void setIsNot(boolean v)
      deprecated Keep around for bundles
      Parameters:
      v - _more_