|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Operator>
net.datacrow.core.data.Operator
public enum Operator
Contains operators which can be used in filters
DataFilter
,
DataFilterEntry
Enum Constant Summary | |
---|---|
AFTER
The date is after a certain value |
|
BEFORE
The date is before a certain value |
|
CONTAINS
The string contains a certain value |
|
DAYS_AFTER
|
|
DAYS_BEFORE
|
|
DOES_NOT_CONTAIN
The string does not contains a certain value |
|
ENDS_WITH
The string ends with a certain value |
|
EQUAL_TO
Exact match |
|
GREATER_THEN
The number is greater then a certain value |
|
IS_EMPTY
The value is empty |
|
IS_FILLED
The value is set |
|
LESS_THEN
The number is less then a certain value |
|
MONTHS_AGO
|
|
NOT_EQUAL_TO
Does no match |
|
STARTS_WITH
The string starts with a certain value |
|
TODAY
|
|
YEARS_AGO
|
Method Summary | |
---|---|
static java.util.Collection<Operator> |
get(DcField field,
boolean simple)
Get all operators which can be applied on the specific field. |
int |
getIndex()
The unique index of the filter. |
java.lang.String |
getName()
The name of the operator. |
boolean |
needsValue()
Indicates if the filter requires a value in order for it to be successful. |
java.lang.String |
toString()
|
static Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Operator[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Operator EQUAL_TO
public static final Operator NOT_EQUAL_TO
public static final Operator CONTAINS
public static final Operator DOES_NOT_CONTAIN
public static final Operator IS_EMPTY
public static final Operator IS_FILLED
public static final Operator STARTS_WITH
public static final Operator ENDS_WITH
public static final Operator LESS_THEN
public static final Operator GREATER_THEN
public static final Operator BEFORE
public static final Operator AFTER
public static final Operator DAYS_BEFORE
public static final Operator DAYS_AFTER
public static final Operator TODAY
public static final Operator MONTHS_AGO
public static final Operator YEARS_AGO
Method Detail |
---|
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getIndex()
public java.lang.String getName()
public boolean needsValue()
public static java.util.Collection<Operator> get(DcField field, boolean simple)
field
- public java.lang.String toString()
toString
in class java.lang.Enum<Operator>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |