| 1 | /* WRS 2.0 |
|---|
| 2 | * Copyright (C) 2009 Anton Patrushev |
|---|
| 3 | * |
|---|
| 4 | * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | * it under the terms of the GNU General Public License as published by |
|---|
| 6 | * the Free Software Foundation; either version 3 of the License, or |
|---|
| 7 | * (at your option) any later version. |
|---|
| 8 | * |
|---|
| 9 | * This program is distributed in the hope that it will be useful, |
|---|
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | * GNU General Public License for more details. |
|---|
| 13 | * |
|---|
| 14 | * You should have received a copy of the GNU General Public License |
|---|
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 16 | */ |
|---|
| 17 | |
|---|
| 18 | // |
|---|
| 19 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 |
|---|
| 20 | // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> |
|---|
| 21 | // Any modifications to this file will be lost upon recompilation of the source schema. |
|---|
| 22 | // Generated on: 2009.03.24 at 07:10:14 PM JST |
|---|
| 23 | // |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | package util.conf; |
|---|
| 27 | |
|---|
| 28 | import java.util.ArrayList; |
|---|
| 29 | import java.util.List; |
|---|
| 30 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 31 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 32 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 33 | import javax.xml.bind.annotation.XmlElement; |
|---|
| 34 | import javax.xml.bind.annotation.XmlRootElement; |
|---|
| 35 | import javax.xml.bind.annotation.XmlType; |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | /** |
|---|
| 39 | * |
|---|
| 40 | * CONFIGURATION document contains server configuration parameters and configuration includes. |
|---|
| 41 | * |
|---|
| 42 | * |
|---|
| 43 | * <p>Java class for anonymous complex type. |
|---|
| 44 | * |
|---|
| 45 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 46 | * |
|---|
| 47 | * <pre> |
|---|
| 48 | * <complexType> |
|---|
| 49 | * <complexContent> |
|---|
| 50 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 51 | * <sequence> |
|---|
| 52 | * <element name="port" type="{http://www.w3.org/2001/XMLSchema}short" minOccurs="0"/> |
|---|
| 53 | * <element name="log" minOccurs="0"> |
|---|
| 54 | * <complexType> |
|---|
| 55 | * <complexContent> |
|---|
| 56 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 57 | * <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 58 | * <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}short" /> |
|---|
| 59 | * </restriction> |
|---|
| 60 | * </complexContent> |
|---|
| 61 | * </complexType> |
|---|
| 62 | * </element> |
|---|
| 63 | * <element name="includes" minOccurs="0"> |
|---|
| 64 | * <complexType> |
|---|
| 65 | * <complexContent> |
|---|
| 66 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 67 | * <sequence> |
|---|
| 68 | * <element name="include" maxOccurs="4" minOccurs="4"> |
|---|
| 69 | * <complexType> |
|---|
| 70 | * <complexContent> |
|---|
| 71 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 72 | * <attribute name="name"> |
|---|
| 73 | * <simpleType> |
|---|
| 74 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
|---|
| 75 | * <enumeration value="profiles"/> |
|---|
| 76 | * <enumeration value="services"/> |
|---|
| 77 | * <enumeration value="templates"/> |
|---|
| 78 | * <enumeration value="resources"/> |
|---|
| 79 | * </restriction> |
|---|
| 80 | * </simpleType> |
|---|
| 81 | * </attribute> |
|---|
| 82 | * <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 83 | * </restriction> |
|---|
| 84 | * </complexContent> |
|---|
| 85 | * </complexType> |
|---|
| 86 | * </element> |
|---|
| 87 | * </sequence> |
|---|
| 88 | * </restriction> |
|---|
| 89 | * </complexContent> |
|---|
| 90 | * </complexType> |
|---|
| 91 | * </element> |
|---|
| 92 | * </sequence> |
|---|
| 93 | * <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="1.1.0" /> |
|---|
| 94 | * </restriction> |
|---|
| 95 | * </complexContent> |
|---|
| 96 | * </complexType> |
|---|
| 97 | * </pre> |
|---|
| 98 | * |
|---|
| 99 | * |
|---|
| 100 | */ |
|---|
| 101 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 102 | @XmlType(name = "", propOrder = { |
|---|
| 103 | "port", |
|---|
| 104 | "log", |
|---|
| 105 | "includes" |
|---|
| 106 | }) |
|---|
| 107 | @XmlRootElement(name = "configuration") |
|---|
| 108 | public class Configuration { |
|---|
| 109 | |
|---|
| 110 | protected Short port; |
|---|
| 111 | protected Configuration.Log log; |
|---|
| 112 | protected Configuration.Includes includes; |
|---|
| 113 | @XmlAttribute(required = true) |
|---|
| 114 | protected String version; |
|---|
| 115 | |
|---|
| 116 | /** |
|---|
| 117 | * Gets the value of the port property. |
|---|
| 118 | * |
|---|
| 119 | * @return |
|---|
| 120 | * possible object is |
|---|
| 121 | * {@link Short } |
|---|
| 122 | * |
|---|
| 123 | */ |
|---|
| 124 | public Short getPort() { |
|---|
| 125 | return port; |
|---|
| 126 | } |
|---|
| 127 | |
|---|
| 128 | /** |
|---|
| 129 | * Sets the value of the port property. |
|---|
| 130 | * |
|---|
| 131 | * @param value |
|---|
| 132 | * allowed object is |
|---|
| 133 | * {@link Short } |
|---|
| 134 | * |
|---|
| 135 | */ |
|---|
| 136 | public void setPort(Short value) { |
|---|
| 137 | this.port = value; |
|---|
| 138 | } |
|---|
| 139 | |
|---|
| 140 | /** |
|---|
| 141 | * Gets the value of the log property. |
|---|
| 142 | * |
|---|
| 143 | * @return |
|---|
| 144 | * possible object is |
|---|
| 145 | * {@link Configuration.Log } |
|---|
| 146 | * |
|---|
| 147 | */ |
|---|
| 148 | public Configuration.Log getLog() { |
|---|
| 149 | return log; |
|---|
| 150 | } |
|---|
| 151 | |
|---|
| 152 | /** |
|---|
| 153 | * Sets the value of the log property. |
|---|
| 154 | * |
|---|
| 155 | * @param value |
|---|
| 156 | * allowed object is |
|---|
| 157 | * {@link Configuration.Log } |
|---|
| 158 | * |
|---|
| 159 | */ |
|---|
| 160 | public void setLog(Configuration.Log value) { |
|---|
| 161 | this.log = value; |
|---|
| 162 | } |
|---|
| 163 | |
|---|
| 164 | /** |
|---|
| 165 | * Gets the value of the includes property. |
|---|
| 166 | * |
|---|
| 167 | * @return |
|---|
| 168 | * possible object is |
|---|
| 169 | * {@link Configuration.Includes } |
|---|
| 170 | * |
|---|
| 171 | */ |
|---|
| 172 | public Configuration.Includes getIncludes() { |
|---|
| 173 | return includes; |
|---|
| 174 | } |
|---|
| 175 | |
|---|
| 176 | /** |
|---|
| 177 | * Sets the value of the includes property. |
|---|
| 178 | * |
|---|
| 179 | * @param value |
|---|
| 180 | * allowed object is |
|---|
| 181 | * {@link Configuration.Includes } |
|---|
| 182 | * |
|---|
| 183 | */ |
|---|
| 184 | public void setIncludes(Configuration.Includes value) { |
|---|
| 185 | this.includes = value; |
|---|
| 186 | } |
|---|
| 187 | |
|---|
| 188 | /** |
|---|
| 189 | * Gets the value of the version property. |
|---|
| 190 | * |
|---|
| 191 | * @return |
|---|
| 192 | * possible object is |
|---|
| 193 | * {@link String } |
|---|
| 194 | * |
|---|
| 195 | */ |
|---|
| 196 | public String getVersion() { |
|---|
| 197 | if (version == null) { |
|---|
| 198 | return "1.1.0"; |
|---|
| 199 | } else { |
|---|
| 200 | return version; |
|---|
| 201 | } |
|---|
| 202 | } |
|---|
| 203 | |
|---|
| 204 | /** |
|---|
| 205 | * Sets the value of the version property. |
|---|
| 206 | * |
|---|
| 207 | * @param value |
|---|
| 208 | * allowed object is |
|---|
| 209 | * {@link String } |
|---|
| 210 | * |
|---|
| 211 | */ |
|---|
| 212 | public void setVersion(String value) { |
|---|
| 213 | this.version = value; |
|---|
| 214 | } |
|---|
| 215 | |
|---|
| 216 | |
|---|
| 217 | /** |
|---|
| 218 | * <p>Java class for anonymous complex type. |
|---|
| 219 | * |
|---|
| 220 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 221 | * |
|---|
| 222 | * <pre> |
|---|
| 223 | * <complexType> |
|---|
| 224 | * <complexContent> |
|---|
| 225 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 226 | * <sequence> |
|---|
| 227 | * <element name="include" maxOccurs="4" minOccurs="4"> |
|---|
| 228 | * <complexType> |
|---|
| 229 | * <complexContent> |
|---|
| 230 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 231 | * <attribute name="name"> |
|---|
| 232 | * <simpleType> |
|---|
| 233 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
|---|
| 234 | * <enumeration value="profiles"/> |
|---|
| 235 | * <enumeration value="services"/> |
|---|
| 236 | * <enumeration value="templates"/> |
|---|
| 237 | * <enumeration value="resources"/> |
|---|
| 238 | * </restriction> |
|---|
| 239 | * </simpleType> |
|---|
| 240 | * </attribute> |
|---|
| 241 | * <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 242 | * </restriction> |
|---|
| 243 | * </complexContent> |
|---|
| 244 | * </complexType> |
|---|
| 245 | * </element> |
|---|
| 246 | * </sequence> |
|---|
| 247 | * </restriction> |
|---|
| 248 | * </complexContent> |
|---|
| 249 | * </complexType> |
|---|
| 250 | * </pre> |
|---|
| 251 | * |
|---|
| 252 | * |
|---|
| 253 | */ |
|---|
| 254 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 255 | @XmlType(name = "", propOrder = { |
|---|
| 256 | "include" |
|---|
| 257 | }) |
|---|
| 258 | public static class Includes { |
|---|
| 259 | |
|---|
| 260 | @XmlElement(required = true) |
|---|
| 261 | protected List<Configuration.Includes.Include> include; |
|---|
| 262 | |
|---|
| 263 | /** |
|---|
| 264 | * Gets the value of the include property. |
|---|
| 265 | * |
|---|
| 266 | * <p> |
|---|
| 267 | * This accessor method returns a reference to the live list, |
|---|
| 268 | * not a snapshot. Therefore any modification you make to the |
|---|
| 269 | * returned list will be present inside the JAXB object. |
|---|
| 270 | * This is why there is not a <CODE>set</CODE> method for the include property. |
|---|
| 271 | * |
|---|
| 272 | * <p> |
|---|
| 273 | * For example, to add a new item, do as follows: |
|---|
| 274 | * <pre> |
|---|
| 275 | * getInclude().add(newItem); |
|---|
| 276 | * </pre> |
|---|
| 277 | * |
|---|
| 278 | * |
|---|
| 279 | * <p> |
|---|
| 280 | * Objects of the following type(s) are allowed in the list |
|---|
| 281 | * {@link Configuration.Includes.Include } |
|---|
| 282 | * |
|---|
| 283 | * |
|---|
| 284 | */ |
|---|
| 285 | public List<Configuration.Includes.Include> getInclude() { |
|---|
| 286 | if (include == null) { |
|---|
| 287 | include = new ArrayList<Configuration.Includes.Include>(); |
|---|
| 288 | } |
|---|
| 289 | return this.include; |
|---|
| 290 | } |
|---|
| 291 | |
|---|
| 292 | |
|---|
| 293 | /** |
|---|
| 294 | * <p>Java class for anonymous complex type. |
|---|
| 295 | * |
|---|
| 296 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 297 | * |
|---|
| 298 | * <pre> |
|---|
| 299 | * <complexType> |
|---|
| 300 | * <complexContent> |
|---|
| 301 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 302 | * <attribute name="name"> |
|---|
| 303 | * <simpleType> |
|---|
| 304 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
|---|
| 305 | * <enumeration value="profiles"/> |
|---|
| 306 | * <enumeration value="services"/> |
|---|
| 307 | * <enumeration value="templates"/> |
|---|
| 308 | * <enumeration value="resources"/> |
|---|
| 309 | * </restriction> |
|---|
| 310 | * </simpleType> |
|---|
| 311 | * </attribute> |
|---|
| 312 | * <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 313 | * </restriction> |
|---|
| 314 | * </complexContent> |
|---|
| 315 | * </complexType> |
|---|
| 316 | * </pre> |
|---|
| 317 | * |
|---|
| 318 | * |
|---|
| 319 | */ |
|---|
| 320 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 321 | @XmlType(name = "") |
|---|
| 322 | public static class Include { |
|---|
| 323 | |
|---|
| 324 | @XmlAttribute |
|---|
| 325 | protected String name; |
|---|
| 326 | @XmlAttribute |
|---|
| 327 | protected String url; |
|---|
| 328 | |
|---|
| 329 | /** |
|---|
| 330 | * Gets the value of the name property. |
|---|
| 331 | * |
|---|
| 332 | * @return |
|---|
| 333 | * possible object is |
|---|
| 334 | * {@link String } |
|---|
| 335 | * |
|---|
| 336 | */ |
|---|
| 337 | public String getName() { |
|---|
| 338 | return name; |
|---|
| 339 | } |
|---|
| 340 | |
|---|
| 341 | /** |
|---|
| 342 | * Sets the value of the name property. |
|---|
| 343 | * |
|---|
| 344 | * @param value |
|---|
| 345 | * allowed object is |
|---|
| 346 | * {@link String } |
|---|
| 347 | * |
|---|
| 348 | */ |
|---|
| 349 | public void setName(String value) { |
|---|
| 350 | this.name = value; |
|---|
| 351 | } |
|---|
| 352 | |
|---|
| 353 | /** |
|---|
| 354 | * Gets the value of the url property. |
|---|
| 355 | * |
|---|
| 356 | * @return |
|---|
| 357 | * possible object is |
|---|
| 358 | * {@link String } |
|---|
| 359 | * |
|---|
| 360 | */ |
|---|
| 361 | public String getUrl() { |
|---|
| 362 | return url; |
|---|
| 363 | } |
|---|
| 364 | |
|---|
| 365 | /** |
|---|
| 366 | * Sets the value of the url property. |
|---|
| 367 | * |
|---|
| 368 | * @param value |
|---|
| 369 | * allowed object is |
|---|
| 370 | * {@link String } |
|---|
| 371 | * |
|---|
| 372 | */ |
|---|
| 373 | public void setUrl(String value) { |
|---|
| 374 | this.url = value; |
|---|
| 375 | } |
|---|
| 376 | |
|---|
| 377 | } |
|---|
| 378 | |
|---|
| 379 | } |
|---|
| 380 | |
|---|
| 381 | |
|---|
| 382 | /** |
|---|
| 383 | * <p>Java class for anonymous complex type. |
|---|
| 384 | * |
|---|
| 385 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 386 | * |
|---|
| 387 | * <pre> |
|---|
| 388 | * <complexType> |
|---|
| 389 | * <complexContent> |
|---|
| 390 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 391 | * <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 392 | * <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}short" /> |
|---|
| 393 | * </restriction> |
|---|
| 394 | * </complexContent> |
|---|
| 395 | * </complexType> |
|---|
| 396 | * </pre> |
|---|
| 397 | * |
|---|
| 398 | * |
|---|
| 399 | */ |
|---|
| 400 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 401 | @XmlType(name = "") |
|---|
| 402 | public static class Log { |
|---|
| 403 | |
|---|
| 404 | @XmlAttribute |
|---|
| 405 | protected String url; |
|---|
| 406 | @XmlAttribute |
|---|
| 407 | protected Short level; |
|---|
| 408 | |
|---|
| 409 | /** |
|---|
| 410 | * Gets the value of the url property. |
|---|
| 411 | * |
|---|
| 412 | * @return |
|---|
| 413 | * possible object is |
|---|
| 414 | * {@link String } |
|---|
| 415 | * |
|---|
| 416 | */ |
|---|
| 417 | public String getUrl() { |
|---|
| 418 | return url; |
|---|
| 419 | } |
|---|
| 420 | |
|---|
| 421 | /** |
|---|
| 422 | * Sets the value of the url property. |
|---|
| 423 | * |
|---|
| 424 | * @param value |
|---|
| 425 | * allowed object is |
|---|
| 426 | * {@link String } |
|---|
| 427 | * |
|---|
| 428 | */ |
|---|
| 429 | public void setUrl(String value) { |
|---|
| 430 | this.url = value; |
|---|
| 431 | } |
|---|
| 432 | |
|---|
| 433 | /** |
|---|
| 434 | * Gets the value of the level property. |
|---|
| 435 | * |
|---|
| 436 | * @return |
|---|
| 437 | * possible object is |
|---|
| 438 | * {@link Short } |
|---|
| 439 | * |
|---|
| 440 | */ |
|---|
| 441 | public Short getLevel() { |
|---|
| 442 | return level; |
|---|
| 443 | } |
|---|
| 444 | |
|---|
| 445 | /** |
|---|
| 446 | * Sets the value of the level property. |
|---|
| 447 | * |
|---|
| 448 | * @param value |
|---|
| 449 | * allowed object is |
|---|
| 450 | * {@link Short } |
|---|
| 451 | * |
|---|
| 452 | */ |
|---|
| 453 | public void setLevel(Short value) { |
|---|
| 454 | this.level = value; |
|---|
| 455 | } |
|---|
| 456 | |
|---|
| 457 | } |
|---|
| 458 | |
|---|
| 459 | } |
|---|