Blame view

src/main/java/pl/itcrowd/youtrack/api/rest/Comment.java 10.7 KB
bernard authored
1 2 3 4
//
// 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. 
l.gladek authored
5
// Generated on: 2015.12.18 at 12:37:27 PM CET 
bernard authored
6
//
bernard authored
7
package pl.itcrowd.youtrack.api.rest;
bernard authored
8
l.gladek authored
9 10 11
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
bernard authored
12 13 14 15 16 17 18 19 20
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;
l.gladek authored
21
bernard authored
22 23 24

/**
 * <p>Java class for commentType complex type.
l.gladek authored
25
 * 
bernard authored
26
 * <p>The following schema fragment specifies the expected content contained within this class.
l.gladek authored
27
 * 
bernard authored
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
 * <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
52
 *       &lt;attribute name="updated" type="{http://www.w3.org/2001/XMLSchema}long" />
bernard authored
53 54 55 56 57
 *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
l.gladek authored
58 59
 *
 * 
bernard authored
60 61 62 63 64
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "commentType", propOrder = {"content"})
public class Comment {
l.gladek authored
65 66 67 68
    @XmlAttribute
    protected String author;

    @XmlElementRefs({@XmlElementRef(name = "value", type = JAXBElement.class), @XmlElementRef(name = "replies", type = JAXBElement.class)})
bernard authored
69 70 71 72
    @XmlMixed
    protected List<Serializable> content;

    @XmlAttribute
l.gladek authored
73
    protected Long created;
bernard authored
74 75

    @XmlAttribute
l.gladek authored
76
    protected String deleted;
bernard authored
77 78

    @XmlAttribute
l.gladek authored
79
    protected String id;
bernard authored
80 81

    @XmlAttribute
l.gladek authored
82
    protected String issueId;
bernard authored
83 84

    @XmlAttribute
l.gladek authored
85
    protected String name;
bernard authored
86 87 88 89 90

    @XmlAttribute
    protected String shownForIssueAuthor;

    @XmlAttribute
l.gladek authored
91
    protected String text;
bernard authored
92
bernard authored
93 94 95
    @XmlAttribute
    protected Long updated;
l.gladek authored
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
    /**
     * Gets the value of the author property.
     *
     * @return possible object is
     * {@link String }
     */
    public String getAuthor()
    {
        return author;
    }

    /**
     * Sets the value of the author property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setAuthor(String value)
    {
        this.author = value;
    }
bernard authored
119 120 121

    /**
     * Gets the value of the content property.
l.gladek authored
122 123
     *
     * <p>
bernard authored
124 125 126 127
     * 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.
l.gladek authored
128 129
     *
     * <p>
bernard authored
130 131 132 133
     * For example, to add a new item, do as follows:
     * <pre>
     *    getContent().add(newItem);
     * </pre>
l.gladek authored
134 135 136
     *
     *
     * <p>
bernard authored
137
     * Objects of the following type(s) are allowed in the list
bernard authored
138
     * {@link JAXBElement }{@code <}{@link String }{@code >}
l.gladek authored
139 140 141 142
     * {@link String }
     * {@link JAXBElement }{@code <}{@link Comment.Value }{@code >}
     *
     *
bernard authored
143 144 145 146 147 148 149 150 151 152
     */
    public List<Serializable> getContent()
    {
        if (content == null) {
            content = new ArrayList<Serializable>();
        }
        return this.content;
    }

    /**
l.gladek authored
153 154 155 156 157
     * Gets the value of the created property.
     *
     * @return
     *     possible object is
     *     {@link Long }
bernard authored
158 159
     *
     */
l.gladek authored
160
    public Long getCreated()
bernard authored
161
    {
l.gladek authored
162
        return created;
bernard authored
163 164 165
    }

    /**
l.gladek authored
166 167 168 169 170
     * Sets the value of the created property.
     *
     * @param value
     *     allowed object is
     *     {@link Long }
bernard authored
171 172
     *
     */
l.gladek authored
173
    public void setCreated(Long value)
bernard authored
174
    {
l.gladek authored
175
        this.created = value;
bernard authored
176 177 178
    }

    /**
l.gladek authored
179 180 181 182 183
     * Gets the value of the deleted property.
     *
     * @return
     *     possible object is
     *     {@link String }
bernard authored
184 185
     *
     */
l.gladek authored
186
    public String getDeleted()
bernard authored
187
    {
l.gladek authored
188
        return deleted;
bernard authored
189 190 191
    }

    /**
l.gladek authored
192 193 194 195 196
     * Sets the value of the deleted property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
bernard authored
197 198
     *
     */
l.gladek authored
199
    public void setDeleted(String value)
bernard authored
200
    {
l.gladek authored
201
        this.deleted = value;
bernard authored
202 203 204
    }

    /**
l.gladek authored
205 206 207 208 209
     * Gets the value of the id property.
     *
     * @return
     *     possible object is
     *     {@link String }
bernard authored
210 211
     *
     */
l.gladek authored
212
    public String getId()
bernard authored
213
    {
l.gladek authored
214
        return id;
bernard authored
215 216 217
    }

    /**
l.gladek authored
218 219 220 221 222
     * Sets the value of the id property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
bernard authored
223 224
     *
     */
l.gladek authored
225
    public void setId(String value)
