GLS ShipIT  3.3.20
GLS ShipIT - REST services
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 
23 @XmlType(name = "LabelDescription")
24 @XmlEnum
25 public enum LabelDescription {
26 
27  @XmlEnumValue("Delivery")
28  DELIVERY("Delivery"),
29  @XmlEnumValue("Return")
30  RETURN("Return");
31  private final String value;
32 
33  LabelDescription(String v) {
34  value = v;
35  }
36 
37  public String value() {
38  return value;
39  }
40 
41  public static LabelDescription fromValue(String v) {
42  for (LabelDescription c: LabelDescription.values()) {
43  if (c.value.equals(v)) {
44  return c;
45  }
46  }
47  throw new IllegalArgumentException(v);
48  }
49 
50 }