com.izforge.izpack.rules
Class VariableExistenceCondition
java.lang.Object
com.izforge.izpack.rules.Condition
com.izforge.izpack.rules.VariableExistenceCondition
- All Implemented Interfaces:
- java.io.Serializable
public class VariableExistenceCondition
- extends Condition
This condition checks if a certain variable has a value. If it is not
in the current list of variables it will evaluate to false.
- Author:
- Dennis Reil,
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
variable
private java.lang.String variable
VariableExistenceCondition
public VariableExistenceCondition()
isTrue
public boolean isTrue()
- Specified by:
isTrue in class Condition
readFromXML
public void readFromXML(IXMLElement xmlcondition)
- Specified by:
readFromXML in class Condition
getVariable
public java.lang.String getVariable()
setVariable
public void setVariable(java.lang.String variable)
makeXMLData
public void makeXMLData(IXMLElement conditionRoot)
- Description copied from class:
Condition
- This element will be called by the RulesEngine to serialize the configuration
of a condition into XML.
- Specified by:
makeXMLData in class Condition
- Parameters:
conditionRoot - the root element for this condition