GLS ShipIT 3.5.15 GLS ShipIT - SOAP 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
26 @XmlType(name = "ProductType")
27 @XmlEnum
28 public enum ProductType {
29
30 @XmlEnumValue("Parcel")
31 PARCEL("Parcel"),
32 @XmlEnumValue("Express")
33 EXPRESS("Express"),
34 @XmlEnumValue("Freight")
35 FREIGHT("Freight"),
36 @XmlEnumValue("Pharma")
37 PHARMA("Pharma"),
38 @XmlEnumValue("Pharmaplus")
39 PHARMAPLUS("Pharmaplus");
40 private final String value;
41
42 ProductType(String v) {
43 value = v;
44 }
45
46 public String value() {
47 return value;
48 }
49
50 public static ProductType fromValue(String v) {
51 for (ProductType c: ProductType.values()) {
52 if (c.value.equals(v)) {
53 return c;
54 }
55 }
56 throw new IllegalArgumentException(v);
57 }
58
59 }
eu.gls_group.fpcs.v1.common.ProductType.fromValue
static ProductType fromValue(String v)
Definition: ProductType.java:50
eu.gls_group.fpcs.v1.common.ProductType.value
String value()
Definition: ProductType.java:46
eu.gls_group.fpcs.v1.common.ProductType
Definition: ProductType.java:28