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