GLS ShipIT 4.0.f2
GLS ShipIT - SOAP services
Loading...
Searching...
No Matches
CarrierType.java
Go to the documentation of this file.
1
2package eu.gls_group.fpcs.v1.common;
3
4import javax.xml.bind.annotation.XmlEnum;
5import javax.xml.bind.annotation.XmlEnumValue;
6import javax.xml.bind.annotation.XmlType;
7
8
23@XmlType(name = "CarrierType")
24@XmlEnum
25public enum CarrierType {
26
27 @XmlEnumValue("service_t24")
28 SERVICE_T_24("service_t24"),
29 @XmlEnumValue("service_t48")
30 SERVICE_T_48("service_t48");
31 private final String value;
32
33 CarrierType(String v) {
34 value = v;
35 }
36
37 public String value() {
38 return value;
39 }
40
41 public static CarrierType fromValue(String v) {
42 for (CarrierType c: CarrierType.values()) {
43 if (c.value.equals(v)) {
44 return c;
45 }
46 }
47 throw new IllegalArgumentException(v);
48 }
49
50}
static CarrierType fromValue(String v)