org.eclipse.emf.emfstore.internal.client.model.changeTracking.notification.recording
Class NotificationRecording

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.model.changeTracking.notification.recording.NotificationRecording

public class NotificationRecording
extends Object

A NotificationRecording is basically a list of EMF Notifications.

Author:
chodnick

Constructor Summary
NotificationRecording()
           
 
Method Summary
 List<NotificationInfo> asMutableList()
          Use to change the contents of the recording dynamically.
 boolean empty()
           
 Date getDate()
           
 NotificationRecordingHint getHint()
           
 NotificationInfo getLastRecorded()
           
 void record(org.eclipse.emf.common.notify.Notification n)
           
 void setDate(Date date)
           
 void setHint(NotificationRecordingHint hint)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationRecording

public NotificationRecording()
Method Detail

getHint

public NotificationRecordingHint getHint()
Returns:
currently set hint

setHint

public void setHint(NotificationRecordingHint hint)
Parameters:
hint - the hint to set

setDate

public void setDate(Date date)
Parameters:
date - the date to set

getDate

public Date getDate()
Returns:
the date

record

public void record(org.eclipse.emf.common.notify.Notification n)
Parameters:
n - the notification to add to the recording

getLastRecorded

public NotificationInfo getLastRecorded()
Returns:
the last recorded notification or null if the recording is empty

empty

public boolean empty()
Returns:
if the recording is empty

asMutableList

public List<NotificationInfo> asMutableList()
Use to change the contents of the recording dynamically. For example in filters.

Returns:
a mutable internal representation of the notifcations


Copyright © 2015. All Rights Reserved.