|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.validation.EMFEventType
public final class EMFEventType
An enumeration of named EMF event types. There are two types of EMF event
types. The first type correspond to the int
constants defined
by the Notification
interface in the EMF API. The second type
correspond to event types contributed through the eventTypes
extension point XML.
This enumeration assigns names corresponding to the event names
in the constraintProviders extension point XML.
Notification
,
Serialized FormField Summary | |
---|---|
static EMFEventType |
ADD
The EMF "Add" event (corresponds to Notification.ADD ). |
static EMFEventType |
ADD_MANY
The EMF "Add Many" event (corresponds to Notification.ADD_MANY ). |
static EMFEventType |
CREATE
A custom "Create" event, which is not implemented by EMF any longer but may be simulated by clients of the validation framework. |
static EMFEventType |
MOVE
The EMF "Move" event (corresponds to Notification.MOVE ). |
static EMFEventType |
NULL
This special value is a pointer-safe null value according to the Null Object pattern. |
static EMFEventType |
REMOVE
The EMF "Remove" event (corresponds to Notification.REMOVE ). |
static EMFEventType |
REMOVE_MANY
The EMF "Remove Many" event (corresponds to Notification.REMOVE_MANY ). |
static EMFEventType |
REMOVING_ADAPTER
The EMF "Removing Adapter" event (corresponds to Notification.REMOVING_ADAPTER ). |
static EMFEventType |
RESOLVE
The EMF "Resolve" event (corresponds to Notification.RESOLVE ). |
static EMFEventType |
SET
The EMF "Set" event (corresponds to Notification.SET ). |
static EMFEventType |
UNSET
The EMF "Unset" event (corresponds to Notification.UNSET ). |
Method Summary | |
---|---|
static void |
addEventType(String name,
boolean featureSpecific)
Adds a custom event type to the list of event types |
static List<EMFEventType> |
getAllInstances()
Obtains all values of the enumeration. |
static EMFEventType |
getInstance(int code)
Obtains the instance corresponding to the specified EMF notification type code . |
static EMFEventType |
getInstance(String name)
Obtains the name d instance. |
String |
getName()
Obtains my symbolic name. |
static List<EMFEventType> |
getPredefinedInstances()
Obtains all predefined values of the enumeration, that is, those who were not contributed through the extension point XML |
boolean |
isFeatureSpecific()
Queries whether I am an event that notifies for changes in features only. |
boolean |
isNull()
Queries whether I am the Null Object of this enumeration. |
int |
toNotificationType()
Converts me to the EMF Notification type code. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EMFEventType ADD
Notification.ADD
).
public static final EMFEventType ADD_MANY
Notification.ADD_MANY
).
public static final EMFEventType MOVE
Notification.MOVE
).
public static final EMFEventType REMOVE
Notification.REMOVE
).
public static final EMFEventType REMOVE_MANY
Notification.REMOVE_MANY
).
public static final EMFEventType SET
Notification.SET
).
public static final EMFEventType UNSET
Notification.UNSET
).
public static final EMFEventType RESOLVE
Notification.RESOLVE
).
public static final EMFEventType REMOVING_ADAPTER
Notification.REMOVING_ADAPTER
).
public static final EMFEventType CREATE
0
).
public static final EMFEventType NULL
Method Detail |
---|
public static EMFEventType getInstance(String name)
name
d instance.
name
- the name to retrieve (not case-sensitive)
NULL
if no matching
instance existspublic static EMFEventType getInstance(int code)
code
.
code
- the EMF Notification
type code
NULL
if
no matching instance existspublic static final List<EMFEventType> getAllInstances()
public static final List<EMFEventType> getPredefinedInstances()
public final String getName()
getInstance(java.lang.String)
public static void addEventType(String name, boolean featureSpecific)
name
- my namefeatureSpecific
- whether the event is specific to features only,
not to objects
IllegalArgumentException
- on attempt to define an event type with
a name that is already usedpublic final boolean isFeatureSpecific()
NULL
event type is not feature-specific.
false
if I can indicate a change in the state of
an object that is not feature-specific; true
, otherwisepublic boolean isNull()
null
pointers are never used with this type.
NULL
instancepublic int toNotificationType()
Notification
type code.
public String toString()
toString
in class Object
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |