summaryrefslogtreecommitdiffstats
path: root/sandbox/kgoodson/events/impl/src/main/java/org/apache/tuscany/sdo/impl/EventImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/kgoodson/events/impl/src/main/java/org/apache/tuscany/sdo/impl/EventImpl.java')
-rw-r--r--sandbox/kgoodson/events/impl/src/main/java/org/apache/tuscany/sdo/impl/EventImpl.java142
1 files changed, 142 insertions, 0 deletions
diff --git a/sandbox/kgoodson/events/impl/src/main/java/org/apache/tuscany/sdo/impl/EventImpl.java b/sandbox/kgoodson/events/impl/src/main/java/org/apache/tuscany/sdo/impl/EventImpl.java
new file mode 100644
index 0000000000..b1ae572f21
--- /dev/null
+++ b/sandbox/kgoodson/events/impl/src/main/java/org/apache/tuscany/sdo/impl/EventImpl.java
@@ -0,0 +1,142 @@
+package org.apache.tuscany.sdo.impl;
+
+import org.apache.tuscany.sdo.api.Event;
+import org.eclipse.emf.common.notify.Notification;
+
+import commonj.sdo.Property;
+
+
+public class EventImpl implements Event {
+
+ protected Notification emfEvent;
+ protected Object notifier;
+
+ public EventImpl(Notification notification)
+ {
+ this.emfEvent = notification;
+ }
+
+ public Object getNotifier()
+ {
+ return notifier == null ? emfEvent.getNotifier() : notifier;
+ }
+
+ public int getEventType()
+ {
+ return emfEvent.getEventType();
+ }
+
+
+ public Property getProperty()
+ {
+ return (Property)emfEvent.getFeature();
+ }
+
+ public Object getOldValue()
+ {
+ return emfEvent.getOldValue();
+ }
+
+ public Object getNewValue()
+ {
+ return emfEvent.getNewValue();
+ }
+
+ public boolean wasSet()
+ {
+ return emfEvent.wasSet();
+ }
+
+ public boolean isTouch()
+ {
+ return emfEvent.isTouch();
+ }
+
+ public int getPosition()
+ {
+ return emfEvent.getPosition();
+ }
+
+
+ public boolean getOldBooleanValue()
+ {
+ return emfEvent.getOldBooleanValue();
+ }
+
+ public boolean getNewBooleanValue()
+ {
+ return emfEvent.getNewBooleanValue();
+ }
+
+ public byte getOldByteValue()
+ {
+ return emfEvent.getOldByteValue();
+ }
+ public byte getNewByteValue()
+ {
+ return emfEvent.getNewByteValue();
+ }
+
+ public char getOldCharValue()
+ {
+ return emfEvent.getOldCharValue();
+ }
+ public char getNewCharValue()
+ {
+ return emfEvent.getNewCharValue();
+ }
+
+ public double getOldDoubleValue()
+ {
+ return emfEvent.getOldDoubleValue();
+ }
+ public double getNewDoubleValue()
+ {
+ return emfEvent.getNewDoubleValue();
+ }
+
+ public float getOldFloatValue()
+ {
+ return emfEvent.getOldFloatValue();
+ }
+ public float getNewFloatValue()
+ {
+ return emfEvent.getNewFloatValue();
+ }
+
+ public int getOldIntValue()
+ {
+ return emfEvent.getOldIntValue();
+ }
+ public int getNewIntValue()
+ {
+ return emfEvent.getNewIntValue();
+ }
+
+ public long getOldLongValue()
+ {
+ return emfEvent.getOldLongValue();
+ }
+ public long getNewLongValue()
+ {
+ return emfEvent.getNewLongValue();
+ }
+
+ public short getOldShortValue()
+ {
+ return emfEvent.getOldShortValue();
+ }
+ public short getNewShortValue()
+ {
+ return emfEvent.getNewShortValue();
+ }
+
+ public String getOldStringValue()
+ {
+ return emfEvent.getOldStringValue();
+ }
+ public String getNewStringValue()
+ {
+ return emfEvent.getNewStringValue();
+ }
+}