com.izforge.izpack.rules
Class UserCondition

java.lang.Object
  extended by com.izforge.izpack.rules.Condition
      extended by com.izforge.izpack.rules.UserCondition
All Implemented Interfaces:
java.io.Serializable

public class UserCondition
extends Condition

Checks to see whether the user who is running the installer is the same as the user who should be running the installer.

Author:
J. Chris Folsom , Dennis Reil
See Also:
Serialized Form

Field Summary
private  java.lang.String requiredUsername
           
private static long serialVersionUID
           
 
Fields inherited from class com.izforge.izpack.rules.Condition
id, installdata
 
Constructor Summary
UserCondition()
           
 
Method Summary
 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)
           
 
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

requiredUsername

private java.lang.String requiredUsername
Constructor Detail

UserCondition

public UserCondition()
Method Detail

isTrue

public boolean isTrue()
Specified by:
isTrue in class Condition

readFromXML

public void readFromXML(IXMLElement xmlcondition)
Specified by:
readFromXML in class Condition

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