public final class SimpleCondition extends Condition implements com.ibm.commerce.base.helpers.Uniquifiable, java.io.Serializable, com.ibm.websphere.cache.Sizeable
Modifier and Type | Class and Description |
---|---|
static class | SimpleCondition.Qualifier
This class describes a simple condition qualifier.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copyright.
|
Constructor and Description |
---|
SimpleCondition(java.lang.String variable, java.lang.String operator, java.lang.String value)
This constructor takes the variable name, the operator and the value for the simple condition.
|
SimpleCondition(java.lang.String variable, java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier qualifier)
This constructor takes the variable name, the operator, the value and a single qualifier for the simple condition.
|
SimpleCondition(java.lang.String variable, java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
This constructor takes the variable name, the operator, the value and an array of qualifiers for the simple condition.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object | clone()
Returns a clone of this condition object.
|
boolean | equals(java.lang.Object aObject)
Returns true if the specified object is equivalent to this object.
|
boolean | evaluate(Evaluator evaluator)
This method evaluates the simple condition.
|
long | getObjectSize()
Returns the estimated footprint size in bytes of this object and the objects it contains.
|
java.lang.String | getOperator()
Gets the operator name.
|
SimpleCondition.Qualifier[] | getQualifiers()
Gets the array of qualifiers.
|
java.lang.String | getValue()
Gets the value.
|
java.lang.String | getVariable()
Gets the variable name.
|
int | hashCode()
Returns a hash code for this object.
|
void | setOperator(java.lang.String operator)
Sets the operator name.
|
void | setQualifiers(SimpleCondition.Qualifier[] qualifiers)
Sets the array of qualifiers.
|
void | setValue(java.lang.String value)
Sets the value name.
|
void | setVariable(java.lang.String variable)
Sets the variable name.
|
void | uniquify()
Reduces memory footprint of this object.
|
public static final java.lang.String COPYRIGHT
public SimpleCondition(java.lang.String variable, java.lang.String operator, java.lang.String value)
public SimpleCondition(java.lang.String variable, java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier qualifier)
public SimpleCondition(java.lang.String variable, java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
public long getObjectSize()
public java.lang.Object clone()
public java.lang.String getVariable()
public void setVariable(java.lang.String variable)
public java.lang.String getOperator()
public void setOperator(java.lang.String operator)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public SimpleCondition.Qualifier[] getQualifiers()
public void setQualifiers(SimpleCondition.Qualifier[] qualifiers)
public boolean evaluate(Evaluator evaluator)
public boolean equals(java.lang.Object aObject)
public int hashCode()
public void uniquify()
Reduces memory footprint of this object.
It is expected that the implementation of this method will use the Uniquee class to replace some or all of its properties with equivalent values from the Uniquee cache, or, if equivalent values are not found, place this object's properties in the Uniquee cache.
The caller must be able to promise that this object and its properties, recursively, will never be modified again, so that it and its properties can be shared by other objects.
This method is intended to be called by the Uniquee class.