|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.subsets.filter.settings.DataCriteria
public class DataCriteria
DataCriteria
A data criteria consists of one or two operators and their operands. Data
criteria are used by a data filter to bound the subset elements by their
value. With a data criteria expressions like take all elements > 400
are possible.
Field Summary | |
---|---|
static java.lang.String[] |
ALL_OPERATORS
|
static java.lang.String |
EQUAL
|
static java.lang.String |
GREATER
|
static java.lang.String |
GREATER_EQUAL
|
static java.lang.String |
LESSER
|
static java.lang.String |
LESSER_EQUAL
|
static java.lang.String |
NOT_EQUAL
|
Constructor Summary | |
---|---|
DataCriteria(java.lang.String operator,
java.lang.String operand)
Creates a new DataCriteria instance with the given operator
and operand |
Method Summary | |
---|---|
void |
bind(Subset2 subset)
Binds this instance to the given Subset2
NOTE: PLEASE DON'T USE! |
StringParameter |
getFirstOperand()
|
java.lang.String |
getFirstOperator()
Returns the first operator |
int |
getFirstOperatorIndex()
Returns the index of the first operator inside the predefined operator constants array |
StringParameter |
getSecondOperand()
|
java.lang.String |
getSecondOperator()
Returns the second operator |
int |
getSecondOperatorIndex()
Returns the index of the second operator inside the predefined operator constants array |
boolean |
hasSecondOperator()
Checks if this criteria has an additional operator and operand |
void |
setFirstOperand(java.lang.String operand1)
Sets the first operand |
void |
setFirstOperand(StringParameter operand1)
|
void |
setFirstOperator(int index)
Sets the first operator by specifying its index in the predefined operator constants array |
void |
setFirstOperator(java.lang.String operator1)
Sets the operator to use as first operator |
void |
setSecondOperand(java.lang.String operand2)
Sets the second operand |
void |
setSecondOperand(StringParameter operand2)
|
void |
setSecondOperator(int index)
Sets the second operator by specifying its index in the predefined operator constants array |
void |
setSecondOperator(java.lang.String operator2)
Sets the operator to use as second operator |
void |
unbind()
Releases this instance from a previously binded Subset2
NOTE: PLEASE DON'T USE! |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LESSER
public static final java.lang.String LESSER_EQUAL
public static final java.lang.String GREATER
public static final java.lang.String GREATER_EQUAL
public static final java.lang.String NOT_EQUAL
public static final java.lang.String EQUAL
public static final java.lang.String[] ALL_OPERATORS
Constructor Detail |
---|
public DataCriteria(java.lang.String operator, java.lang.String operand)
DataCriteria
instance with the given operator
and operand
operator
- one of the defined operator constantsoperand
- an operand valueMethod Detail |
---|
public final boolean hasSecondOperator()
true
if this criteria has a second expression,
false
otherwisepublic final java.lang.String getFirstOperator()
public final int getFirstOperatorIndex()
public final void setFirstOperator(java.lang.String operator1)
operator1
- the new first operatorpublic final void setFirstOperator(int index)
index
- the new first operatorpublic final java.lang.String getSecondOperator()
public final int getSecondOperatorIndex()
public final void setSecondOperator(java.lang.String operator2)
operator2
- the new second operatorpublic final void setSecondOperator(int index)
index
- the new second operatorpublic final StringParameter getFirstOperand()
public final void setFirstOperand(java.lang.String operand1)
operand1
- the new first operandpublic final void setFirstOperand(StringParameter operand1)
public final StringParameter getSecondOperand()
public final void setSecondOperand(java.lang.String operand2)
operand2
- the new second operandpublic final void setSecondOperand(StringParameter operand2)
public final void bind(Subset2 subset)
Binds this instance to the given Subset2
subset
- public final void unbind()
Releases this instance from a previously binded Subset2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |