|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.rule.AbstractCondition
com.jaxfront.core.rule.ConditionExpression
public class ConditionExpression
Default implementation of the condition interface. This condition evaluates a formula expression to figure out if it is true. A condition class name may be provided for additional condition checks. This class has to implement the Condition interface.
FormulaExpression
,
Serialized FormConstructor Summary | |
---|---|
ConditionExpression(int id,
Document DOM,
Type source,
Type xuiCondition)
Creates a condition expression based on a document, a source type and a xuiCondition which defines a formula expression. |
Method Summary | |
---|---|
java.lang.Object |
clone(Type newSourceType)
|
boolean |
doesConcern(Type sourceType)
Returns true if any change in the submitted sourceType concerns this condition. |
FormulaExpression |
getFormulaExpression()
|
static java.lang.Class |
initUserClass(java.lang.String className)
Initializes a user condition and returns a class instance if it is valid. |
boolean |
isTrue(Type source,
java.lang.Object event)
A formulaExpression gets evaluated followed by user defined condition class (if available). |
boolean |
isUsingUserClass()
Indicates if an additional valid user condition class exists. |
void |
release()
Releases all allocated resources of this condition. |
java.lang.String |
toString()
|
Methods inherited from class com.jaxfront.core.rule.AbstractCondition |
---|
getMessage, getSource, isShowingError, isUsingDefaultToggle, setSource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConditionExpression(int id, Document DOM, Type source, Type xuiCondition)
DOM
- target documentsource
- holder of this conditionxuiCondition
- xui definition holding a formulaExpressionMethod Detail |
---|
public boolean doesConcern(Type sourceType)
sourceType
- type which may concern this conditionpublic static java.lang.Class initUserClass(java.lang.String className)
className
- representing an implementation class for the condition interfacepublic boolean isTrue(Type source, java.lang.Object event) throws FormulaException
event
- TODO
FormulaException
public boolean isUsingUserClass()
public void release()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone(Type newSourceType)
public FormulaExpression getFormulaExpression()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |