root/tools/routingservice/branches/wrs-2.0/src/util/profile/Profiles.java

Revision 298, 17.7 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:32:51 PM JST
23//
24
25
26package util.profile;
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
37import util.Parameter;
38
39
40/**
41 * <p>Java class for anonymous complex type.
42 *
43 * <p>The following schema fragment specifies the expected content contained within this class.
44 *
45 * <pre>
46 * &lt;complexType>
47 *   &lt;complexContent>
48 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
49 *       &lt;sequence>
50 *         &lt;element name="profile" maxOccurs="unbounded">
51 *           &lt;complexType>
52 *             &lt;complexContent>
53 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
54 *                 &lt;sequence>
55 *                   &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
56 *                   &lt;element name="parameters">
57 *                     &lt;complexType>
58 *                       &lt;complexContent>
59 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
60 *                           &lt;sequence>
61 *                             &lt;element ref="{}parameter" maxOccurs="unbounded"/>
62 *                           &lt;/sequence>
63 *                         &lt;/restriction>
64 *                       &lt;/complexContent>
65 *                     &lt;/complexType>
66 *                   &lt;/element>
67 *                   &lt;element name="resources">
68 *                     &lt;complexType>
69 *                       &lt;complexContent>
70 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
71 *                           &lt;sequence>
72 *                             &lt;element name="rref" maxOccurs="unbounded">
73 *                               &lt;complexType>
74 *                                 &lt;complexContent>
75 *                                   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
76 *                                     &lt;attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}string" />
77 *                                     &lt;attribute name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" />
78 *                                   &lt;/restriction>
79 *                                 &lt;/complexContent>
80 *                               &lt;/complexType>
81 *                             &lt;/element>
82 *                           &lt;/sequence>
83 *                         &lt;/restriction>
84 *                       &lt;/complexContent>
85 *                     &lt;/complexType>
86 *                   &lt;/element>
87 *                 &lt;/sequence>
88 *                 &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
89 *                 &lt;attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" />
90 *               &lt;/restriction>
91 *             &lt;/complexContent>
92 *           &lt;/complexType>
93 *         &lt;/element>
94 *       &lt;/sequence>
95 *     &lt;/restriction>
96 *   &lt;/complexContent>
97 * &lt;/complexType>
98 * </pre>
99 *
100 *
101 */
102@XmlAccessorType(XmlAccessType.FIELD)
103@XmlType(name = "", propOrder = {
104    "profile"
105})
106@XmlRootElement(name = "profiles")
107public class Profiles {
108
109    @XmlElement(required = true)
110    protected List<Profiles.Profile> profile;
111
112    /**
113     * Gets the value of the profile property.
114     *
115     * <p>
116     * This accessor method returns a reference to the live list,
117     * not a snapshot. Therefore any modification you make to the
118     * returned list will be present inside the JAXB object.
119     * This is why there is not a <CODE>set</CODE> method for the profile property.
120     *
121     * <p>
122     * For example, to add a new item, do as follows:
123     * <pre>
124     *    getProfile().add(newItem);
125     * </pre>
126     *
127     *
128     * <p>
129     * Objects of the following type(s) are allowed in the list
130     * {@link Profiles.Profile }
131     *
132     *
133     */
134    public List<Profiles.Profile> getProfile() {
135        if (profile == null) {
136            profile = new ArrayList<Profiles.Profile>();
137        }
138        return this.profile;
139    }
140
141
142    /**
143     * <p>Java class for anonymous complex type.
144     *
145     * <p>The following schema fragment specifies the expected content contained within this class.
146     *
147     * <pre>
148     * &lt;complexType>
149     *   &lt;complexContent>
150     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
151     *       &lt;sequence>
152     *         &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
153     *         &lt;element name="parameters">
154     *           &lt;complexType>
155     *             &lt;complexContent>
156     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
157     *                 &lt;sequence>
158     *                   &lt;element ref="{}parameter" maxOccurs="unbounded"/>
159     *                 &lt;/sequence>
160     *               &lt;/restriction>
161     *             &lt;/complexContent>
162     *           &lt;/complexType>
163     *         &lt;/element>
164     *         &lt;element name="resources">
165     *           &lt;complexType>
166     *             &lt;complexContent>
167     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
168     *                 &lt;sequence>
169     *                   &lt;element name="rref" maxOccurs="unbounded">
170     *                     &lt;complexType>
171     *                       &lt;complexContent>
172     *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
173     *                           &lt;attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}string" />
174     *                           &lt;attribute name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" />
175     *                         &lt;/restriction>
176     *                       &lt;/complexContent>
177     *                     &lt;/complexType>
178     *                   &lt;/element>
179     *                 &lt;/sequence>
180     *               &lt;/restriction>
181     *             &lt;/complexContent>
182     *           &lt;/complexType>
183     *         &lt;/element>
184     *       &lt;/sequence>
185     *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
186     *       &lt;attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" />
187     *     &lt;/restriction>
188     *   &lt;/complexContent>
189     * &lt;/complexType>
190     * </pre>
191     *
192     *
193     */
194    @XmlAccessorType(XmlAccessType.FIELD)
195    @XmlType(name = "", propOrder = {
196        "description",
197        "parameters",
198        "resources"
199    })
200    public static class Profile {
201
202        @XmlElement(required = true)
203        protected String description;
204        @XmlElement(required = true)
205        protected Profiles.Profile.Parameters parameters;
206        @XmlElement(required = true)
207        protected Profiles.Profile.Resources resources;
208        @XmlAttribute
209        protected String name;
210        @XmlAttribute
211        protected String title;
212
213        /**
214         * Gets the value of the description property.
215         *
216         * @return
217         *     possible object is
218         *     {@link String }
219         *     
220         */
221        public String getDescription() {
222            return description;
223        }
224
225        /**
226         * Sets the value of the description property.
227         *
228         * @param value
229         *     allowed object is
230         *     {@link String }
231         *     
232         */
233        public void setDescription(String value) {
234            this.description = value;
235        }
236
237        /**
238         * Gets the value of the parameters property.
239         *
240         * @return
241         *     possible object is
242         *     {@link Profiles.Profile.Parameters }
243         *     
244         */
245        public Profiles.Profile.Parameters getParameters() {
246            return parameters;
247        }
248
249        /**
250         * Sets the value of the parameters property.
251         *
252         * @param value
253         *     allowed object is
254         *     {@link Profiles.Profile.Parameters }
255         *     
256         */
257        public void setParameters(Profiles.Profile.Parameters value) {
258            this.parameters = value;
259        }
260
261        /**
262         * Gets the value of the resources property.
263         *
264         * @return
265         *     possible object is
266         *     {@link Profiles.Profile.Resources }
267         *     
268         */
269        public Profiles.Profile.Resources getResources() {
270            return resources;
271        }
272
273        /**
274         * Sets the value of the resources property.
275         *
276         * @param value
277         *     allowed object is
278         *     {@link Profiles.Profile.Resources }
279         *     
280         */
281        public void setResources(Profiles.Profile.Resources value) {
282            this.resources = value;
283        }
284
285        /**
286         * Gets the value of the name property.
287         *
288         * @return
289         *     possible object is
290         *     {@link String }
291         *     
292         */
293        public String getName() {
294            return name;
295        }
296
297        /**
298         * Sets the value of the name property.
299         *
300         * @param value
301         *     allowed object is
302         *     {@link String }
303         *     
304         */
305        public void setName(String value) {
306            this.name = value;
307        }
308
309        /**
310         * Gets the value of the title property.
311         *
312         * @return
313         *     possible object is
314         *     {@link String }
315         *     
316         */
317        public String getTitle() {
318            return title;
319        }
320
321        /**
322         * Sets the value of the title property.
323         *
324         * @param value
325         *     allowed object is
326         *     {@link String }
327         *     
328         */
329        public void setTitle(String value) {
330            this.title = value;
331        }
332
333
334        /**
335         * <p>Java class for anonymous complex type.
336         *
337         * <p>The following schema fragment specifies the expected content contained within this class.
338         *
339         * <pre>
340         * &lt;complexType>
341         *   &lt;complexContent>
342         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
343         *       &lt;sequence>
344         *         &lt;element ref="{}parameter" maxOccurs="unbounded"/>
345         *       &lt;/sequence>
346         *     &lt;/restriction>
347         *   &lt;/complexContent>
348         * &lt;/complexType>
349         * </pre>
350         *
351         *
352         */
353        @XmlAccessorType(XmlAccessType.FIELD)
354        @XmlType(name = "", propOrder = {
355            "parameter"
356        })
357        public static class Parameters {
358
359            @XmlElement(required = true)
360            protected List<Parameter> parameter;
361
362            /**
363             * Gets the value of the parameter property.
364             *
365             * <p>
366             * This accessor method returns a reference to the live list,
367             * not a snapshot. Therefore any modification you make to the
368             * returned list will be present inside the JAXB object.
369             * This is why there is not a <CODE>set</CODE> method for the parameter property.
370             *
371             * <p>
372             * For example, to add a new item, do as follows:
373             * <pre>
374             *    getParameter().add(newItem);
375             * </pre>
376             *
377             *
378             * <p>
379             * Objects of the following type(s) are allowed in the list
380             * {@link Parameter }
381             *
382             *
383             */
384            public List<Parameter> getParameter() {
385                if (parameter == null) {
386                    parameter = new ArrayList<Parameter>();
387                }
388                return this.parameter;
389            }
390
391        }
392
393
394        /**
395         * <p>Java class for anonymous complex type.
396         *
397         * <p>The following schema fragment specifies the expected content contained within this class.
398         *
399         * <pre>
400         * &lt;complexType>
401         *   &lt;complexContent>
402         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
403         *       &lt;sequence>
404         *         &lt;element name="rref" maxOccurs="unbounded">
405         *           &lt;complexType>
406         *             &lt;complexContent>
407         *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
408         *                 &lt;attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}string" />
409         *                 &lt;attribute name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" />
410         *               &lt;/restriction>
411         *             &lt;/complexContent>
412         *           &lt;/complexType>
413         *         &lt;/element>
414         *       &lt;/sequence>
415         *     &lt;/restriction>
416         *   &lt;/complexContent>
417         * &lt;/complexType>
418         * </pre>
419         *
420         *
421         */
422        @XmlAccessorType(XmlAccessType.FIELD)
423        @XmlType(name = "", propOrder = {
424            "rref"
425        })
426        public static class Resources {
427
428            @XmlElement(required = true)
429            protected List<Profiles.Profile.Resources.Rref> rref;
430
431            /**
432             * Gets the value of the rref property.
433             *
434             * <p>
435             * This accessor method returns a reference to the live list,
436             * not a snapshot. Therefore any modification you make to the
437             * returned list will be present inside the JAXB object.
438             * This is why there is not a <CODE>set</CODE> method for the rref property.
439             *
440             * <p>
441             * For example, to add a new item, do as follows:
442             * <pre>
443             *    getRref().add(newItem);
444             * </pre>
445             *
446             *
447             * <p>
448             * Objects of the following type(s) are allowed in the list
449             * {@link Profiles.Profile.Resources.Rref }
450             *
451             *
452             */
453            public List<Profiles.Profile.Resources.Rref> getRref() {
454                if (rref == null) {
455                    rref = new ArrayList<Profiles.Profile.Resources.Rref>();
456                }
457                return this.rref;
458            }
459
460
461            /**
462             * <p>Java class for anonymous complex type.
463             *
464             * <p>The following schema fragment specifies the expected content contained within this class.
465             *
466             * <pre>
467             * &lt;complexType>
468             *   &lt;complexContent>
469             *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
470             *       &lt;attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}string" />
471             *       &lt;attribute name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" />
472             *     &lt;/restriction>
473             *   &lt;/complexContent>
474             * &lt;/complexType>
475             * </pre>
476             *
477             *
478             */
479            @XmlAccessorType(XmlAccessType.FIELD)
480            @XmlType(name = "")
481            public static class Rref {
482
483                @XmlAttribute
484                protected String ref;
485                @XmlAttribute
486                protected Boolean enabled;
487
488                /**
489                 * Gets the value of the ref property.
490                 *
491                 * @return
492                 *     possible object is
493                 *     {@link String }
494                 *     
495                 */
496                public String getRef() {
497                    return ref;
498                }
499
500                /**
501                 * Sets the value of the ref property.
502                 *
503                 * @param value
504                 *     allowed object is
505                 *     {@link String }
506                 *     
507                 */
508                public void setRef(String value) {
509                    this.ref = value;
510                }
511
512                /**
513                 * Gets the value of the enabled property.
514                 *
515                 * @return
516                 *     possible object is
517                 *     {@link Boolean }
518                 *     
519                 */
520                public Boolean isEnabled() {
521                    return enabled;
522                }
523
524                /**
525                 * Sets the value of the enabled property.
526                 *
527                 * @param value
528                 *     allowed object is
529                 *     {@link Boolean }
530                 *     
531                 */
532                public void setEnabled(Boolean value) {
533                    this.enabled = value;
534                }
535
536            }
537
538        }
539
540    }
541
542}
Note: See TracBrowser for help on using the browser.