root/tools/routingservice/branches/wrs-2.0/src/util/resource/Resources.java

Revision 298, 18.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.26 at 01:00:53 PM JST
23//
24
25package util.resource;
26
27import java.util.ArrayList;
28import java.util.List;
29import javax.xml.bind.annotation.XmlAccessType;
30import javax.xml.bind.annotation.XmlAccessorType;
31import javax.xml.bind.annotation.XmlAttribute;
32import javax.xml.bind.annotation.XmlElement;
33import javax.xml.bind.annotation.XmlRootElement;
34import javax.xml.bind.annotation.XmlType;
35
36import util.Parameter;
37import util.Sref;
38
39/**
40 * <p>
41 * Java class for anonymous complex type.
42 *
43 * <p>
44 * The following schema fragment specifies the expected content contained within
45 * this class.
46 *
47 * <pre>
48 * &lt;complexType&gt;
49 *   &lt;complexContent&gt;
50 *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
51 *       &lt;sequence&gt;
52 *         &lt;element name=&quot;resource&quot; maxOccurs=&quot;unbounded&quot;&gt;
53 *           &lt;complexType&gt;
54 *             &lt;complexContent&gt;
55 *               &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
56 *                 &lt;sequence&gt;
57 *                   &lt;element name=&quot;description&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;/&gt;
58 *                   &lt;element name=&quot;parameters&quot;&gt;
59 *                     &lt;complexType&gt;
60 *                       &lt;complexContent&gt;
61 *                         &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
62 *                           &lt;sequence&gt;
63 *                             &lt;element ref=&quot;{}parameter&quot; maxOccurs=&quot;unbounded&quot;/&gt;
64 *                           &lt;/sequence&gt;
65 *                         &lt;/restriction&gt;
66 *                       &lt;/complexContent&gt;
67 *                     &lt;/complexType&gt;
68 *                   &lt;/element&gt;
69 *                   &lt;element name=&quot;services&quot;&gt;
70 *                     &lt;complexType&gt;
71 *                       &lt;complexContent&gt;
72 *                         &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
73 *                           &lt;sequence&gt;
74 *                             &lt;element name=&quot;sref&quot; maxOccurs=&quot;unbounded&quot;&gt;
75 *                               &lt;complexType&gt;
76 *                                 &lt;complexContent&gt;
77 *                                   &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
78 *                                     &lt;attribute name=&quot;ref&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
79 *                                     &lt;attribute name=&quot;enabled&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}boolean&quot; /&gt;
80 *                                   &lt;/restriction&gt;
81 *                                 &lt;/complexContent&gt;
82 *                               &lt;/complexType&gt;
83 *                             &lt;/element&gt;
84 *                           &lt;/sequence&gt;
85 *                         &lt;/restriction&gt;
86 *                       &lt;/complexContent&gt;
87 *                     &lt;/complexType&gt;
88 *                   &lt;/element&gt;
89 *                   &lt;element name=&quot;url&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;/&gt;
90 *                   &lt;element name=&quot;user&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;/&gt;
91 *                   &lt;element name=&quot;password&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;/&gt;
92 *                   &lt;element name=&quot;query&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;/&gt;
93 *                 &lt;/sequence&gt;
94 *                 &lt;attribute name=&quot;name&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
95 *                 &lt;attribute name=&quot;title&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
96 *                 &lt;attribute name=&quot;enable&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}boolean&quot; /&gt;
97 *                 &lt;attribute name=&quot;type&quot;&gt;
98 *                   &lt;simpleType&gt;
99 *                     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;&gt;
100 *                       &lt;enumeration value=&quot;web&quot;/&gt;
101 *                       &lt;enumeration value=&quot;database&quot;/&gt;
102 *                     &lt;/restriction&gt;
103 *                   &lt;/simpleType&gt;
104 *                 &lt;/attribute&gt;
105 *               &lt;/restriction&gt;
106 *             &lt;/complexContent&gt;
107 *           &lt;/complexType&gt;
108 *         &lt;/element&gt;
109 *       &lt;/sequence&gt;
110 *     &lt;/restriction&gt;
111 *   &lt;/complexContent&gt;
112 * &lt;/complexType&gt;
113 * </pre>
114 *
115 *
116 */
117@XmlAccessorType(XmlAccessType.FIELD)
118@XmlType(name = "", propOrder = { "resource" })
119@XmlRootElement(name = "resources")
120public class Resources
121{
122
123        @XmlElement(required = true)
124        protected List<Resources.Resource> resource;
125
126        /**
127         * Gets the value of the resource property.
128         *
129         * <p>
130         * This accessor method returns a reference to the live list, not a
131         * snapshot. Therefore any modification you make to the returned list will
132         * be present inside the JAXB object. This is why there is not a
133         * <CODE>set</CODE> method for the resource property.
134         *
135         * <p>
136         * For example, to add a new item, do as follows:
137         *
138         * <pre>
139         * getResource().add(newItem);
140         * </pre>
141         *
142         *
143         * <p>
144         * Objects of the following type(s) are allowed in the list
145         * {@link Resources.Resource }
146         *
147         *
148         */
149        public List<Resources.Resource> getResource()
150        {
151                if (resource == null)
152                {
153                        resource = new ArrayList<Resources.Resource>();
154                }
155                return this.resource;
156        }
157
158        /**
159         * <p>
160         * Java class for anonymous complex type.
161         *
162         * <p>
163         * The following schema fragment specifies the expected content contained
164         * within this class.
165         *
166         * <pre>
167         * &lt;complexType&gt;
168         *   &lt;complexContent&gt;
169         *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
170         *       &lt;sequence&gt;
171         *         &lt;element name=&quot;description&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;/&gt;
172         *         &lt;element name=&quot;parameters&quot;&gt;
173         *           &lt;complexType&gt;
174         *             &lt;complexContent&gt;
175         *               &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
176         *                 &lt;sequence&gt;
177         *                   &lt;element ref=&quot;{}parameter&quot; maxOccurs=&quot;unbounded&quot;/&gt;
178         *                 &lt;/sequence&gt;
179         *               &lt;/restriction&gt;
180         *             &lt;/complexContent&gt;
181         *           &lt;/complexType&gt;
182         *         &lt;/element&gt;
183         *         &lt;element name=&quot;services&quot;&gt;
184         *           &lt;complexType&gt;
185         *             &lt;complexContent&gt;
186         *               &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
187         *                 &lt;sequence&gt;
188         *                   &lt;element name=&quot;sref&quot; maxOccurs=&quot;unbounded&quot;&gt;
189         *                     &lt;complexType&gt;
190         *                       &lt;complexContent&gt;
191         *                         &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
192         *                           &lt;attribute name=&quot;ref&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
193         *                           &lt;attribute name=&quot;enabled&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}boolean&quot; /&gt;
194         *                         &lt;/restriction&gt;
195         *                       &lt;/complexContent&gt;
196         *                     &lt;/complexType&gt;
197         *                   &lt;/element&gt;
198         *                 &lt;/sequence&gt;
199         *               &lt;/restriction&gt;
200         *             &lt;/complexContent&gt;
201         *           &lt;/complexType&gt;
202         *         &lt;/element&gt;
203         *         &lt;element name=&quot;url&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;/&gt;
204         *         &lt;element name=&quot;user&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;/&gt;
205         *         &lt;element name=&quot;password&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;/&gt;
206         *         &lt;element name=&quot;query&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;/&gt;
207         *       &lt;/sequence&gt;
208         *       &lt;attribute name=&quot;name&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
209         *       &lt;attribute name=&quot;title&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
210         *       &lt;attribute name=&quot;enable&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}boolean&quot; /&gt;
211         *       &lt;attribute name=&quot;type&quot;&gt;
212         *         &lt;simpleType&gt;
213         *           &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}string&quot;&gt;
214         *             &lt;enumeration value=&quot;web&quot;/&gt;
215         *             &lt;enumeration value=&quot;database&quot;/&gt;
216         *           &lt;/restriction&gt;
217         *         &lt;/simpleType&gt;
218         *       &lt;/attribute&gt;
219         *     &lt;/restriction&gt;
220         *   &lt;/complexContent&gt;
221         * &lt;/complexType&gt;
222         * </pre>
223         *
224         *
225         */
226        @XmlAccessorType(XmlAccessType.FIELD)
227        @XmlType(name = "", propOrder = { "description", "parameters", "services",
228                        "url", "user", "password", "query" })
229        public static class Resource
230        {
231
232                @XmlElement(required = true)
233                protected String description;
234                @XmlElement(required = true)
235                protected Resources.Resource.Parameters parameters;
236                @XmlElement(required = true)
237                protected Resources.Resource.Services services;
238                @XmlElement(required = true)
239                protected String url;
240                @XmlElement(required = true)
241                protected String user;
242                @XmlElement(required = true)
243                protected String password;
244                @XmlElement(required = true)
245                protected String query;
246                @XmlAttribute
247                protected String name;
248                @XmlAttribute
249                protected String title;
250                @XmlAttribute
251                protected Boolean enable;
252                @XmlAttribute
253                protected String type;
254
255                /**
256                 * Gets the value of the description property.
257                 *
258                 * @return possible object is {@link String }
259                 *
260                 */
261                public String getDescription()
262                {
263                        return description;
264                }
265
266                /**
267                 * Sets the value of the description property.
268                 *
269                 * @param value
270                 *            allowed object is {@link String }
271                 *
272                 */
273                public void setDescription(String value)
274                {
275                        this.description = value;
276                }
277
278                /**
279                 * Gets the value of the parameters property.
280                 *
281                 * @return possible object is {@link Resources.Resource.Parameters }
282                 *
283                 */
284                public Resources.Resource.Parameters getParameters()
285                {
286                        return parameters;
287                }
288
289                /**
290                 * Sets the value of the parameters property.
291                 *
292                 * @param value
293                 *            allowed object is {@link Resources.Resource.Parameters }
294                 *
295                 */
296                public void setParameters(Resources.Resource.Parameters value)
297                {
298                        this.parameters = value;
299                }
300
301                /**
302                 * Gets the value of the services property.
303                 *
304                 * @return possible object is {@link Resources.Resource.Services }
305                 *
306                 */
307                public Resources.Resource.Services getServices()
308                {
309                        return services;
310                }
311
312                /**
313                 * Sets the value of the services property.
314                 *
315                 * @param value
316                 *            allowed object is {@link Resources.Resource.Services }
317                 *
318                 */
319                public void setServices(Resources.Resource.Services value)
320                {
321                        this.services = value;
322                }
323
324                /**
325                 * Gets the value of the url property.
326                 *
327                 * @return possible object is {@link String }
328                 *
329                 */
330                public String getUrl()
331                {
332                        return url;
333                }
334
335                /**
336                 * Sets the value of the url property.
337                 *
338                 * @param value
339                 *            allowed object is {@link String }
340                 *
341                 */
342                public void setUrl(String value)
343                {
344                        this.url = value;
345                }
346
347                /**
348                 * Gets the value of the user property.
349                 *
350                 * @return possible object is {@link String }
351                 *
352                 */
353                public String getUser()
354                {
355                        return user;
356                }
357
358                /**
359                 * Sets the value of the user property.
360                 *
361                 * @param value
362                 *            allowed object is {@link String }
363                 *
364                 */
365                public void setUser(String value)
366                {
367                        this.user = value;
368                }
369
370                /**
371                 * Gets the value of the password property.
372                 *
373                 * @return possible object is {@link String }
374                 *
375                 */
376                public String getPassword()
377                {
378                        return password;
379                }
380
381                /**
382                 * Sets the value of the password property.
383                 *
384                 * @param value
385                 *            allowed object is {@link String }
386                 *
387                 */
388                public void setPassword(String value)
389                {
390                        this.password = value;
391                }
392
393                /**
394                 * Gets the value of the query property.
395                 *
396                 * @return possible object is {@link String }
397                 *
398                 */
399                public String getQuery()
400                {
401                        return query;
402                }
403
404                /**
405                 * Sets the value of the query property.
406                 *
407                 * @param value
408                 *            allowed object is {@link String }
409                 *
410                 */
411                public void setQuery(String value)
412                {
413                        this.query = value;
414                }
415
416                /**
417                 * Gets the value of the name property.
418                 *
419                 * @return possible object is {@link String }
420                 *
421                 */
422                public String getName()
423                {
424                        return name;
425                }
426
427                /**
428                 * Sets the value of the name property.
429                 *
430                 * @param value
431                 *            allowed object is {@link String }
432                 *
433                 */
434                public void setName(String value)
435                {
436                        this.name = value;
437                }
438
439                /**
440                 * Gets the value of the title property.
441                 *
442                 * @return possible object is {@link String }
443                 *
444                 */
445                public String getTitle()
446                {
447                        return title;
448                }
449
450                /**
451                 * Sets the value of the title property.
452                 *
453                 * @param value
454                 *            allowed object is {@link String }
455                 *
456                 */
457                public void setTitle(String value)
458                {
459                        this.title = value;
460                }
461
462                /**
463                 * Gets the value of the enable property.
464                 *
465                 * @return possible object is {@link Boolean }
466                 *
467                 */
468                public Boolean isEnable()
469                {
470                        return enable;
471                }
472
473                /**
474                 * Sets the value of the enable property.
475                 *
476                 * @param value
477                 *            allowed object is {@link Boolean }
478                 *
479                 */
480                public void setEnable(Boolean value)
481                {
482                        this.enable = value;
483                }
484
485                /**
486                 * Gets the value of the type property.
487                 *
488                 * @return possible object is {@link String }
489                 *
490                 */
491                public String getType()
492                {
493                        return type;
494                }
495
496                /**
497                 * Sets the value of the type property.
498                 *
499                 * @param value
500                 *            allowed object is {@link String }
501                 *
502                 */
503                public void setType(String value)
504                {
505                        this.type = value;
506                }
507
508                /**
509                 * <p>
510                 * Java class for anonymous complex type.
511                 *
512                 * <p>
513                 * The following schema fragment specifies the expected content
514                 * contained within this class.
515                 *
516                 * <pre>
517                 * &lt;complexType&gt;
518                 *   &lt;complexContent&gt;
519                 *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
520                 *       &lt;sequence&gt;
521                 *         &lt;element ref=&quot;{}parameter&quot; maxOccurs=&quot;unbounded&quot;/&gt;
522                 *       &lt;/sequence&gt;
523                 *     &lt;/restriction&gt;
524                 *   &lt;/complexContent&gt;
525                 * &lt;/complexType&gt;
526                 * </pre>
527                 *
528                 *
529                 */
530                @XmlAccessorType(XmlAccessType.FIELD)
531                @XmlType(name = "", propOrder = { "parameter" })
532                public static class Parameters
533                {
534
535                        @XmlElement(required = true)
536                        protected List<Parameter> parameter;
537
538                        /**
539                         * Gets the value of the parameter property.
540                         *
541                         * <p>
542                         * This accessor method returns a reference to the live list, not a
543                         * snapshot. Therefore any modification you make to the returned
544                         * list will be present inside the JAXB object. This is why there is
545                         * not a <CODE>set</CODE> method for the parameter property.
546                         *
547                         * <p>
548                         * For example, to add a new item, do as follows:
549                         *
550                         * <pre>
551                         * getParameter().add(newItem);
552                         * </pre>
553                         *
554                         *
555                         * <p>
556                         * Objects of the following type(s) are allowed in the list
557                         * {@link Parameter }
558                         *
559                         *
560                         */
561                        public List<Parameter> getParameter()
562                        {
563                                if (parameter == null)
564                                {
565                                        parameter = new ArrayList<Parameter>();
566                                }
567                                return this.parameter;
568                        }
569
570                }
571
572                /**
573                 * <p>
574                 * Java class for anonymous complex type.
575                 *
576                 * <p>
577                 * The following schema fragment specifies the expected content
578                 * contained within this class.
579                 *
580                 * <pre>
581                 * &lt;complexType&gt;
582                 *   &lt;complexContent&gt;
583                 *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
584                 *       &lt;sequence&gt;
585                 *         &lt;element name=&quot;sref&quot; maxOccurs=&quot;unbounded&quot;&gt;
586                 *           &lt;complexType&gt;
587                 *             &lt;complexContent&gt;
588                 *               &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
589                 *                 &lt;attribute name=&quot;ref&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
590                 *                 &lt;attribute name=&quot;enabled&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}boolean&quot; /&gt;
591                 *               &lt;/restriction&gt;
592                 *             &lt;/complexContent&gt;
593                 *           &lt;/complexType&gt;
594                 *         &lt;/element&gt;
595                 *       &lt;/sequence&gt;
596                 *     &lt;/restriction&gt;
597                 *   &lt;/complexContent&gt;
598                 * &lt;/complexType&gt;
599                 * </pre>
600                 *
601                 *
602                 */
603                @XmlAccessorType(XmlAccessType.FIELD)
604                @XmlType(name = "", propOrder = { "sref" })
605                public static class Services
606                {
607
608                        @XmlElement(required = true)
609                        protected List<Sref> sref;
610
611                        /**
612                         * Gets the value of the sref property.
613                         *
614                         * <p>
615                         * This accessor method returns a reference to the live list, not a
616                         * snapshot. Therefore any modification you make to the returned
617                         * list will be present inside the JAXB object. This is why there is
618                         * not a <CODE>set</CODE> method for the sref property.
619                         *
620                         * <p>
621                         * For example, to add a new item, do as follows:
622                         *
623                         * <pre>
624                         * getSref().add(newItem);
625                         * </pre>
626                         *
627                         *
628                         * <p>
629                         * Objects of the following type(s) are allowed in the list
630                         * {@link Resources.Resource.Services.Sref }
631                         *
632                         *
633                         */
634                        public List<Sref> getSref()
635                        {
636                                if (sref == null)
637                                {
638                                        sref = new ArrayList<Sref>();
639                                }
640                                return this.sref;
641                        }
642
643
644                }
645
646        }
647
648}
Note: See TracBrowser for help on using the browser.