com.jaxfront.core.rule
Interface IAction

All Known Implementing Classes:
AbstractAction, ActionImpl, JavaAction, ModelAction, UIAction

public interface IAction


Field Summary
static int TYPE_ABSTRACT
           
static int TYPE_FORMULA
           
static int TYPE_JAVA
           
static int TYPE_MODEL
           
static int TYPE_UI
           
 
Method Summary
 int getActionType()
           
 FormulaExpression getExpression()
           
 AbstractAction getInverseAction()
          Returns the definde inverse action.
 Type getSource()
           
 void perform(Type eventSource)
          Performs any kind of action command.
 void perform(Type eventSource, boolean isTemporary)
          Performs an action on all target types.
 void perform(Type eventSource, boolean b, java.util.Stack callStack)
           
 void performInverse(Type eventSource, java.util.Stack callStack)
           
 void release()
           
 void setSource(Type sourceType)
           
 

Field Detail

TYPE_ABSTRACT

static final int TYPE_ABSTRACT
See Also:
Constant Field Values

TYPE_FORMULA

static final int TYPE_FORMULA
See Also:
Constant Field Values

TYPE_JAVA

static final int TYPE_JAVA
See Also:
Constant Field Values

TYPE_MODEL

static final int TYPE_MODEL
See Also:
Constant Field Values

TYPE_UI

static final int TYPE_UI
See Also:
Constant Field Values
Method Detail

getActionType

int getActionType()
Returns:
the action type 0 = Abstract Action, 1 = ModelAction, 2 = Formula Action ,3 = UI Action, 4 = Java Action ;

getExpression

FormulaExpression getExpression()
Returns:
formula expression if exist, null otherwise. Needed to evaluate referenced nodes

getInverseAction

AbstractAction getInverseAction()
Returns the definde inverse action.


getSource

Type getSource()

perform

void perform(Type eventSource)
             throws RuleInvocationException
Performs any kind of action command.

Throws:
RuleInvocationException

perform

void perform(Type eventSource,
             boolean isTemporary)
             throws RuleInvocationException
Performs an action on all target types.

Parameters:
isTemporary - saying if this action is not completed yet
Throws:
RuleInvocationException

perform

void perform(Type eventSource,
             boolean b,
             java.util.Stack callStack)
             throws RuleInvocationException
Throws:
RuleInvocationException

performInverse

void performInverse(Type eventSource,
                    java.util.Stack callStack)
                    throws RuleInvocationException
Throws:
RuleInvocationException

release

void release()

setSource

void setSource(Type sourceType)