Blame view

src/main/java/pl/itcrowd/youtrack/api/rest/Comment.java 10.4 KB
bernard authored
1 2 3 4 5
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
//
bernard authored
6
package pl.itcrowd.youtrack.api.rest;
bernard authored
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

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>Java class for commentType complex type.
 * <p/>
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p/>
 * <pre>
 * &lt;complexType name="commentType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="replies" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="value" maxOccurs="unbounded" minOccurs="0">
 *           &lt;complexType>
 *             &lt;simpleContent>
 *               &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
 *                 &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 &lt;attribute name="role" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               &lt;/extension>
 *             &lt;/simpleContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="author" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="issueId" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="deleted" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="text" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="shownForIssueAuthor" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="created" type="{http://www.w3.org/2001/XMLSchema}long" />
bernard authored
50
 *       &lt;attribute name="updated" type="{http://www.w3.org/2001/XMLSchema}long" />
bernard authored
51 52 53 54 55 56 57 58 59 60
 *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "commentType", propOrder = {"content"})
public class Comment {
bernard authored
61
    @XmlElementRefs({@XmlElementRef(name = "replies", type = JAXBElement.class), @XmlElementRef(name = "value", type = JAXBElement.class)})
bernard authored
62 63 64 65
    @XmlMixed
    protected List<Serializable> content;

    @XmlAttribute
bernard authored
66
    protected String id;
bernard authored
67 68

    @XmlAttribute
bernard authored
69
    protected String author;
bernard authored
70 71

    @XmlAttribute
bernard authored
72
    protected String issueId;
bernard authored
73 74

    @XmlAttribute
bernard authored
75
    protected String deleted;
bernard authored
76 77

    @XmlAttribute
bernard authored
78
    protected String text;
bernard authored
79 80 81 82 83

    @XmlAttribute
    protected String shownForIssueAuthor;

    @XmlAttribute
bernard authored
84
    protected Long created;
bernard authored
85
bernard authored
86 87 88
    @XmlAttribute
    protected Long updated;
bernard authored
89 90
    @XmlAttribute
    protected String name;
bernard authored
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109

    /**
     * Gets the value of the content property.
     * <p/>
     * <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 content property.
     * <p/>
     * <p/>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getContent().add(newItem);
     * </pre>
     * <p/>
     * <p/>
     * <p/>
     * Objects of the following type(s) are allowed in the list
bernard authored
110 111
     * {@link JAXBElement }{@code <}{@link Comment.Value }{@code >}
     * {@link JAXBElement }{@code <}{@link String }{@code >}
bernard authored
112
     * {@link String }
bernard authored
113 114 115 116 117 118 119 120 121 122
     */
    public List<Serializable> getContent()
    {
        if (content == null) {
            content = new ArrayList<Serializable>();
        }
        return this.content;
    }

    /**
bernard authored
123
     * Gets the value of the id property.
bernard authored
124 125
     *
     * @return possible object is
bernard authored
126
     *         {@link String }
bernard authored
127
     */
bernard authored
128
    public String getId()
bernard authored
129
    {
bernard authored
130
        return id;
bernard authored
131 132 133
    }

    /**
bernard authored
134
     * Sets the value of the id property.
bernard authored
135 136
     *
     * @param value allowed object is
bernard authored
137
     *              {@link String }
bernard authored
138
     */
bernard authored
139
    public void setId(String value)
bernard authored
140
    {
bernard authored
141
        this.id = value;
bernard authored
142 143 144
    }

    /**
bernard authored
145
     * Gets the value of the author property.
bernard authored
146 147 148 149
     *
     * @return possible object is
     *         {@link String }
     */
bernard authored
150
    public String getAuthor()
bernard authored
151
    {
bernard authored
152
        return author;
bernard authored
153 154 155
    }

    /**
bernard authored
156
     * Sets the value of the author property.
bernard authored
157 158 159 160
     *
     * @param value allowed object is
     *              {@link String }
     */
bernard authored
161
    public void setAuthor(String value)
bernard authored
162
    {
bernard authored
163
        this.author = value;
bernard authored
164 165 166
    }

    /**
bernard authored
167
     * Gets the value of the issueId property.
bernard authored
168 169 170 171
     *
     * @return possible object is
     *         {@link String }
     */
bernard authored
172
    public String getIssueId()
bernard authored
173
    {
bernard authored
174
        return issueId;
bernard authored
175 176 177
    }

    /**
bernard authored
178
     * Sets the value of the issueId property.
bernard authored
179 180 181 182
     *
     * @param value allowed object is
     *              {@link String }
     */
bernard authored
183
    public void setIssueId(String value)
bernard authored
184
    {
bernard authored
185
        this.issueId = value;
bernard authored
186 187 188
    }

