View Javadoc

1   package org.fosstrak.epcis.model;
2   
3   import javax.xml.bind.annotation.XmlEnum;
4   import javax.xml.bind.annotation.XmlType;
5   
6   /**
7    * <p>
8    * Java class for ActionType.
9    * <p>
10   * The following schema fragment specifies the expected content contained within
11   * this class.
12   * <p>
13   * 
14   * <pre>
15   * &lt;simpleType name="ActionType">
16   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
17   *     &lt;enumeration value="ADD"/>
18   *     &lt;enumeration value="OBSERVE"/>
19   *     &lt;enumeration value="DELETE"/>
20   *   &lt;/restriction>
21   * &lt;/simpleType>
22   * </pre>
23   */
24  @XmlType(name = "ActionType", namespace = "urn:epcglobal:epcis:xsd:1")
25  @XmlEnum
26  public enum ActionType {
27  
28      ADD, OBSERVE, DELETE;
29  
30      public String value() {
31          return name();
32      }
33  
34      public static ActionType fromValue(String v) {
35          return valueOf(v);
36      }
37  
38  }