org.eclipse.ocl.examples.eventmanager.framework
Class ListenerTypeEnum

java.lang.Object
  extended by org.eclipse.ocl.examples.eventmanager.framework.ListenerTypeEnum

public class ListenerTypeEnum
extends java.lang.Object

This class is used to describe the type of a listener. There are 4 supported listener types:

These types can be combined if a listener wants to implement multiple roles.

Author:
Daniel Vocke (d044825)

Field Summary
static java.util.Collection<ListenerTypeEnum> allListenerTypes
           
static ListenerTypeEnum postChange
           
static ListenerTypeEnum postCommit
           
static ListenerTypeEnum preChange
           
static ListenerTypeEnum preCommit
           
 
Constructor Summary
ListenerTypeEnum(ListenerTypeEnum... listenerTypes)
           
 
Method Summary
 boolean matches(ListenerTypeEnum other)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

preChange

public static final ListenerTypeEnum preChange

postChange

public static final ListenerTypeEnum postChange

preCommit

public static final ListenerTypeEnum preCommit

postCommit

public static final ListenerTypeEnum postCommit

allListenerTypes

public static final java.util.Collection<ListenerTypeEnum> allListenerTypes
Constructor Detail

ListenerTypeEnum

public ListenerTypeEnum(ListenerTypeEnum... listenerTypes)
Method Detail

matches

public boolean matches(ListenerTypeEnum other)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object