org.eclipse.actf.validation.core
Class ExecutionPoint

java.lang.Object
  extended by org.eclipse.actf.validation.core.ExecutionPoint
Direct Known Subclasses:
EventExecutionPoint, MethodExecutionPoint

public abstract class ExecutionPoint
extends Object

base implementation for an execution point, a point of execution of the validated application at which a validation is to be triggered. Clients will typically not create instances of this class but, rather, leave instantiation to generated classes that handle or intercept invocations or events that are to trigger validations or to the < code>ValidationProcessManager. Execution points might include method invokations, a GUI component becomming focused, a top-level window becomming visible or being created, a property change, etc.

Note: The API for this class and its subclasses are not stable.

Author:
Mike Squillace

Field Summary
protected  String name
           
protected  Object target
           
protected  String validatorClassName
           
 
Constructor Summary
ExecutionPoint(String name, String validatorClassName, Object target)
          create an execution point for triggering validation processes.
 
Method Summary
abstract  ExecutionPoint cloneExecutionPoint(String name, String validator, ExecutionPoint execPoint)
          return an ExecutionPoint of the same type but with a different name and validator class name.
 String getName()
           
 Object getTarget()
           
 String getValidatorClassName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected Object target

validatorClassName

protected String validatorClassName

name

protected String name
Constructor Detail

ExecutionPoint

public ExecutionPoint(String name,
                      String validatorClassName,
                      Object target)
create an execution point for triggering validation processes. Clients do not typically instantiate this class but, rather, leave its instantiation to methods or event-handlers that have been set to trigger validations in the rule base or to the ValidationProcessManager based upon an ExecutionPointDescriptor.

Parameters:
name - - name of this execution point
validatorClassName - - validator class that registered this execution point
target - - receiver at the point of execution (i.e. the object that initiated the invocation or event)
Method Detail

getTarget

public Object getTarget()
Returns:
target

getValidatorClassName

public String getValidatorClassName()
Returns:
validator class name that caused this point to be a trigger

getName

public String getName()
Returns:
name of this execution point

cloneExecutionPoint

public abstract ExecutionPoint cloneExecutionPoint(String name,
                                                   String validator,
                                                   ExecutionPoint execPoint)
return an ExecutionPoint of the same type but with a different name and validator class name. This is typically used in the Validation loop where we have a child class of a component that has a different model than the parent.

Parameters:
name -
validator -
execPoint -
Returns:
a clone of this execution point