GLS ShipIT 5.1.4 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
28 @XmlType(name = "LabelFormat")
29 @XmlEnum
30 public 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 }
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelFormat.value
String value()
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelFormat.java:49
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelFormat.fromValue
static LabelFormat fromValue(String v)
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelFormat.java:53
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelFormat
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelFormat.java:30
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelFormat.PDF
PDF
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelFormat.java:32