Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Object value)
Evalutes whether or not the value is valid according to this condition.
|
String |
getEqual()
Gets the value of which the condition must be equal.
|
String |
getId()
Gets the id of the prompt to which this condition applies.
|
String |
getNotEqual()
Gets the value of which the condition must not be equal.
|
Map<String,Object> |
getProperties()
Gets all properties to set for this condition.
|
void |
setEqual(String equal)
Sets the value of which the condition must be equal.
|
void |
setId(String id)
Sets the id of the prompt to which this condition applies.
|
void |
setNotEqual(String notEqual)
Sets the value of which the condition must not be equal.
|
void |
setPresent(boolean present)
Sets whether or not the condition must be present.
|
void |
setProperty(String id,
String value,
String type)
Sets the value of the property in the template context
with the given
id to have the given value
if this condition is true. |
String |
toString() |
public Condition()
public String getId()
public void setId(String id)
id
- The id to set.public void setProperty(String id, String value, String type)
id
to have the given value
if this condition is true.id
- the identifier of the prompt.value
- the value to give the prompt.type
- the fully qualified type name.public Map<String,Object> getProperties()
public String getEqual()
public void setEqual(String equal)
equal
- The equal to set.public String getNotEqual()
public void setNotEqual(String notEqual)
notEqual
- The notEqual to set.public void setPresent(boolean present)
present
- The present to set.public boolean evaluate(Object value)
value
- the value to evaluate.public String toString()
toString
in class Object
Object.toString()
Copyright © 2005–2014 AndroMDA.org. All rights reserved.