GLS ShipIT 4.0.f2
GLS ShipIT - REST services
Loading...
Searching...
No Matches
gls_group/fpcs/v1/shipmentprocessing/types/LabelFormat.java
Go to the documentation of this file.
1
2package eu.gls_group.fpcs.v1.shipmentprocessing.types;
3
4import javax.xml.bind.annotation.XmlEnum;
5import javax.xml.bind.annotation.XmlEnumValue;
6import javax.xml.bind.annotation.XmlType;
7
8
28@XmlType(name = "LabelFormat")
29@XmlEnum
30public enum LabelFormat {
31
32 PDF("PDF"),
33 @XmlEnumValue("Zebra")
34 ZEBRA("Zebra"),
35 @XmlEnumValue("Intermec")
36 INTERMEC("Intermec"),
37 @XmlEnumValue("Datamax")
38 DATAMAX("Datamax"),
39 @XmlEnumValue("Toshiba")
40 TOSHIBA("Toshiba"),
41 PNG("PNG"),
42 PNG_200("PNG_200");
43 private final String value;
44
45 LabelFormat(String v) {
46 value = v;
47 }
48
49 public String value() {
50 return value;
51 }
52
53 public static LabelFormat fromValue(String v) {
54 for (LabelFormat c: LabelFormat.values()) {
55 if (c.value.equals(v)) {
56 return c;
57 }
58 }
59 throw new IllegalArgumentException(v);
60 }
61
62}