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:17 PM CET 
6   //
7   
8   
9   package net.sf.snmpadaptor4j.config.jaxb;
10  
11  import javax.xml.bind.annotation.XmlAccessType;
12  import javax.xml.bind.annotation.XmlAccessorType;
13  import javax.xml.bind.annotation.XmlAttribute;
14  import javax.xml.bind.annotation.XmlType;
15  
16  
17  /**
18   * <p>Java class for Manager complex type.
19   * 
20   * <p>The following schema fragment specifies the expected content contained within this class.
21   * 
22   * <pre>
23   * &lt;complexType name="Manager">
24   *   &lt;complexContent>
25   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
26   *       &lt;attribute name="address" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
27   *       &lt;attribute name="port" type="{http://www.w3.org/2001/XMLSchema}int" default="162" />
28   *       &lt;attribute name="version" default="2">
29   *         &lt;simpleType>
30   *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}int">
31   *             &lt;minInclusive value="1"/>
32   *             &lt;maxInclusive value="2"/>
33   *           &lt;/restriction>
34   *         &lt;/simpleType>
35   *       &lt;/attribute>
36   *       &lt;attribute name="community" type="{http://www.w3.org/2001/XMLSchema}string" default="public" />
37   *     &lt;/restriction>
38   *   &lt;/complexContent>
39   * &lt;/complexType>
40   * </pre>
41   * 
42   * 
43   */
44  @XmlAccessorType(XmlAccessType.FIELD)
45  @XmlType(name = "Manager")
46  public class Manager {
47  
48      @XmlAttribute(required = true)
49      protected String address;
50      @XmlAttribute
51      protected Integer port;
52      @XmlAttribute
53      protected Integer version;
54      @XmlAttribute
55      protected String community;
56  
57      /**
58       * Gets the value of the address property.
59       * 
60       * @return
61       *     possible object is
62       *     {@link String }
63       *     
64       */
65      public String getAddress() {
66          return address;
67      }
68  
69      /**
70       * Sets the value of the address property.
71       * 
72       * @param value
73       *     allowed object is
74       *     {@link String }
75       *     
76       */
77      public void setAddress(String value) {
78          this.address = value;
79      }
80  
81      /**
82       * Gets the value of the port property.
83       * 
84       * @return
85       *     possible object is
86       *     {@link Integer }
87       *     
88       */
89      public int getPort() {
90          if (port == null) {
91              return  162;
92          } else {
93              return port;
94          }
95      }
96  
97      /**
98       * Sets the value of the port property.
99       * 
100      * @param value
101      *     allowed object is
102      *     {@link Integer }
103      *     
104      */
105     public void setPort(Integer value) {
106         this.port = value;
107     }
108 
109     /**
110      * Gets the value of the version property.
111      * 
112      * @return
113      *     possible object is
114      *     {@link Integer }
115      *     
116      */
117     public int getVersion() {
118         if (version == null) {
119             return  2;
120         } else {
121             return version;
122         }
123     }
124 
125     /**
126      * Sets the value of the version property.
127      * 
128      * @param value
129      *     allowed object is
130      *     {@link Integer }
131      *     
132      */
133     public void setVersion(Integer value) {
134         this.version = value;
135     }
136 
137     /**
138      * Gets the value of the community property.
139      * 
140      * @return
141      *     possible object is
142      *     {@link String }
143      *     
144      */
145     public String getCommunity() {
146         if (community == null) {
147             return "public";
148         } else {
149             return community;
150         }
151     }
152 
153     /**
154      * Sets the value of the community property.
155      * 
156      * @param value
157      *     allowed object is
158      *     {@link String }
159      *     
160      */
161     public void setCommunity(String value) {
162         this.community = value;
163     }
164 
165 }