com.wrq.vhi.script.api
Class EventInfo

java.lang.Object
  extended by com.wrq.vhi.script.api.EventInfo

public class EventInfo
extends java.lang.Object

Immutable object that provides information about an event in progress.


Field Summary
static int ATTRIBUTE_EVENT
          Attribute event.
static int ENTITY_EVENT
          Entity event.
static int FIELD_EVENT
          Field event.
static int LIFECYCLE_EVENT
          Life cycle event.
static int MODEL_EVENT
          Model event.
static int OPERATION_EVENT
          Operation event.
static int PROCEDURE_EVENT
          Procedure event.
static int RECORDSET_EVENT
          Recordset event.
 
Constructor Summary
EventInfo(int type, java.lang.String className, java.lang.String methodName)
          Constructs a new EventInfo object.
 
Method Summary
 java.lang.String getClassName()
          Gets the name of the event handler class for the event.
 int getHandlerType()
          Gets the event handler type.
 java.lang.String getMethodName()
          Gets the name of the method on the event handler class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_EVENT

public static final int ATTRIBUTE_EVENT
Attribute event.


ENTITY_EVENT

public static final int ENTITY_EVENT
Entity event.


LIFECYCLE_EVENT

public static final int LIFECYCLE_EVENT
Life cycle event.


MODEL_EVENT

public static final int MODEL_EVENT
Model event.


OPERATION_EVENT

public static final int OPERATION_EVENT
Operation event.


PROCEDURE_EVENT

public static final int PROCEDURE_EVENT
Procedure event.


RECORDSET_EVENT

public static final int RECORDSET_EVENT
Recordset event.


FIELD_EVENT

public static final int FIELD_EVENT
Field event.

Constructor Detail

EventInfo

public EventInfo(int type,
                 java.lang.String className,
                 java.lang.String methodName)
Constructs a new EventInfo object.

Parameters:
type -
className -
methodName -
Method Detail

getHandlerType

public int getHandlerType()
Gets the event handler type.

Returns:
one of the following constants:

getClassName

public java.lang.String getClassName()
Gets the name of the event handler class for the event.

Returns:
the class name

getMethodName

public java.lang.String getMethodName()
Gets the name of the method on the event handler class.

Returns:
the method name