Condition<java.lang.Object>, ObjectCondition, ParserCondition, SendableEntityCreatorpublic class IfCondition extends java.lang.Object implements ParserCondition, SendableEntityCreator
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
EXPRESSION |
Constant for Expression.
|
static java.lang.String |
FALSECONDITION |
Constant for False Case.
|
static java.lang.String |
IFNOT |
|
static java.lang.String |
TAG |
|
static java.lang.String |
TRUECONDITION |
Constant for TrueCase.
|
ENTER, SPACE, SPLITEND, SPLITSTARTNEW, REMOVE, REMOVE_YOU, SIMPLE, UPDATE| Constructor | Description |
|---|---|
IfCondition() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
create(CharacterBuffer buffer,
TemplateParser parser,
LocalisationInterface customTemplate) |
|
ObjectCondition |
getExpression() |
|
ObjectCondition |
getFalse() |
|
java.lang.String |
getKey() |
|
java.lang.String[] |
getProperties() |
Gets the properties.
|
ParserCondition |
getSendableInstance(boolean prototyp) |
Gets the sendable instance.
|
ObjectCondition |
getTrue() |
|
java.lang.Object |
getValue(LocalisationInterface variables) |
|
java.lang.Object |
getValue(java.lang.Object entity,
java.lang.String attribute) |
Gets the value.
|
boolean |
isExpression() |
|
boolean |
setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type) |
Sets the value.
|
java.lang.String |
toString() |
|
boolean |
update(java.lang.Object evt) |
checks or notify this condition.
|
IfCondition |
withExpression(ObjectCondition value) |
|
IfCondition |
withFalse(ObjectCondition condition) |
|
IfCondition |
withKey(java.lang.String key) |
|
IfCondition |
withTrue(ObjectCondition condition) |
public static final java.lang.String TAG
public static final java.lang.String IFNOT
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 ParserCondition getSendableInstance(boolean prototyp)
SendableEntityCreatorgetSendableInstance in interface ParserConditiongetSendableInstance 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 operationpublic java.lang.Object getValue(LocalisationInterface variables)
getValue in interface ParserConditionpublic java.lang.String getKey()
getKey in interface ParserConditionpublic IfCondition withKey(java.lang.String key)
public void create(CharacterBuffer buffer, TemplateParser parser, LocalisationInterface customTemplate)
create in interface ParserConditionpublic boolean isExpression()
isExpression in interface ParserConditionpublic java.lang.String toString()
toString in class java.lang.Object