|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.subsets.filter.settings.AttributeConstraint
public class AttributeConstraint
AttributeFilterColumnEntry
This class defines a constraint for an Attribute
. A constraint
consists of an operator and an attribute value.
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 |
LESS
|
static java.lang.String |
LESS_EQUAL
|
static java.lang.String |
NONE
|
static java.lang.String |
NOT_EQUAL
|
Constructor Summary | |
---|---|
AttributeConstraint(java.lang.String attrId)
Creates a new AttributeConstraint instance for the
attribute which is specified by the given name. |
Method Summary | |
---|---|
boolean |
accept(java.lang.String attrValue,
int attrType)
Checks if the given attribute value is accepted, i.e. fulfills the attribute constraint defined by this instance. |
void |
bind(Subset2 subset)
Binds this instance to the given Subset2
NOTE: PLEASE DON'T USE! |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAttributeId()
Returns the name of the attribute this constrain belongs to |
java.lang.String |
getOperator()
Returns the currently used constrain operator |
int |
getOperatorIndex()
Returns the index in the ALL_OPERATORS array of the currently
used operator. |
java.lang.String |
getValue()
Returns the currently used constrain value |
int |
hashCode()
|
boolean |
isOperator(java.lang.String operator)
Checks if the given operator string is valid |
void |
setOperator(java.lang.String operator)
Sets the constrain operator to use. |
void |
setValue(java.lang.String value)
Sets the constrain value to use |
void |
unbind()
Releases this instance from a previously binded Subset2
NOTE: PLEASE DON'T USE! |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NONE
public static final java.lang.String LESS
public static final java.lang.String LESS_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 AttributeConstraint(java.lang.String attrId)
AttributeConstraint
instance for the
attribute which is specified by the given name.
attrName
- the attribute to which this constrain belongsMethod Detail |
---|
public final java.lang.String getAttributeId()
public final java.lang.String getOperator()
public final void setOperator(java.lang.String operator)
ALL_OPERATORS
array, otherwise
this method has no effect.
public final java.lang.String getValue()
public final void setValue(java.lang.String value)
value
- the new constraint valuepublic final boolean accept(java.lang.String attrValue, int attrType)
attrValue
- the attribute value to check
true
if the attribute value fulfills this constrain,
false
otherwisepublic final int getOperatorIndex()
ALL_OPERATORS
array of the currently
used operator.
ALL_OPERATORS
public final boolean isOperator(java.lang.String operator)
operator
- an operator string to check
true
if the given string represents an operator,
false
otherwisepublic final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
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 |