/* * 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; /** * 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 val) { value = val; } public String value() { return value; } public static EventType fromValue(String val) { for (EventType c: EventType.values()) { if (c.value.equals(val)) { return c; } } throw new IllegalArgumentException(val); } }