View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2013.02.13 at 08:27:16 PM CET 
6   //
7   
8   
9   package net.sf.snmpadaptor4j.core.mapping.jaxb;
10  
11  import javax.xml.bind.annotation.XmlEnum;
12  import javax.xml.bind.annotation.XmlEnumValue;
13  import javax.xml.bind.annotation.XmlType;
14  
15  
16  /**
17   * <p>Java class for MBeanAttributeType.
18   * 
19   * <p>The following schema fragment specifies the expected content contained within this class.
20   * <p>
21   * <pre>
22   * &lt;simpleType name="MBeanAttributeType">
23   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
24   *     &lt;enumeration value="integer32"/>
25   *     &lt;enumeration value="unsigned32"/>
26   *     &lt;enumeration value="gauge32"/>
27   *     &lt;enumeration value="counter32"/>
28   *     &lt;enumeration value="counter64"/>
29   *     &lt;enumeration value="timeTicks"/>
30   *     &lt;enumeration value="octetString"/>
31   *     &lt;enumeration value="ipAddress"/>
32   *     &lt;enumeration value="objectIdentifier"/>
33   *     &lt;enumeration value="opaque"/>
34   *   &lt;/restriction>
35   * &lt;/simpleType>
36   * </pre>
37   * 
38   */
39  @XmlType(name = "MBeanAttributeType")
40  @XmlEnum
41  public enum MBeanAttributeType {
42  
43      @XmlEnumValue("integer32")
44      INTEGER_32("integer32"),
45      @XmlEnumValue("unsigned32")
46      UNSIGNED_32("unsigned32"),
47      @XmlEnumValue("gauge32")
48      GAUGE_32("gauge32"),
49      @XmlEnumValue("counter32")
50      COUNTER_32("counter32"),
51      @XmlEnumValue("counter64")
52      COUNTER_64("counter64"),
53      @XmlEnumValue("timeTicks")
54      TIME_TICKS("timeTicks"),
55      @XmlEnumValue("octetString")
56      OCTET_STRING("octetString"),
57      @XmlEnumValue("ipAddress")
58      IP_ADDRESS("ipAddress"),
59      @XmlEnumValue("objectIdentifier")
60      OBJECT_IDENTIFIER("objectIdentifier"),
61      @XmlEnumValue("opaque")
62      OPAQUE("opaque");
63      private final String value;
64  
65      MBeanAttributeType(String v) {
66          value = v;
67      }
68  
69      public String value() {
70          return value;
71      }
72  
73      public static MBeanAttributeType fromValue(String v) {
74          for (MBeanAttributeType c: MBeanAttributeType.values()) {
75              if (c.value.equals(v)) {
76                  return c;
77              }
78          }
79          throw new IllegalArgumentException(v);
80      }
81  
82  }