org.eclipse.emf.validation.service
Class EventTypeService

java.lang.Object
  extended by org.eclipse.emf.validation.service.EventTypeService

public class EventTypeService
extends Object

The Event Type Service is responsible for loading the eventTypes Eclipse extension point and creating EMFEventTypes for the event types that have been contributed. It provides accessor methods for retrieving INotificationGenerators that have been contributed along with the EMFEventTypes.

Since:
1.1

Method Summary
 void configureEventTypes(IConfigurationElement[] elements)
           Configures event types from the Eclipse configuration elements representing implementations of my extension point.
static EventTypeService getInstance()
          Obtains the instance of this class.
 INotificationGenerator getNotificationGenerator(String eventName)
          Retrieves the INotificationGenerator associated with the given event name.
 Collection getNotificationGenerators()
          Retrieves the available notification generators.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EventTypeService getInstance()
Obtains the instance of this class.

Returns:
the Singleton instance

configureEventTypes

public void configureEventTypes(IConfigurationElement[] elements)

Configures event types from the Eclipse configuration elements representing implementations of my extension point.

NOTE that this method should only be called by the EMF Model Validation Plug-in, not by any client code!

Parameters:
elements -

getNotificationGenerators

public Collection getNotificationGenerators()
Retrieves the available notification generators.

Returns:
collection of notification generators

getNotificationGenerator

public INotificationGenerator getNotificationGenerator(String eventName)
Retrieves the INotificationGenerator associated with the given event name.

Parameters:
eventName -
Returns:
notification generator associated with the given event name, null otherwise

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.