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.XmlElement;
15 import javax.xml.bind.annotation.XmlType;
16
17
18 /**
19 * <p>Java class for Daemon complex type.
20 *
21 * <p>The following schema fragment specifies the expected content contained within this class.
22 *
23 * <pre>
24 * <complexType name="Daemon">
25 * <complexContent>
26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27 * <sequence>
28 * <element name="readCommunity" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
29 * <element name="writeCommunity" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
30 * </sequence>
31 * <attribute name="address" type="{http://www.w3.org/2001/XMLSchema}string" default="127.0.0.1" />
32 * <attribute name="port" type="{http://www.w3.org/2001/XMLSchema}int" default="161" />
33 * <attribute name="version" default="2">
34 * <simpleType>
35 * <restriction base="{http://www.w3.org/2001/XMLSchema}int">
36 * <minInclusive value="1"/>
37 * <maxInclusive value="2"/>
38 * </restriction>
39 * </simpleType>
40 * </attribute>
41 * </restriction>
42 * </complexContent>
43 * </complexType>
44 * </pre>
45 *
46 *
47 */
48 @XmlAccessorType(XmlAccessType.FIELD)
49 @XmlType(name = "Daemon", propOrder = {
50 "readCommunity",
51 "writeCommunity"
52 })
53 public class Daemon {
54
55 @XmlElement(defaultValue = "public")
56 protected String readCommunity;
57 @XmlElement(defaultValue = "private")
58 protected String writeCommunity;
59 @XmlAttribute
60 protected String address;
61 @XmlAttribute
62 protected Integer port;
63 @XmlAttribute
64 protected Integer version;
65
66 /**
67 * Gets the value of the readCommunity property.
68 *
69 * @return
70 * possible object is
71 * {@link String }
72 *
73 */
74 public String getReadCommunity() {
75 return readCommunity;
76 }
77
78 /**
79 * Sets the value of the readCommunity property.
80 *
81 * @param value
82 * allowed object is
83 * {@link String }
84 *
85 */
86 public void setReadCommunity(String value) {
87 this.readCommunity = value;
88 }
89
90 /**
91 * Gets the value of the writeCommunity property.
92 *
93 * @return
94 * possible object is
95 * {@link String }
96 *
97 */
98 public String getWriteCommunity() {
99 return writeCommunity;
100 }
101
102 /**
103 * Sets the value of the writeCommunity property.
104 *
105 * @param value
106 * allowed object is
107 * {@link String }
108 *
109 */
110 public void setWriteCommunity(String value) {
111 this.writeCommunity = value;
112 }
113
114 /**
115 * Gets the value of the address property.
116 *
117 * @return
118 * possible object is
119 * {@link String }
120 *
121 */
122 public String getAddress() {
123 if (address == null) {
124 return "127.0.0.1";
125 } else {
126 return address;
127 }
128 }
129
130 /**
131 * Sets the value of the address property.
132 *
133 * @param value
134 * allowed object is
135 * {@link String }
136 *
137 */
138 public void setAddress(String value) {
139 this.address = value;
140 }
141
142 /**
143 * Gets the value of the port property.
144 *
145 * @return
146 * possible object is
147 * {@link Integer }
148 *
149 */
150 public int getPort() {
151 if (port == null) {
152 return 161;
153 } else {
154 return port;
155 }
156 }
157
158 /**
159 * Sets the value of the port property.
160 *
161 * @param value
162 * allowed object is
163 * {@link Integer }
164 *
165 */
166 public void setPort(Integer value) {
167 this.port = value;
168 }
169
170 /**
171 * Gets the value of the version property.
172 *
173 * @return
174 * possible object is
175 * {@link Integer }
176 *
177 */
178 public int getVersion() {
179 if (version == null) {
180 return 2;
181 } else {
182 return version;
183 }
184 }
185
186 /**
187 * Sets the value of the version property.
188 *
189 * @param value
190 * allowed object is
191 * {@link Integer }
192 *
193 */
194 public void setVersion(Integer value) {
195 this.version = value;
196 }
197
198 }