|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.condition.Condition | +--com.ibm.commerce.condition.OpenCondition
This class describes an open condition boolean expression. An open condition consists of a name and a set of parameters.
Inner Class Summary | |
static class |
OpenCondition.Parameter
This class describes an open condition parameter. |
Field Summary | |
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
OpenCondition(java.lang.String name)
This constructor lets you specify the open condition name. |
|
OpenCondition(java.lang.String name,
OpenCondition.Parameter parameter)
This constructor lets you specify the open condition name and a single parameter. |
|
OpenCondition(java.lang.String name,
OpenCondition.Parameter[] parameters)
This constructor lets you specify the open condition name and an array of parameter objects. |
Method Summary | |
java.lang.Object |
clone()
Returns a clone of this condition object. |
boolean |
evaluate(Evaluator evaluator)
This method evaluates the open condition. |
java.lang.String |
getName()
Gets the name of the open condition. |
OpenCondition.Parameter[] |
getParameters()
Gets the array of parameter objects. |
void |
setName(java.lang.String name)
Sets the name of the open condition. |
void |
setParameters(OpenCondition.Parameter[] parameters)
Sets the array of parameter objects. |
Methods inherited from class com.ibm.commerce.condition.Condition |
getNot, getType, getXMLFragment, loadConditionFromXML, setNot, setType |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public OpenCondition(java.lang.String name)
name
- Open condition name.public OpenCondition(java.lang.String name, OpenCondition.Parameter parameter)
name
- Open condition name.parameter
- Open condition parameter.public OpenCondition(java.lang.String name, OpenCondition.Parameter[] parameters)
name
- Open condition name.parameters
- An array of open condition parameter objects.Method Detail |
public java.lang.Object clone()
Condition
clone
in class Condition
com.ibm.commerce.condition.Condition
public boolean evaluate(Evaluator evaluator)
not
property is true
.evaluate
in class Condition
evaluator
- An implementation of the Evaluator interface that is used
to evaluate the open conditions.true
if the condition is true.public java.lang.String getName()
public OpenCondition.Parameter[] getParameters()
public void setName(java.lang.String name)
name
- The name of the open condition.public void setParameters(OpenCondition.Parameter[] parameters)
parameters
- An array of parameter objects.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |