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 java.util.ArrayList;
12  import java.util.List;
13  import javax.xml.bind.annotation.XmlAccessType;
14  import javax.xml.bind.annotation.XmlAccessorType;
15  import javax.xml.bind.annotation.XmlAttribute;
16  import javax.xml.bind.annotation.XmlElement;
17  import javax.xml.bind.annotation.XmlType;
18  
19  
20  /**
21   * <p>Java class for TrapEnterprise complex type.
22   * 
23   * <p>The following schema fragment specifies the expected content contained within this class.
24   * 
25   * <pre>
26   * &lt;complexType name="TrapEnterprise">
27   *   &lt;complexContent>
28   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29   *       &lt;sequence>
30   *         &lt;element name="generic-trap" type="{http://www.sf.net/snmpAdaptor4j/mapping/1.1}GenericTrap" maxOccurs="unbounded" minOccurs="0"/>
31   *         &lt;element name="specific-trap" type="{http://www.sf.net/snmpAdaptor4j/mapping/1.1}SpecificTrap" maxOccurs="unbounded" minOccurs="0"/>
32   *       &lt;/sequence>
33   *       &lt;attribute name="node" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
34   *       &lt;attribute name="userdata" type="{http://www.w3.org/2001/XMLSchema}string" />
35   *     &lt;/restriction>
36   *   &lt;/complexContent>
37   * &lt;/complexType>
38   * </pre>
39   * 
40   * 
41   */
42  @XmlAccessorType(XmlAccessType.FIELD)
43  @XmlType(name = "TrapEnterprise", propOrder = {
44      "genericTrap",
45      "specificTrap"
46  })
47  public class TrapEnterprise {
48  
49      @XmlElement(name = "generic-trap")
50      protected List<GenericTrap> genericTrap;
51      @XmlElement(name = "specific-trap")
52      protected List<SpecificTrap> specificTrap;
53      @XmlAttribute(required = true)
54      protected int node;
55      @XmlAttribute
56      protected String userdata;
57  
58      /**
59       * Gets the value of the genericTrap property.
60       * 
61       * <p>
62       * This accessor method returns a reference to the live list,
63       * not a snapshot. Therefore any modification you make to the
64       * returned list will be present inside the JAXB object.
65       * This is why there is not a <CODE>set</CODE> method for the genericTrap property.
66       * 
67       * <p>
68       * For example, to add a new item, do as follows:
69       * <pre>
70       *    getGenericTrap().add(newItem);
71       * </pre>
72       * 
73       * 
74       * <p>
75       * Objects of the following type(s) are allowed in the list
76       * {@link GenericTrap }
77       * 
78       * 
79       */
80      public List<GenericTrap> getGenericTrap() {
81          if (genericTrap == null) {
82              genericTrap = new ArrayList<GenericTrap>();
83          }
84          return this.genericTrap;
85      }
86  
87      /**
88       * Gets the value of the specificTrap property.
89       * 
90       * <p>
91       * This accessor method returns a reference to the live list,
92       * not a snapshot. Therefore any modification you make to the
93       * returned list will be present inside the JAXB object.
94       * This is why there is not a <CODE>set</CODE> method for the specificTrap property.
95       * 
96       * <p>
97       * For example, to add a new item, do as follows:
98       * <pre>
99       *    getSpecificTrap().add(newItem);
100      * </pre>
101      * 
102      * 
103      * <p>
104      * Objects of the following type(s) are allowed in the list
105      * {@link SpecificTrap }
106      * 
107      * 
108      */
109     public List<SpecificTrap> getSpecificTrap() {
110         if (specificTrap == null) {
111             specificTrap = new ArrayList<SpecificTrap>();
112         }
113         return this.specificTrap;
114     }
115 
116     /**
117      * Gets the value of the node property.
118      * 
119      */
120     public int getNode() {
121         return node;
122     }
123 
124     /**
125      * Sets the value of the node property.
126      * 
127      */
128     public void setNode(int value) {
129         this.node = value;
130     }
131 
132     /**
133      * Gets the value of the userdata property.
134      * 
135      * @return
136      *     possible object is
137      *     {@link String }
138      *     
139      */
140     public String getUserdata() {
141         return userdata;
142     }
143 
144     /**
145      * Sets the value of the userdata property.
146      * 
147      * @param value
148      *     allowed object is
149      *     {@link String }
150      *     
151      */
152     public void setUserdata(String value) {
153         this.userdata = value;
154     }
155 
156 }