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()
           
 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
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

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

getDependenciesDetails

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