    /**
bernard authored
189
     * Gets the value of the deleted property.
bernard authored
190 191 192 193
     *
     * @return possible object is
     *         {@link String }
     */
bernard authored
194
    public String getDeleted()
bernard authored
195
    {
bernard authored
196
        return deleted;
bernard authored
197 198 199
    }

    /**
bernard authored
200
     * Sets the value of the deleted property.
bernard authored
201 202 203 204
     *
     * @param value allowed object is
     *              {@link String }
     */
bernard authored
205
    public void setDeleted(String value)
bernard authored
206
    {
bernard authored
207
        this.deleted = value;
bernard authored
208 209 210
    }

    /**
bernard authored
211
     * Gets the value of the text property.
bernard authored
212 213 214 215
     *
     * @return possible object is
     *         {@link String }
     */
bernard authored
216
    public String getText()
bernard authored
217
    {
bernard authored
218
        return text;
bernard authored
219 220 221
    }

    /**
bernard authored
222
     * Sets the value of the text property.
bernard authored
223 224 225 226
     *
     * @param value allowed object is
     *              {@link String }
     */
bernard authored
227
    public void setText(String value)
bernard authored
228
    {
bernard authored
229
        this.text = value;
bernard authored
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
    }

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

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

    /**
bernard authored
255
     * Gets the value of the created property.
bernard authored
256 257
     *
     * @return possible object is
bernard authored
258
     *         {@link Long }
bernard authored
259
     */
bernard authored
260
    public Long getCreated()
bernard authored
261
    {
bernard authored
262
        return created;
bernard authored
263 264 265
    }

    /**
bernard authored
266
     * Sets the value of the created property.
bernard authored
267 268
     *
     * @param value allowed object is
bernard authored
269
     *              {@link Long }
bernard authored
270
     */
bernard authored
271
    public void setCreated(Long value)
bernard authored
272
    {
bernard authored
273
        this.created = value;
bernard authored
274 275
    }
bernard authored
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
    /**
     * Gets the value of the updated property.
     *
     * @return possible object is
     *         {@link Long }
     */
    public Long getUpdated()
    {
        return updated;
    }

    /**
     * Sets the value of the updated property.
     *
     * @param value allowed object is
     *              {@link Long }
     */
    public void setUpdated(Long value)
    {
        this.updated = value;
    }
bernard authored
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
    /**
     * Gets the value of the name property.
     *
     * @return possible object is
     *         {@link String }
     */
    public String getName()
    {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value allowed object is
     *              {@link String }
     */
    public void setName(String value)
    {
        this.name = value;
    }
bernard authored
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339

    /**
     * <p>Java class for anonymous complex type.
     * <p/>
     * <p>The following schema fragment specifies the expected content contained within this class.
     * <p/>
     * <pre>
     * &lt;complexType>
     *   &lt;simpleContent>
     *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
     *       &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       &lt;attribute name="role" type="{http://www.w3.org/2001/XMLSchema}string" />
     *     &lt;/extension>
     *   &lt;/simpleContent>
     * &lt;/complexType>
     * </pre>
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {"value"})
    public static class Value {
bernard authored
340 341
        @XmlValue
        protected String value;
bernard authored
342 343 344 345

        @XmlAttribute
        protected String type;
bernard authored
346 347
        @XmlAttribute
        protected String role;
bernard authored
348 349

        /**
bernard authored
350
         * Gets the value of the value property.
bernard authored
351 352 353 354
         *
         * @return possible object is
         *         {@link String }
         */
bernard authored
355
        public String getValue()
bernard authored
356
        {
bernard authored
357
            return value;
bernard authored
358 359 360
        }

        /**
bernard authored
361
         * Sets the value of the value property.
bernard authored
362 363 364 365
         *
         * @param value allowed object is
         *              {@link String }
         */
bernard authored
366
        public void setValue(String value)
bernard authored
367
        {
bernard authored
368
            this.value = value;
bernard authored
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393
        }

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

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

        /**
bernard authored
394
         * Gets the value of the role property.
bernard authored
395 396 397 398
         *
         * @return possible object is
         *         {@link String }
         */
bernard authored
399
        public String getRole()
bernard authored
400
        {
bernard authored
401
            return role;
bernard authored
402 403 404
        }

        /**
bernard authored
405
         * Sets the value of the role property.
bernard authored
406 407 408 409
         *
         * @param value allowed object is
         *              {@link String }
         */
bernard authored
410
        public void setRole(String value)
bernard authored
411
        {
bernard authored
412
            this.role = value;
bernard authored
413 414 415
        }
    }
}