com.izforge.izpack.rules
Class JavaCondition

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

public class JavaCondition
extends Condition

A condition based on the value of a static java field or static java method.

Author:
Dennis Reil,
See Also:
Serialized Form

Field Summary
protected  java.lang.String classname
           
protected  boolean complete
           
protected  java.lang.String fieldname
           
protected  java.lang.String methodname
           
protected  java.lang.String returnvalue
           
protected  java.lang.String returnvaluetype
           
private static long serialVersionUID
           
protected  java.lang.Class usedclass
           
protected  java.lang.reflect.Field usedfield
           
protected  java.lang.reflect.Method usedmethod
           
 
Fields inherited from class com.izforge.izpack.rules.Condition
id, installdata
 
Constructor Summary
JavaCondition()
           
 
Method Summary
 java.lang.String getDependenciesDetails()
           
 boolean isTrue()
           
private  boolean isTrue(java.util.Properties variables)
           
 void readFromXML(XMLElement xmlcondition)
           
 
Methods inherited from class com.izforge.izpack.rules.Condition
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

classname

protected java.lang.String classname

methodname

protected java.lang.String methodname

fieldname

protected java.lang.String fieldname

complete

protected boolean complete

returnvalue

protected java.lang.String returnvalue

returnvaluetype

protected java.lang.String returnvaluetype

usedclass

protected java.lang.Class usedclass

usedfield

protected java.lang.reflect.Field usedfield

usedmethod

protected java.lang.reflect.Method usedmethod
Constructor Detail

JavaCondition

public JavaCondition()
Method Detail

isTrue

private boolean isTrue(java.util.Properties variables)

readFromXML

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

isTrue

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

getDependenciesDetails

public java.lang.String getDependenciesDetails()
Overrides:
getDependenciesDetails in class Condition