org.eclipse.actf.validation.core
Class ExecutionPoint
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
target
protected Object target
validatorClassName
protected String validatorClassName
name
protected String name
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 pointvalidatorClassName
- - validator class that registered this execution pointtarget
- - receiver at the point of execution (i.e. the object that
initiated the invocation or event)
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