GLS ShipIT 3.5.15 GLS ShipIT - REST services

gls_group/fpcs/v1/shipmentprocessing/types/LabelFormat.java
Go to the documentation of this file.
1
2 package eu.gls_group.fpcs.v1.shipmentprocessing.types;
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 PNG("PNG");
41 private final String value;
42
43 LabelFormat(String v) {
44 value = v;
45 }
46
47 public String value() {
48 return value;
49 }
50
51 public static LabelFormat fromValue(String v) {
52 for (LabelFormat c: LabelFormat.values()) {
53 if (c.value.equals(v)) {
54 return c;
55 }
56 }
57 throw new IllegalArgumentException(v);
58 }
59
60 }
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelFormat.value
String value()
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelFormat.java:47
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelFormat.fromValue
static LabelFormat fromValue(String v)
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelFormat.java:51
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelFormat
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelFormat.java:29
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelFormat.PDF
PDF
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelFormat.java:31