GLS ShipIT  2.8.11
GLS ShipIT - REST services
LabelFormat.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 
26 @XmlType(name = "LabelFormat")
27 @XmlEnum
28 public enum LabelFormat {
29 
30  PDF("PDF"),
31  @XmlEnumValue("Zebra")
32  ZEBRA("Zebra"),
33  @XmlEnumValue("Intermec")
34  INTERMEC("Intermec"),
35  @XmlEnumValue("Datamax")
36  DATAMAX("Datamax"),
37  @XmlEnumValue("Toshiba")
38  TOSHIBA("Toshiba");
39  private final String value;
40 
41  LabelFormat(String v) {
42  value = v;
43  }
44 
45  public String value() {
46  return value;
47  }
48 
49  public static LabelFormat fromValue(String v) {
50  for (LabelFormat c: LabelFormat.values()) {
51  if (c.value.equals(v)) {
52  return c;
53  }
54  }
55  throw new IllegalArgumentException(v);
56  }
57 
58 }