com.jaxfront.core.rule
Interface Condition

All Known Implementing Classes:
DummyCondition

public interface Condition

A condition Interface for any user defined condition. The method isTrue() will be called to check if a condition is true for the passing type.

Version:
1.60
See Also:
ConditionExpression

Method Summary
 boolean doesConcern(Type checkType)
          Returns true if the submitted type does concern the condition.
 boolean isTrue(Type source)
          Returns if a condition is true.
 void setSourceType(Type sourceType)
          Sets the source type (the holder) of the condition.
 

Method Detail

isTrue

boolean isTrue(Type source)
               throws FormulaException
Returns if a condition is true. If an error occurred during parsing a formulaExpression, an exception will be thrown.

Parameters:
source - source of initializer
Throws:
FormulaException

doesConcern

boolean doesConcern(Type checkType)
Returns true if the submitted type does concern the condition.

Parameters:
checkType - type which may concern this condition

setSourceType

void setSourceType(Type sourceType)
Sets the source type (the holder) of the condition.

Parameters:
sourceType - the holder of the condition