GLS ShipIT
GLS ShipIT - REST services
 All Classes Namespaces Files Functions Variables Enumerator Pages
LabelDescription.java
Go to the documentation of this file.
1 
2 package eu.glsgroup.fpcs.datatypes.soap.v1.shipmentprocessing;
3 
4 import javax.xml.bind.annotation.XmlEnum;
5 import javax.xml.bind.annotation.XmlEnumValue;
6 import javax.xml.bind.annotation.XmlType;
7 
8 
24 @XmlType(name = "LabelDescription")
25 @XmlEnum
26 public enum LabelDescription {
27 
28  @XmlEnumValue("Delivery")
29  DELIVERY("Delivery"),
30  @XmlEnumValue("Return")
31  RETURN("Return");
32  private final String value;
33 
34  LabelDescription(String v) {
35  value = v;
36  }
37 
38  public String value() {
39  return value;
40  }
41 
42  public static LabelDescription fromValue(String v) {
43  for (LabelDescription c: LabelDescription.values()) {
44  if (c.value.equals(v)) {
45  return c;
46  }
47  }
48  throw new IllegalArgumentException(v);
49  }
50 
51 }