2 * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.openflowjava.protocol.impl.clients;
10 import javax.xml.bind.annotation.XmlEnum;
11 import javax.xml.bind.annotation.XmlEnumValue;
12 import javax.xml.bind.annotation.XmlType;
16 * <p>Java class for eventType.
18 @XmlType(name = "eventType")
20 public enum EventType {
22 @XmlEnumValue("sleepEvent")
23 SLEEP_EVENT("sleepEvent"),
24 @XmlEnumValue("waitForMessageEvent")
25 WAIT_FOR_MESSAGE_EVENT("waitForMessageEvent"),
26 @XmlEnumValue("sendEvent")
27 SEND_EVENT("sendEvent");
28 private final String value;
34 public String value() {
38 public static EventType fromValue(String v) {
39 for (EventType c: EventType.values()) {
40 if (c.value.equals(v)) {
44 throw new IllegalArgumentException(v);