org.objectweb.kilim.model
Interface RuntimeAction

All Superinterfaces:
RuntimeElement
All Known Implementing Classes:
ComponentFactory.RTConstructor, ComponentFactory.RTMethod, ComponentFactory.RTNullElement, ComponentFactory.RTReference, ComponentFactory.RTSetter

public interface RuntimeAction
extends RuntimeElement

Author:
horn

Method Summary
 boolean checkAction(java.util.Stack exClude)
          returns whether an action can be performed without any new constructive action.
 void execute()
          executes the method, constructor, setter, getter implementing the RuntimeAction.
 java.lang.Object getEventSourceValue()
          gets the event source value (i.e.
 RuntimeElement getTarget()
          returns the target object.
 void setEventSourceValue(java.lang.Object aValue)
          sets the event source value (i.e.
 

Method Detail

execute

public void execute()
             throws KilimException
executes the method, constructor, setter, getter implementing the RuntimeAction.

Throws:
KilimException - : the exception is generated when the method is invoked on unbound references or on illegal elements.

checkAction

public boolean checkAction(java.util.Stack exClude)
                    throws KilimException
returns whether an action can be performed without any new constructive action.

Parameters:
exClude - is the stack of runtime element which are under evaluation (i.e. element in the process of a constructive action).
Returns:
boolean
Throws:
KilimException - :

getTarget

public RuntimeElement getTarget()
                         throws KilimException
returns the target object. This method has been introduced to deal with references.

Returns:
RuntimeSource
Throws:
KilimException - : generated when invoked on an uninitialized references.

setEventSourceValue

public void setEventSourceValue(java.lang.Object aValue)
                         throws KilimException
sets the event source value (i.e. the reference to the object being the current event source)..

Parameters:
aValue - : the value of the source.
Throws:
KilimException - : the exception is generated when the provided value is badly typed or when the component element is not bound

getEventSourceValue

public java.lang.Object getEventSourceValue()
                                     throws KilimException
gets the event source value (i.e. the reference to the object being the current event source)..

Returns:
Object : the reference of the trigger source.
Throws:
KilimException - : the exception is generated when the method is invoked on unbound references or on illegal elements.