GLS ShipIT 4.0.f2
GLS ShipIT - REST services
Loading...
Searching...
No Matches
gls_group/fpcs/v1/shipmentprocessing/types/LabelDescription.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
23@XmlType(name = "LabelDescription")
24@XmlEnum
25public enum LabelDescription {
26
27 @XmlEnumValue("Delivery")
28 DELIVERY("Delivery"),
29 @XmlEnumValue("Return")
30 RETURN("Return");
31 private final String value;
32
33 LabelDescription(String v) {
34 value = v;
35 }
36
37 public String value() {
38 return value;
39 }
40
41 public static LabelDescription fromValue(String v) {
42 for (LabelDescription c: LabelDescription.values()) {
43 if (c.value.equals(v)) {
44 return c;
45 }
46 }
47 throw new IllegalArgumentException(v);
48 }
49
50}