org.eclipse.actf.validation.core
Class EventExecutionPointTarget

java.lang.Object
  extended by org.eclipse.actf.validation.core.ExecutionPointTarget
      extended by org.eclipse.actf.validation.core.EventExecutionPointTarget

public class EventExecutionPointTarget
extends ExecutionPointTarget

The concrete class for the description of a single event execution point target at which validations are to be triggered. This specialized class defines the event listener class and method name to be used when the method execution point class is generated.

Author:
John Buslawski
See Also:
EventExecutionPointTarget(String, String, String, boolean)

Field Summary
protected  String listenerName
           
protected  String methodName
           
 
Fields inherited from class org.eclipse.actf.validation.core.ExecutionPointTarget
isPointcutExpression, isPolymorphic, targetClassName, type
 
Constructor Summary
EventExecutionPointTarget(String targetClassName, String listenerName, String methodName, boolean polymorphic)
          Create event-based execution point target.
 
Method Summary
 String getListenerName()
           
 String getMethodName()
           
 void printTarget(int indent)
           
 void setListenerName(String listenerName)
           
 void setMethodName(String methodName)
           
 
Methods inherited from class org.eclipse.actf.validation.core.ExecutionPointTarget
getPolymorphic, getTargetClassName, getType, isPointcutExpression, setPolymorphic, setTargetClassName, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerName

protected String listenerName

methodName

protected String methodName
Constructor Detail

EventExecutionPointTarget

public EventExecutionPointTarget(String targetClassName,
                                 String listenerName,
                                 String methodName,
                                 boolean polymorphic)
Create event-based execution point target. The target class name is the name of the class that will trigger the generation of the containing execution point and start the validation. Execution point targets can be polymorphic and apply to other classes in the target class hierarchy or just to that specific target class. Event-based execution points define the name of the listener class and the method on that listener on which the containing execution point will be generated.

Parameters:
targetClassName - - name of class whose instances are to be captured
listenerName - - name of the listener
methodName - - listener method at which an execution point is formed
polymorphic - - determines if this execution point target applies to other classes in the target's hierarchy
Method Detail

getMethodName

public String getMethodName()
Returns:
name of method whose invocation triggers a validation

setMethodName

public void setMethodName(String methodName)
Parameters:
methodName - - name of method whose invocation triggers a validation

getListenerName

public String getListenerName()
Returns:
names of types for a method whose invocation triggers a validation

setListenerName

public void setListenerName(String listenerName)

printTarget

public void printTarget(int indent)