1 17 package org.eclipse.emf.common.notify; 18 19 20 24 public class NotificationWrapper implements Notification 25 { 26 29 protected Notification notification; 30 31 34 protected Object notifier; 35 36 39 public NotificationWrapper(Notification notification) 40 { 41 this.notification = notification; 42 } 43 44 47 public NotificationWrapper(Object notifier, Notification notification) 48 { 49 this.notifier = notifier; 50 this.notification = notification; 51 } 52 53 57 public Object getNotifier() 58 { 59 return notifier == null ? notification.getNotifier() : notifier; 60 } 61 62 66 public int getEventType() 67 { 68 return notification.getEventType(); 69 } 70 71 75 public int getFeatureID(Class expectedClass) 76 { 77 return notification.getFeatureID(expectedClass); 78 } 79 80 84 public Object getFeature() 85 { 86 return notification.getFeature(); 87 } 88 89 93 public Object getOldValue() 94 { 95 return notification.getOldValue(); 96 } 97 98 102 public Object getNewValue() 103 { 104 return notification.getNewValue(); 105 } 106 107 111 public boolean wasSet() 112 { 113 return notification.wasSet(); 114 } 115 116 120 public boolean isTouch() 121 { 122 return notification.isTouch(); 123 } 124 125 129 public boolean isReset() 130 { 131 return notification.isReset(); 132 } 133 134 138 public int getPosition() 139 { 140 return notification.getPosition(); 141 } 142 143 147 public boolean merge(Notification notification) 148 { 149 return notification.merge(notification); 150 } 151 152 156 public boolean getOldBooleanValue() 157 { 158 return notification.getOldBooleanValue(); 159 } 160 161 165 public boolean getNewBooleanValue() 166 { 167 return notification.getNewBooleanValue(); 168 } 169 170 174 public byte getOldByteValue() 175 { 176 return notification.getOldByteValue(); 177 } 178 179 183 public byte getNewByteValue() 184 { 185 return notification.getNewByteValue(); 186 } 187 188 192 public char getOldCharValue() 193 { 194 return notification.getOldCharValue(); 195 } 196 197 201 public char getNewCharValue() 202 { 203 return notification.getNewCharValue(); 204 } 205 206 210 public double getOldDoubleValue() 211 { 212 return notification.getOldDoubleValue(); 213 } 214 215 219 public double getNewDoubleValue() 220 { 221 return notification.getNewDoubleValue(); 222 } 223 224 228 public float getOldFloatValue() 229 { 230 return notification.getOldFloatValue(); 231 } 232 233 237 public float getNewFloatValue() 238 { 239 return notification.getNewFloatValue(); 240 } 241 242 246 public int getOldIntValue() 247 { 248 return notification.getOldIntValue(); 249 } 250 251 255 public int getNewIntValue() 256 { 257 return notification.getNewIntValue(); 258 } 259 260 264 public long getOldLongValue() 265 { 266 return notification.getOldLongValue(); 267 } 268 269 273 public long getNewLongValue() 274 { 275 return notification.getNewLongValue(); 276 } 277 278 282 public short getOldShortValue() 283 { 284 return notification.getOldShortValue(); 285 } 286 287 291 public short getNewShortValue() 292 { 293 return notification.getNewShortValue(); 294 } 295 296 300 public String getOldStringValue() 301 { 302 return notification.getOldStringValue(); 303 } 304 305 309 public String getNewStringValue() 310 { 311 return notification.getNewStringValue(); 312 } 313 } 314 | Popular Tags |