root/tools/routingservice/branches/wrs-2.0/src/util/conf/Configuration.java

Revision 298, 13.5 KB (checked in by anton, 19 months ago)

Parameter values overriding implemented, GPL headers added

Line 
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
26package util.conf;
27
28import java.util.ArrayList;
29import java.util.List;
30import javax.xml.bind.annotation.XmlAccessType;
31import javax.xml.bind.annotation.XmlAccessorType;
32import javax.xml.bind.annotation.XmlAttribute;
33import javax.xml.bind.annotation.XmlElement;
34import javax.xml.bind.annotation.XmlRootElement;
35import 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 * &lt;complexType>
49 *   &lt;complexContent>
50 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
51 *       &lt;sequence>
52 *         &lt;element name="port" type="{http://www.w3.org/2001/XMLSchema}short" minOccurs="0"/>
53 *         &lt;element name="log" minOccurs="0">
54 *           &lt;complexType>
55 *             &lt;complexContent>
56 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
57 *                 &lt;attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
58 *                 &lt;attribute name="level" type="{http://www.w3.org/2001/XMLSchema}short" />
59 *               &lt;/restriction>
60 *             &lt;/complexContent>
61 *           &lt;/complexType>
62 *         &lt;/element>
63 *         &lt;element name="includes" minOccurs="0">
64 *           &lt;complexType>
65 *             &lt;complexContent>
66 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
67 *                 &lt;sequence>
68 *                   &lt;element name="include" maxOccurs="4" minOccurs="4">
69 *                     &lt;complexType>
70 *                       &lt;complexContent>
71 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
72 *                           &lt;attribute name="name">
73 *                             &lt;simpleType>
74 *                               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
75 *                                 &lt;enumeration value="profiles"/>
76 *                                 &lt;enumeration value="services"/>
77 *                                 &lt;enumeration value="templates"/>
78 *                                 &lt;enumeration value="resources"/>
79 *                               &lt;/restriction>
80 *                             &lt;/simpleType>
81 *                           &lt;/attribute>
82 *                           &lt;attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
83 *                         &lt;/restriction>
84 *                       &lt;/complexContent>
85 *                     &lt;/complexType>
86 *                   &lt;/element>
87 *                 &lt;/sequence>
88 *               &lt;/restriction>
89 *             &lt;/complexContent>
90 *           &lt;/complexType>
91 *         &lt;/element>
92 *       &lt;/sequence>
93 *       &lt;attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="1.1.0" />
94 *     &lt;/restriction>
95 *   &lt;/complexContent>
96 * &lt;/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")
108public 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     * &lt;complexType>
224     *   &lt;complexContent>
225     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
226     *       &lt;sequence>
227     *         &lt;element name="include" maxOccurs="4" minOccurs="4">
228     *           &lt;complexType>
229     *             &lt;complexContent>
230     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
231     *                 &lt;attribute name="name">
232     *                   &lt;simpleType>
233     *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
234     *                       &lt;enumeration value="profiles"/>
235     *                       &lt;enumeration value="services"/>
236     *                       &lt;enumeration value="templates"/>
237     *                       &lt;enumeration value="resources"/>
238     *                     &lt;/restriction>
239     *                   &lt;/simpleType>
240     *                 &lt;/attribute>
241     *                 &lt;attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
242     *               &lt;/restriction>
243     *             &lt;/complexContent>
244     *           &lt;/complexType>
245     *         &lt;/element>
246     *       &lt;/sequence>
247     *     &lt;/restriction>
248     *   &lt;/complexContent>
249     * &lt;/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         * &lt;complexType>
300         *   &lt;complexContent>
301         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
302         *       &lt;attribute name="name">
303         *         &lt;simpleType>
304         *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
305         *             &lt;enumeration value="profiles"/>
306         *             &lt;enumeration value="services"/>
307         *             &lt;enumeration value="templates"/>
308         *             &lt;enumeration value="resources"/>
309         *           &lt;/restriction>
310         *         &lt;/simpleType>
311         *       &lt;/attribute>
312         *       &lt;attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
313         *     &lt;/restriction>
314         *   &lt;/complexContent>
315         * &lt;/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     * &lt;complexType>
389     *   &lt;complexContent>
390     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
391     *       &lt;attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
392     *       &lt;attribute name="level" type="{http://www.w3.org/2001/XMLSchema}short" />
393     *     &lt;/restriction>
394     *   &lt;/complexContent>
395     * &lt;/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}
Note: See TracBrowser for help on using the browser.