Package ucar.unidata.ui
Class PropertyFilter
java.lang.Object
ucar.unidata.ui.PropertyFilter
Is used to define an operator/value and to evaluate the filter on a given object.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
_more_static final int
_more_static final int
_more_static final String[]
_more_static final int
_more_static final int
_more_static final int
_more_static final int
_more_static final int
_more_static final int
_more_static final int
_more_static final int
_more_static final int
_more_static final int
_more_static final int
_more_static final int
_more_static final int[]
_more_ -
Constructor Summary
ConstructorsConstructorDescriptionA parameterless ctor for encoding/decodingPropertyFilter
(String name, int operator, String value) Create a filter.PropertyFilter
(String name, String operator, String value) Create a filter. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
_more_int
Get the Operator property.static int
getOperator
(String opLabel) _more__more_getValue()
Get the Value property.boolean
_more_boolean
Apply this filter to the given value.boolean
_more_void
setIsNot
(boolean v) deprecated Keep around for bundlesvoid
Set the Name property.void
setOperator
(int value) Set the Operator property.void
setOperator
(String value) Set the Operator property.void
Set the Value property.
-
Field Details
-
NULL_NAME
_more_- See Also:
-
OP_GREATERTHAN
public static final int OP_GREATERTHAN_more_- See Also:
-
OP_LESSTHAN
public static final int OP_LESSTHAN_more_- See Also:
-
OP_EQUALS
public static final int OP_EQUALS_more_- See Also:
-
OP_NOTEQUALS
public static final int OP_NOTEQUALS_more_- See Also:
-
OP_STREQUALS
public static final int OP_STREQUALS_more_- See Also:
-
OP_STRNOTEQUALS
public static final int OP_STRNOTEQUALS_more_- See Also:
-
OP_STRCONTAINS
public static final int OP_STRCONTAINS_more_- See Also:
-
OP_STRNOTCONTAINS
public static final int OP_STRNOTCONTAINS_more_- See Also:
-
OP_STRMATCH
public static final int OP_STRMATCH_more_- See Also:
-
OP_STRNOTMATCH
public static final int OP_STRNOTMATCH_more_- See Also:
-
OP_STRCONTAINS_NOCASE
public static final int OP_STRCONTAINS_NOCASE_more_- See Also:
-
OP_STRNOTCONTAINS_NOCASE
public static final int OP_STRNOTCONTAINS_NOCASE_more_- See Also:
-
OP_STRCONTAINEDIN
public static final int OP_STRCONTAINEDIN_more_- See Also:
-
OP_STRCONTAINEDIN_NOCASE
public static final int OP_STRCONTAINEDIN_NOCASE_more_- See Also:
-
OPERATORS
public static final int[] OPERATORS_more_ -
OP_LABELS
_more_
-
-
Constructor Details
-
PropertyFilter
Create a filter.- Parameters:
name
- the property nameoperator
- The operatorvalue
- The value to match
-
PropertyFilter
Create a filter.- Parameters:
name
- the property nameoperator
- The operatorvalue
- The value to match
-
PropertyFilter
public PropertyFilter()A parameterless ctor for encoding/decoding
-
-
Method Details
-
ok
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
_more_- Parameters:
inValue
- _more_myValue
- _more_- Returns:
- _more_
-
getOperator
_more_- Parameters:
opLabel
- _more_- Returns:
- _more_
-
getOperatorLabel
_more_- Returns:
- _more_
-
setName
Set the Name property.- Parameters:
value
- The new value for Name
-
getName
_more_- Returns:
- _more_
-
setOperator
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
Set the Value property.- Parameters:
value
- The new value for Value
-
getValue
Get the Value property.- Returns:
- The Value
-
setIsNot
public void setIsNot(boolean v) deprecated Keep around for bundles- Parameters:
v
- _more_
-