com.izforge.izpack.rules
Class VariableExistenceCondition

java.lang.Object
  extended by com.izforge.izpack.rules.Condition
      extended by 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

Field Summary
private static long serialVersionUID
           
private  java.lang.String variable
           
 
Fields inherited from class com.izforge.izpack.rules.Condition
id, installdata
 
Constructor Summary
VariableExistenceCondition()
           
 
Method Summary
 java.lang.String getVariable()
           
 boolean isTrue()
           
 void makeXMLData(IXMLElement conditionRoot)
          This element will be called by the RulesEngine to serialize the configuration of a condition into XML.
 void readFromXML(IXMLElement xmlcondition)
           
 void setVariable(java.lang.String variable)
           
 
Methods inherited from class com.izforge.izpack.rules.Condition
getDependenciesDetails, getId, getInstalldata, setId, setInstalldata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

variable

private java.lang.String variable
Constructor Detail

VariableExistenceCondition

public VariableExistenceCondition()
Method Detail

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