EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ui.internal.editor
Class DefaultPatternModificationNotification

java.lang.Object
  extended by org.eclipse.egf.pattern.ui.internal.editor.DefaultPatternModificationNotification
All Implemented Interfaces:
IPatternModificationNotification

public class DefaultPatternModificationNotification
extends Object
implements IPatternModificationNotification


Field Summary
 
Fields inherited from interface org.eclipse.egf.pattern.ui.internal.editor.IPatternModificationNotification
ADDED, REMOVED, RENAMED, SAVED, SET
 
Constructor Summary
DefaultPatternModificationNotification()
           
 
Method Summary
static DefaultPatternModificationNotification createNotification(int eventType_p, Object notifier_p, Object oldValue_p, Object newValue_p)
          Create a new notification.
 int getEventType()
          Get the type of change that has occurred.
 Object getNewValue()
          Get the new value after the change occurred.
 Object getNotifier()
          Get the object affected by the change.
 Object getOldValue()
          Get the value before the change occurred.
 PatternHandler.PatternData getPatternData()
          Get pattern data scope attached to the event.
 void setEventType(int type_p)
          Set the type of change that has occurred.
 void setNewValue(Object newValue_p)
          Set the new value implied by the change.
 void setNotifier(Object notifier_p)
          Set the object affected by the change.
 void setOldValue(Object oldValue_p)
          Set the value before the change occurred.
 void setPatternData(PatternHandler.PatternData patternData_p)
          Set pattern data scope for this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPatternModificationNotification

public DefaultPatternModificationNotification()
Method Detail

setEventType

public void setEventType(int type_p)
Set the type of change that has occurred.
The valid types of events are defined by the constants in this class.

Parameters:
type_p - the type of change that has occurred.

getEventType

public int getEventType()
Description copied from interface: IPatternModificationNotification
Get the type of change that has occurred.
The valid types of events are defined by the constants in this class.

Specified by:
getEventType in interface IPatternModificationNotification
Returns:
the type of change that has occurred.
See Also:
IPatternModificationNotification.getEventType()

setNewValue

public void setNewValue(Object newValue_p)
Set the new value implied by the change.
The type of the value depends on the notifier and the event types.

Parameters:
newValue_p - The new value.

getNewValue

public Object getNewValue()
Description copied from interface: IPatternModificationNotification
Get the new value after the change occurred.
The type of the value depends on the notifier and the event types.

Specified by:
getNewValue in interface IPatternModificationNotification
Returns:
See Also:
IPatternModificationNotification.getNewValue()

setNotifier

public void setNotifier(Object notifier_p)
Set the object affected by the change.
There might be none, in case of shared values modification for instance.

Parameters:
notifier_p - null to reset.

getNotifier

public Object getNotifier()
Description copied from interface: IPatternModificationNotification
Get the object affected by the change.
There might be none, in case of shared values modification for instance.

Specified by:
getNotifier in interface IPatternModificationNotification
Returns:
null if no affected object could be provided.
See Also:
IPatternModificationNotification.getNotifier()

setOldValue

public void setOldValue(Object oldValue_p)
Set the value before the change occurred.
The type of the value depends on the notifier and the event types.

Parameters:
oldValue_p - The value before the change occurred.

getOldValue

public Object getOldValue()
Description copied from interface: IPatternModificationNotification
Get the value before the change occurred.
The type of the value depends on the notifier and the event types.

Specified by:
getOldValue in interface IPatternModificationNotification
Returns:
See Also:
IPatternModificationNotification.getOldValue()

setPatternData

public void setPatternData(PatternHandler.PatternData patternData_p)
Set pattern data scope for this event.

Parameters:
patternData_p -

getPatternData

public PatternHandler.PatternData getPatternData()
Description copied from interface: IPatternModificationNotification
Get pattern data scope attached to the event.

Specified by:
getPatternData in interface IPatternModificationNotification
Returns:
See Also:
IPatternModificationNotification.getPatternData()

createNotification

public static DefaultPatternModificationNotification createNotification(int eventType_p,
                                                                        Object notifier_p,
                                                                        Object oldValue_p,
                                                                        Object newValue_p)
Create a new notification.

Parameters:
eventType_p -
notifier_p -
oldValue_p -
newValue_p -
Returns:

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.