bernard authored
226
    {
l.gladek authored
227
        this.id = value;
bernard authored
228 229 230
    }

    /**
l.gladek authored
231 232 233 234 235
     * Gets the value of the issueId property.
     *
     * @return
     *     possible object is
     *     {@link String }
bernard authored
236 237
     *
     */
l.gladek authored
238
    public String getIssueId()
bernard authored
239
    {
l.gladek authored
240
        return issueId;
bernard authored
241 242 243
    }

    /**
l.gladek authored
244 245 246 247 248
     * Sets the value of the issueId property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
bernard authored
249 250
     *
     */
l.gladek authored
251
    public void setIssueId(String value)
bernard authored
252
    {
l.gladek authored
253
        this.issueId = value;
bernard authored
254 255 256
    }

    /**
l.gladek authored
257 258 259 260 261
     * Gets the value of the name property.
     *
     * @return
     *     possible object is
     *     {@link String }
bernard authored
262 263
     *
     */
l.gladek authored
264
    public String getName()
bernard authored
265
    {
l.gladek authored
266
        return name;
bernard authored
267 268 269
    }

    /**
l.gladek authored
270 271 272 273 274
     * Sets the value of the name property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
bernard authored
275 276
     *
     */
l.gladek authored
277
    public void setName(String value)
bernard authored
278
    {
l.gladek authored
279
        this.name = value;
bernard authored
280 281 282 283 284
    }

    /**
     * Gets the value of the shownForIssueAuthor property.
     *
l.gladek authored
285 286 287 288
     * @return
     *     possible object is
     *     {@link String }
     *
bernard authored
289 290 291 292 293 294 295 296 297
     */
    public String getShownForIssueAuthor()
    {
        return shownForIssueAuthor;
    }

    /**
     * Sets the value of the shownForIssueAuthor property.
     *
l.gladek authored
298 299 300 301
     * @param value
     *     allowed object is
     *     {@link String }
     *
bernard authored
302 303 304 305 306 307 308
     */
    public void setShownForIssueAuthor(String value)
    {
        this.shownForIssueAuthor = value;
    }

    /**
l.gladek authored
309 310 311 312 313
     * Gets the value of the text property.
     *
     * @return
     *     possible object is
     *     {@link String }
bernard authored
314 315
     *
     */
l.gladek authored
316
    public String getText()
bernard authored
317
    {
l.gladek authored
318
        return text;
bernard authored
319 320 321
    }

    /**
l.gladek authored
322 323 324 325 326
     * Sets the value of the text property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
bernard authored
327 328
     *
     */
l.gladek authored
329
    public void setText(String value)
bernard authored
330
    {
l.gladek authored
331
        this.text = value;
bernard authored
332 333
    }
bernard authored
334 335 336
    /**
     * Gets the value of the updated property.
     *
l.gladek authored
337 338 339 340
     * @return
     *     possible object is
     *     {@link Long }
     *
bernard authored
341 342 343 344 345 346 347 348 349
     */
    public Long getUpdated()
    {
        return updated;
    }

    /**
     * Sets the value of the updated property.
     *
l.gladek authored
350 351 352 353
     * @param value
     *     allowed object is
     *     {@link Long }
     *
bernard authored
354 355 356 357 358 359
     */
    public void setUpdated(Long value)
    {
        this.updated = value;
    }
bernard authored
360
    /**
bernard authored
361
     * <p>Java class for anonymous complex type.
l.gladek authored
362
     * 
bernard authored
363
     * <p>The following schema fragment specifies the expected content contained within this class.
l.gladek authored
364
     * 
bernard authored
365 366 367 368 369 370 371 372 373 374
     * <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>
l.gladek authored
375 376
     * 
     * 
bernard authored
377 378 379 380 381
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {"value"})
    public static class Value {
l.gladek authored
382 383
        @XmlAttribute
        protected String role;
bernard authored
384 385 386 387

        @XmlAttribute
        protected String type;
l.gladek authored
388 389
        @XmlValue
        protected String value;
bernard authored
390 391

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

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

        /**
         * Gets the value of the type property.
l.gladek authored
419 420 421 422
         * 
         * @return
         *     possible object is
         *     {@link String }
bernard authored
423 424 425 426 427 428 429 430 431
         *
         */
        public String getType()
        {
            return type;
        }

        /**
         * Sets the value of the type property.
l.gladek authored
432 433 434 435
         * 
         * @param value
         *     allowed object is
         *     {@link String }
bernard authored
436 437 438 439 440 441 442 443
         *
         */
        public void setType(String value)
        {
            this.type = value;
        }

        /**
l.gladek authored
444 445 446 447 448
         * Gets the value of the value property.
         *
         * @return
         *     possible object is
         *     {@link String }
bernard authored
449 450
         *
         */
l.gladek authored
451
        public String getValue()
bernard authored
452
        {
l.gladek authored
453
            return value;
bernard authored
454 455 456
        }

        /**
l.gladek authored
457 458 459 460 461
         * Sets the value of the value property.
         *
         * @param value
         *     allowed object is
         *     {@link String }
bernard authored
462 463
         *
         */
l.gladek authored
464
        public void setValue(String value)
bernard authored
465
        {
l.gladek authored
466
            this.value = value;
bernard authored
467 468 469
        }
    }
}