public class PropertyFilter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyFilter.FilterGui
Class FilterGui _more_
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NULL_NAME
_more_
|
static int |
OP_EQUALS
_more_
|
static int |
OP_GREATERTHAN
_more_
|
static java.lang.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 and Description |
|---|
PropertyFilter()
A parameterless ctor for encoding/decoding
|
PropertyFilter(java.lang.String name,
int operator,
java.lang.String value)
Create a filter.
|
PropertyFilter(java.lang.String name,
java.lang.String operator,
java.lang.String value)
Create a filter.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
_more_
|
int |
getOperator()
Get the Operator property.
|
static int |
getOperator(java.lang.String opLabel)
_more_
|
java.lang.String |
getOperatorLabel()
_more_
|
java.lang.String |
getValue()
Get the Value property.
|
boolean |
isNumericOperator()
_more_
|
boolean |
ok(java.lang.Object inValue)
Apply this filter to the given value.
|
boolean |
ok(java.lang.Object inValue,
java.lang.Object myValue)
_more_
|
void |
setIsNot(boolean v)
Deprecated.
Keep around for bundles
|
void |
setName(java.lang.String value)
Set the Name property.
|
void |
setOperator(int value)
Set the Operator property.
|
void |
setOperator(java.lang.String value)
Set the Operator property.
|
void |
setValue(java.lang.String value)
Set the Value property.
|
public static final java.lang.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 java.lang.String[] OP_LABELS
public PropertyFilter(java.lang.String name,
java.lang.String operator,
java.lang.String value)
name - the property nameoperator - The operatorvalue - The value to matchpublic PropertyFilter(java.lang.String name,
int operator,
java.lang.String value)
name - the property nameoperator - The operatorvalue - The value to matchpublic PropertyFilter()
public boolean ok(java.lang.Object inValue)
inValue - The value to checkpublic boolean isNumericOperator()
public boolean ok(java.lang.Object inValue,
java.lang.Object myValue)
inValue - _more_myValue - _more_public static int getOperator(java.lang.String opLabel)
opLabel - _more_public java.lang.String getOperatorLabel()
public void setName(java.lang.String value)
value - The new value for Namepublic java.lang.String getName()
public void setOperator(java.lang.String value)
value - The new value for Operatorpublic void setOperator(int value)
value - The new value for Operatorpublic int getOperator()
public void setValue(java.lang.String value)
value - The new value for Valuepublic java.lang.String getValue()
public void setIsNot(boolean v)
v - _more_