GLS ShipIT 5.0.15 GLS ShipIT - REST services

gls_group/fpcs/v1/shipmentprocessing/types/LabelDescription.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
23 @XmlType(name = "LabelDescription")
24 @XmlEnum
25 public 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 }
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelDescription
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelDescription.java:25
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelDescription.value
String value()
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelDescription.java:37
eu.gls_group.fpcs.v1.shipmentprocessing.types.LabelDescription.fromValue
static LabelDescription fromValue(String v)
Definition: gls_group/fpcs/v1/shipmentprocessing/types/LabelDescription.java:41
eu.gls_group.fpcs.v1.common.Return
Definition: Return.java:36