package be.cin.mycarenet._1_0.carenet.types;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

@XmlType(
   name = "EventType"
)
@XmlEnum
public enum EventType {
   @XmlEnumValue("changeDuring")
   CHANGE_DURING("changeDuring"),
   @XmlEnumValue("multiple")
   MULTIPLE("multiple"),
   @XmlEnumValue("closedBefore")
   CLOSED_BEFORE("closedBefore"),
   @XmlEnumValue("startLater")
   START_LATER("startLater");

   private final String value;

   private EventType(String v) {
      this.value = v;
   }

   public String value() {
      return this.value;
   }

   public static EventType fromValue(String v) {
      EventType[] arr$ = values();
      int len$ = arr$.length;

      for(int i$ = 0; i$ < len$; ++i$) {
         EventType c = arr$[i$];
         if (c.value.equals(v)) {
            return c;
         }
      }

      throw new IllegalArgumentException(v);
   }
}
