|
package org.fosstrak.epcis.model;
|
|
|
|
import javax.xml.bind.annotation.XmlEnum;
|
|
import javax.xml.bind.annotation.XmlEnumValue;
|
|
import javax.xml.bind.annotation.XmlType;
|
|
|
|
/**
|
|
* <p>
|
|
* Java class for TypeOfServiceTransaction.
|
|
* <p>
|
|
* The following schema fragment specifies the expected content contained within
|
|
* this class.
|
|
* <p>
|
|
*
|
|
* <pre>
|
|
* <simpleType name="TypeOfServiceTransaction">
|
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
|
* <enumeration value="RequestingServiceTransaction"/>
|
|
* <enumeration value="RespondingServiceTransaction"/>
|
|
* </restriction>
|
|
* </simpleType>
|
|
* </pre>
|
|
*/
|
|
@XmlType(name = "TypeOfServiceTransaction", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader")
|
|
@XmlEnum
|
|
public enum TypeOfServiceTransaction {
|
|
|
|
@XmlEnumValue("RequestingServiceTransaction")
|
|
REQUESTING_SERVICE_TRANSACTION("RequestingServiceTransaction"), @XmlEnumValue("RespondingServiceTransaction")
|
|
RESPONDING_SERVICE_TRANSACTION("RespondingServiceTransaction");
|
|
private final String value;
|
|
|
|
TypeOfServiceTransaction(String v) {
|
|
value = v;
|
|
}
|
|
|
|
public String value() {
|
|
return value;
|
|
}
|
|
|
|
public static TypeOfServiceTransaction fromValue(String v) {
|
|
for (TypeOfServiceTransaction c : TypeOfServiceTransaction.values()) {
|
|
if (c.value.equals(v)) {
|
|
return c;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException(v);
|
|
}
|
|
|
|
}
|