public class Op
extends java.lang.Object
Op.EQ
represents the ``equality'' operator, Op.GT
represents
the ``greater than'' operator, Op.LE
represents
the ``less or equal'' operator, etc.
Op also offers a convenient translation function that returns
operator codes based on their textual representation. For example,
Op.op("=")
returns Op.EQ
,
Op.op(">")
returns Op.GT
, ,
Op.op("<=")
returns Op.LE
, etc.
AttributeConstraint
,
Filter
Modifier and Type | Field and Description |
---|---|
static short |
ANY
any operator
|
static short |
EQ
equality operator
|
static short |
GE
greater o equal operator
|
static short |
GT
greater than operator
|
static short |
LE
less or equal operator
|
static short |
LT
less than operator
|
static short |
NE
not equal operator
|
static java.lang.String[] |
operators
string representation of operators
|
static short |
PF
has prefix operator (for strings only, e.g., "software" PF "soft")
x Op.PF y iff x begins with the prefix y
|
static short |
SF
has suffix operator (for strings only, e.g., "software" SF "ware")
x Op.SF y iff x ends with the suffix y
|
static short |
SS
substring operator (for strings only, e.g., "software" SS "war")
x Op.SS y iff x contains the substring y
|
Constructor and Description |
---|
Op() |
Modifier and Type | Method and Description |
---|---|
static short |
op(java.lang.String strop)
returns the operator corresponding to the given string representation.
|
public static final short EQ
public static final short LT
public static final short GT
public static final short GE
public static final short LE
public static final short PF
public static final short SF
public static final short ANY
public static final short NE
public static final short SS
public static final java.lang.String[] operators
Copyright © 2005-2011 Antonio Carzaniga.
This documentation is maintained by Antonio Carzaniga