public static enum Clause.Predicate extends Enum<Clause.Predicate>
| Enum Constant and Description |
|---|
CONTAINS |
ENDS_WITH |
EQUALS |
IS_NOT_PK |
IS_PK |
LIKE |
MATCHES |
NOT_CONTAINS |
NOT_ENDS_WITH |
NOT_EQUALS |
NOT_LIKE |
NOT_MATCHES |
NOT_STARTS_WITH |
STARTS_WITH |
| Modifier and Type | Field and Description |
|---|---|
String |
description |
boolean |
needsObject |
Class<?> |
type |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
eval(Object subject,
String object) |
protected boolean |
like(String subject,
String pattern) |
protected boolean |
matches(String subject,
String pattern) |
String |
toString() |
String |
validateObject(String object)
Validates an object.
|
protected String |
validateRE(String pattern) |
static Clause.Predicate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Clause.Predicate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Clause.Predicate EQUALS
public static final Clause.Predicate NOT_EQUALS
public static final Clause.Predicate STARTS_WITH
public static final Clause.Predicate NOT_STARTS_WITH
public static final Clause.Predicate ENDS_WITH
public static final Clause.Predicate NOT_ENDS_WITH
public static final Clause.Predicate CONTAINS
public static final Clause.Predicate NOT_CONTAINS
public static final Clause.Predicate MATCHES
public static final Clause.Predicate NOT_MATCHES
public static final Clause.Predicate LIKE
public static final Clause.Predicate NOT_LIKE
public static final Clause.Predicate IS_PK
public static final Clause.Predicate IS_NOT_PK
public final String description
public final Class<?> type
public final boolean needsObject
public static Clause.Predicate[] values()
for (Clause.Predicate c : Clause.Predicate.values()) System.out.println(c);
public static Clause.Predicate valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String validateObject(String object)
object - the objectnull if object is valid, otherwise a clear-text description of the problempublic String toString()
toString in class Enum<Clause.Predicate>