public class IfCondition extends java.lang.Object implements ObjectCondition, SendableEntityCreator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXPRESSION
Constant for Expression.
|
static java.lang.String |
FALSECONDITION
Constant for False Case.
|
static java.lang.String |
TRUECONDITION
Constant for TrueCase.
|
NEW, REMOVE, REMOVE_YOU, SIMPLE, UPDATE| Constructor and Description |
|---|
IfCondition() |
| Modifier and Type | Method and Description |
|---|---|
ObjectCondition |
getExpression() |
ObjectCondition |
getFalse() |
java.lang.String[] |
getProperties()
Gets the properties.
|
java.lang.Object |
getSendableInstance(boolean prototyp)
Gets the sendable instance.
|
ObjectCondition |
getTrue() |
java.lang.Object |
getValue(java.lang.Object entity,
java.lang.String attribute)
Gets the value.
|
boolean |
setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type)
Sets the value.
|
boolean |
update(java.lang.Object evt)
checks or notify this condition.
|
IfCondition |
withExpression(ObjectCondition value) |
IfCondition |
withFalse(ObjectCondition condition) |
IfCondition |
withTrue(ObjectCondition condition) |
public static final java.lang.String EXPRESSION
public static final java.lang.String TRUECONDITION
public static final java.lang.String FALSECONDITION
public IfCondition withExpression(ObjectCondition value)
value - Set the new Expressionpublic ObjectCondition getExpression()
public IfCondition withTrue(ObjectCondition condition)
condition - Set The True Casepublic ObjectCondition getTrue()
public IfCondition withFalse(ObjectCondition condition)
condition - Set the False Casepublic ObjectCondition getFalse()
public boolean update(java.lang.Object evt)
Conditionpublic java.lang.String[] getProperties()
SendableEntityCreatorgetProperties in interface SendableEntityCreatorpublic java.lang.Object getSendableInstance(boolean prototyp)
SendableEntityCreatorgetSendableInstance in interface SendableEntityCreatorprototyp - the prototyppublic java.lang.Object getValue(java.lang.Object entity,
java.lang.String attribute)
SendableEntityCreatorgetValue in interface SendableEntityCreatorentity - the entityattribute - the attributepublic boolean setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type)
SendableEntityCreatorsetValue in interface SendableEntityCreatorentity - the entityattribute - the attributevalue - the valuetype - edit, update or remove operation