Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
package org.litesoft.rest.quotes.v1;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.litesoft.rest.adapters.JAXBgeneratedClassSuperClass;


/**
 * <p>Java class for anonymous complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="Quotes">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="Quote" type="{}Quote" maxOccurs="unbounded"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *       &lt;attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "quotes"
})
@XmlRootElement(name = "Result")
public class Result
    extends JAXBgeneratedClassSuperClass
    implements Serializable
{

    @XmlElement(name = "Quotes", required = true)
    protected Result.Quotes quotes;
    @XmlAttribute(name = "version", required = true)
    protected String version;

    /**
     * Default no-arg constructor
     * 
     */
    public Result() {
        super();
    }

    /**
     * Fully-initialising value constructor
     * 
     */
    public Result(final Result.Quotes quotes, final String version) {
        super();
        this.quotes = quotes;
        this.version = version;
    }

    /**
     * Gets the value of the quotes property.
     * 
     * @return
     *     possible object is
     *     {@link Result.Quotes }
     *     
     */
    public Result.Quotes getQuotes() {
        return quotes;
    }

    /**
     * Sets the value of the quotes property.
     * 
     * @param value
     *     allowed object is
     *     {@link Result.Quotes }
     *     
     */
    public void setQuotes(Result.Quotes value) {
        this.quotes = value;
    }

    /**
     * Gets the value of the version property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getVersion() {
        return version;
    }

    /**
     * Sets the value of the version property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setVersion(String value) {
        this.version = value;
    }

    public Result.Quotes getQuotes_() {
        Quotes zCur = getQuotes();
        if ( zCur == null )   setQuotes( zCur = new Quotes() );
        return zCur;
    }

    public List<Quote> getQuotes_Quotes() {
        return getQuotes_().getQuotes();
    }

    public void setQuotes_Quotes(List<Quote> values) {
        getQuotes_().setQuotes( values );
    }

    public Result withQuotes(Result.Quotes value) {
        setQuotes(value);
        return this;
    }

    public Result withVersion(String value) {
        setVersion(value);
        return this;
    }

    public Result withQuotes_Quotes(Quote... values) {
        if (values!= null) {
            for (Quote value: values) {
                getQuotes_Quotes().add(value);
            }
        }
        return this;
    }

    public Result withQuotes_Quotes(Collection<Quote> values) {
        if (values!= null) {
            getQuotes_Quotes().addAll(values);
        }
        return this;
    }

    public Result withQuotes_Quotes(List<Quote> values) {
        setQuotes_Quotes(values);
        return this;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="Quote" type="{}Quote" maxOccurs="unbounded"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "quotes"
    })
    public static class Quotes
        extends JAXBgeneratedClassSuperClass
        implements Serializable
    {

        @XmlElement(name = "Quote", required = true)
        protected List<Quote> quotes;

        /**
         * Default no-arg constructor
         * 
         */
        public Quotes() {
            super();
        }

        /**
         * Fully-initialising value constructor
         * 
         */
        public Quotes(final List<Quote> quotes) {
            super();
            this.quotes = quotes;
        }

        /**
         * Gets the value of the quotes property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the quotes property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getQuotes().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link Quote }
         * 
         * 
         */
        public List<Quote> getQuotes() {
            if (quotes == null) {
                quotes = new ArrayList<Quote>();
            }
            return this.quotes;
        }

        public void setQuotes(List<Quote> values) {
            List<Quote> zCollectionl = this.getQuotes();
            zCollectionl.addAll(values);
        }

        public Result.Quotes withQuotes(Quote... values) {
            if (values!= null) {
                for (Quote value: values) {
                    getQuotes().add(value);
                }
            }
            return this;
        }

        public Result.Quotes withQuotes(Collection<Quote> values) {
            if (values!= null) {
                getQuotes().addAll(values);
            }
            return this;
        }

        public Result.Quotes withQuotes(List<Quote> values) {
            setQuotes(values);
            return this;
        }

    }

}

Commits for litesoft/trunk/Java/Rest/RestfulDTOs/DTO_Quotes_v1/src/org/litesoft/rest/quotes/v1/Result.java

Diff revisions: vs.
Revision Author Commited Message
793 GeorgeS picture GeorgeS Sun 12 Aug, 2012 22:56:28 +0000