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 TrapVariableBindings complex type.
22   * 
23   * <p>The following schema fragment specifies the expected content contained within this class.
24   * 
25   * <pre>
26   * &lt;complexType name="TrapVariableBindings">
27   *   &lt;complexContent>
28   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29   *       &lt;sequence>
30   *         &lt;element name="sequence-number" type="{http://www.sf.net/snmpAdaptor4j/mapping/1.1}TrapSequenceNumber" minOccurs="0"/>
31   *         &lt;element name="message" type="{http://www.sf.net/snmpAdaptor4j/mapping/1.1}TrapMessage" minOccurs="0"/>
32   *         &lt;element name="userdata" type="{http://www.sf.net/snmpAdaptor4j/mapping/1.1}TrapUserData" maxOccurs="unbounded" minOccurs="0"/>
33   *         &lt;element name="userdata-map" type="{http://www.sf.net/snmpAdaptor4j/mapping/1.1}TrapUserDataMap" maxOccurs="unbounded" minOccurs="0"/>
34   *       &lt;/sequence>
35   *       &lt;attribute name="system-info" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
36   *     &lt;/restriction>
37   *   &lt;/complexContent>
38   * &lt;/complexType>
39   * </pre>
40   * 
41   * 
42   */
43  @XmlAccessorType(XmlAccessType.FIELD)
44  @XmlType(name = "TrapVariableBindings", propOrder = {
45      "sequenceNumber",
46      "message",
47      "userdata",
48      "userdataMap"
49  })
50  public class TrapVariableBindings {
51  
52      @XmlElement(name = "sequence-number")
53      protected TrapSequenceNumber sequenceNumber;
54      protected TrapMessage message;
55      protected List<TrapUserData> userdata;
56      @XmlElement(name = "userdata-map")
57      protected List<TrapUserDataMap> userdataMap;
58      @XmlAttribute(name = "system-info")
59      protected Boolean systemInfo;
60  
61      /**
62       * Gets the value of the sequenceNumber property.
63       * 
64       * @return
65       *     possible object is
66       *     {@link TrapSequenceNumber }
67       *     
68       */
69      public TrapSequenceNumber getSequenceNumber() {
70          return sequenceNumber;
71      }
72  
73      /**
74       * Sets the value of the sequenceNumber property.
75       * 
76       * @param value
77       *     allowed object is
78       *     {@link TrapSequenceNumber }
79       *     
80       */
81      public void setSequenceNumber(TrapSequenceNumber value) {
82          this.sequenceNumber = value;
83      }
84  
85      /**
86       * Gets the value of the message property.
87       * 
88       * @return
89       *     possible object is
90       *     {@link TrapMessage }
91       *     
92       */
93      public TrapMessage getMessage() {
94          return message;
95      }
96  
97      /**
98       * Sets the value of the message property.
99       * 
100      * @param value
101      *     allowed object is
102      *     {@link TrapMessage }
103      *     
104      */
105     public void setMessage(TrapMessage value) {
106         this.message = value;
107     }
108 
109     /**
110      * Gets the value of the userdata property.
111      * 
112      * <p>
113      * This accessor method returns a reference to the live list,
114      * not a snapshot. Therefore any modification you make to the
115      * returned list will be present inside the JAXB object.
116      * This is why there is not a <CODE>set</CODE> method for the userdata property.
117      * 
118      * <p>
119      * For example, to add a new item, do as follows:
120      * <pre>
121      *    getUserdata().add(newItem);
122      * </pre>
123      * 
124      * 
125      * <p>
126      * Objects of the following type(s) are allowed in the list
127      * {@link TrapUserData }
128      * 
129      * 
130      */
131     public List<TrapUserData> getUserdata() {
132         if (userdata == null) {
133             userdata = new ArrayList<TrapUserData>();
134         }
135         return this.userdata;
136     }
137 
138     /**
139      * Gets the value of the userdataMap property.
140      * 
141      * <p>
142      * This accessor method returns a reference to the live list,
143      * not a snapshot. Therefore any modification you make to the
144      * returned list will be present inside the JAXB object.
145      * This is why there is not a <CODE>set</CODE> method for the userdataMap property.
146      * 
147      * <p>
148      * For example, to add a new item, do as follows:
149      * <pre>
150      *    getUserdataMap().add(newItem);
151      * </pre>
152      * 
153      * 
154      * <p>
155      * Objects of the following type(s) are allowed in the list
156      * {@link TrapUserDataMap }
157      * 
158      * 
159      */
160     public List<TrapUserDataMap> getUserdataMap() {
161         if (userdataMap == null) {
162             userdataMap = new ArrayList<TrapUserDataMap>();
163         }
164         return this.userdataMap;
165     }
166 
167     /**
168      * Gets the value of the systemInfo property.
169      * 
170      * @return
171      *     possible object is
172      *     {@link Boolean }
173      *     
174      */
175     public boolean isSystemInfo() {
176         if (systemInfo == null) {
177             return false;
178         } else {
179             return systemInfo;
180         }
181     }
182 
183     /**
184      * Sets the value of the systemInfo property.
185      * 
186      * @param value
187      *     allowed object is
188      *     {@link Boolean }
189      *     
190      */
191     public void setSystemInfo(Boolean value) {
192         this.systemInfo = value;
193     }
194 
195 }