Scenarios in XML files
[openflowjava.git] / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / EventType.java
diff --git a/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/EventType.java b/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/EventType.java
new file mode 100644 (file)
index 0000000..ff83c6b
--- /dev/null
@@ -0,0 +1,41 @@
+
+package org.opendaylight.openflowjava.protocol.impl.clients;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for eventType.
+ */
+@XmlType(name = "eventType")
+@XmlEnum
+public enum EventType {
+
+    @XmlEnumValue("sleepEvent")
+    SLEEP_EVENT("sleepEvent"),
+    @XmlEnumValue("waitForMessageEvent")
+    WAIT_FOR_MESSAGE_EVENT("waitForMessageEvent"),
+    @XmlEnumValue("sendEvent")
+    SEND_EVENT("sendEvent");
+    private final String value;
+
+    EventType(String v) {
+        value = v;
+    }
+
+    public String value() {
+        return value;
+    }
+
+    public static EventType fromValue(String v) {
+        for (EventType c: EventType.values()) {
+            if (c.value.equals(v)) {
+                return c;
+            }
+        }
+        throw new IllegalArgumentException(v);
+    }
+
+}