GLS ShipIT 5.0.15 GLS ShipIT - REST services

ProductType.java
Go to the documentation of this file.
1
2 package eu.gls_group.fpcs.v1.common;
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 = "ProductType")
28 @XmlEnum
29 public enum ProductType {
30
31 @XmlEnumValue("Parcel")
32 PARCEL("Parcel"),
33 @XmlEnumValue("Express")
34 EXPRESS("Express"),
35 @XmlEnumValue("Freight")
36 FREIGHT("Freight"),
37 @XmlEnumValue("Pharma")
38 PHARMA("Pharma"),
39 @XmlEnumValue("Pharmaplus")
40 PHARMAPLUS("Pharmaplus"),
41 @XmlEnumValue("Economy")
42 ECONOMY("Economy");
43 private final String value;
44
45 ProductType(String v) {
46 value = v;
47 }
48
49 public String value() {
50 return value;
51 }
52
53 public static ProductType fromValue(String v) {
54 for (ProductType c: ProductType.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.common.ProductType.fromValue
static ProductType fromValue(String v)
Definition: ProductType.java:53
eu.gls_group.fpcs.v1.common.ProductType.value
String value()
Definition: ProductType.java:49
eu.gls_group.fpcs.v1.common.ProductType
Definition: ProductType.java:29