public class IfCondition extends java.lang.Object implements Condition<ValuesSimple>, 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.
|
| Constructor and Description |
|---|
IfCondition() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(ValuesSimple values)
checks if a telegram fulfills this condition.
|
Condition<ValuesSimple> |
getExpression() |
Condition<ValuesSimple> |
getFalse() |
java.lang.String[] |
getProperties()
Gets the properties.
|
java.lang.Object |
getSendableInstance(boolean prototyp)
Gets the sendable instance.
|
Condition<ValuesSimple> |
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.
|
IfCondition |
withExpression(Condition<ValuesSimple> value) |
IfCondition |
withFalse(Condition<ValuesSimple> condition) |
IfCondition |
withTrue(Condition<ValuesSimple> 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(Condition<ValuesSimple> value)
value - Set the new Expressionpublic Condition<ValuesSimple> getExpression()
public IfCondition withTrue(Condition<ValuesSimple> condition)
condition - Ste The True Casepublic Condition<ValuesSimple> getTrue()
public IfCondition withFalse(Condition<ValuesSimple> condition)
condition - Set the False Casepublic Condition<ValuesSimple> getFalse()
public boolean check(ValuesSimple values)
Conditioncheck in interface Condition<ValuesSimple>values - the telegram to be checkedpublic 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