|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.PropertyFilter
public class PropertyFilter
Is used to define an operator/value and to evaluate the filter on a given object.
| Nested Class Summary | |
|---|---|
static class |
PropertyFilter.FilterGui
Class FilterGui _more_ |
| Field Summary | |
|---|---|
static String |
NULL_NAME
_more_ |
static int |
OP_EQUALS
_more_ |
static int |
OP_GREATERTHAN
_more_ |
static String[] |
OP_LABELS
_more_ |
static int |
OP_LESSTHAN
_more_ |
static int |
OP_NOTEQUALS
_more_ |
static int |
OP_STRCONTAINEDIN
_more_ |
static int |
OP_STRCONTAINEDIN_NOCASE
_more_ |
static int |
OP_STRCONTAINS
_more_ |
static int |
OP_STRCONTAINS_NOCASE
_more_ |
static int |
OP_STREQUALS
_more_ |
static int |
OP_STRMATCH
_more_ |
static int |
OP_STRNOTCONTAINS
_more_ |
static int |
OP_STRNOTCONTAINS_NOCASE
_more_ |
static int |
OP_STRNOTEQUALS
_more_ |
static int |
OP_STRNOTMATCH
_more_ |
static int[] |
OPERATORS
_more_ |
| Constructor Summary | |
|---|---|
PropertyFilter()
A parameterless ctor for encoding/decoding |
|
PropertyFilter(String name,
int operator,
String value)
Create a filter. |
|
PropertyFilter(String name,
String operator,
String value)
Create a filter. |
|
| Method Summary | |
|---|---|
String |
getName()
_more_ |
int |
getOperator()
Get the Operator property. |
static int |
getOperator(String opLabel)
_more_ |
String |
getOperatorLabel()
_more_ |
String |
getValue()
Get the Value property. |
boolean |
isNumericOperator()
_more_ |
boolean |
ok(Object inValue)
Apply this filter to the given value. |
boolean |
ok(Object inValue,
Object myValue)
_more_ |
void |
setIsNot(boolean v)
Deprecated. Keep around for bundles |
void |
setName(String value)
Set the Name property. |
void |
setOperator(int value)
Set the Operator property. |
void |
setOperator(String value)
Set the Operator property. |
void |
setValue(String value)
Set the Value property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NULL_NAME
public static final int OP_GREATERTHAN
public static final int OP_LESSTHAN
public static final int OP_EQUALS
public static final int OP_NOTEQUALS
public static final int OP_STREQUALS
public static final int OP_STRNOTEQUALS
public static final int OP_STRCONTAINS
public static final int OP_STRNOTCONTAINS
public static final int OP_STRMATCH
public static final int OP_STRNOTMATCH
public static final int OP_STRCONTAINS_NOCASE
public static final int OP_STRNOTCONTAINS_NOCASE
public static final int OP_STRCONTAINEDIN
public static final int OP_STRCONTAINEDIN_NOCASE
public static final int[] OPERATORS
public static final String[] OP_LABELS
| Constructor Detail |
|---|
public PropertyFilter(String name,
String operator,
String value)
name - the property nameoperator - The operatorvalue - The value to match
public PropertyFilter(String name,
int operator,
String value)
name - the property nameoperator - The operatorvalue - The value to matchpublic PropertyFilter()
| Method Detail |
|---|
public boolean ok(Object inValue)
inValue - The value to check
public boolean isNumericOperator()
public boolean ok(Object inValue,
Object myValue)
inValue - _more_myValue - _more_
public static int getOperator(String opLabel)
opLabel - _more_
public String getOperatorLabel()
public void setName(String value)
value - The new value for Namepublic String getName()
public void setOperator(String value)
value - The new value for Operatorpublic void setOperator(int value)
value - The new value for Operatorpublic int getOperator()
public void setValue(String value)
value - The new value for Valuepublic String getValue()
public void setIsNot(boolean v)
v - _more_
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||