Integrate OpenFlowJava into OpenFlowPlugin build
[openflowplugin.git] / samples / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / EventType.java
diff --git a/samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/EventType.java b/samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/EventType.java
new file mode 100644 (file)
index 0000000..2b7440f
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+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);
+    }
+
+}