Advertisement
Guest User

Auto-Generated ThreadDTO

a guest
Aug 15th, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5.17 KB | None | 0 0
  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
  3. // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
  4. // Any modifications to this file will be lost upon recompilation of the source schema.
  5. // Generated on: 2015.08.15
  6. //
  7.  
  8.  
  9. package org.runelight.dto;
  10.  
  11. import java.util.LinkedList;
  12. import java.util.List;
  13. import javax.xml.bind.annotation.XmlAccessType;
  14. import javax.xml.bind.annotation.XmlAccessorType;
  15. import javax.xml.bind.annotation.XmlElement;
  16. import javax.xml.bind.annotation.XmlType;
  17.  
  18.  
  19. /**
  20.  * <p>Java class for ThreadDTO complex type.
  21.  *
  22.  * <p>The following schema fragment specifies the expected content contained within this class.
  23.  *
  24.  * <pre>
  25.  * &lt;complexType name="ThreadDTO">
  26.  *   &lt;complexContent>
  27.  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  28.  *       &lt;sequence>
  29.  *         &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
  30.  *         &lt;element name="mainMessageId" type="{http://www.w3.org/2001/XMLSchema}int"/>
  31.  *         &lt;element name="messageCount" type="{http://www.w3.org/2001/XMLSchema}int"/>
  32.  *         &lt;element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
  33.  *         &lt;element name="canReply" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
  34.  *         &lt;element name="messageList" type="{http://org.runelight}MessageViewDTO" maxOccurs="unbounded"/>
  35.  *       &lt;/sequence>
  36.  *     &lt;/restriction>
  37.  *   &lt;/complexContent>
  38.  * &lt;/complexType>
  39.  * </pre>
  40.  *
  41.  *
  42.  */
  43. @XmlAccessorType(XmlAccessType.FIELD)
  44. @XmlType(name = "ThreadDTO", propOrder = {
  45.     "id",
  46.     "mainMessageId",
  47.     "messageCount",
  48.     "title",
  49.     "canReply",
  50.     "messageList"
  51. })
  52. public class ThreadDTO {
  53.  
  54.     protected int id;
  55.     protected int mainMessageId;
  56.     protected int messageCount;
  57.     @XmlElement(required = true)
  58.     protected String title;
  59.     protected boolean canReply;
  60.     @XmlElement(required = true)
  61.     protected List<MessageViewDTO> messageList = new LinkedList<MessageViewDTO>();
  62.  
  63.     /**
  64.      * Default no-arg constructor
  65.      *
  66.      */
  67.     public ThreadDTO() {
  68.         super();
  69.     }
  70.  
  71.     /**
  72.      * Fully-initialising value constructor
  73.      *
  74.      */
  75.     public ThreadDTO(final int id, final int mainMessageId, final int messageCount, final String title, final boolean canReply, final List<MessageViewDTO> messageList) {
  76.         this.id = id;
  77.         this.mainMessageId = mainMessageId;
  78.         this.messageCount = messageCount;
  79.         this.title = title;
  80.         this.canReply = canReply;
  81.         this.messageList = messageList;
  82.     }
  83.  
  84.     /**
  85.      * Gets the value of the id property.
  86.      *
  87.      */
  88.     public int getId() {
  89.         return id;
  90.     }
  91.  
  92.     /**
  93.      * Sets the value of the id property.
  94.      *
  95.      */
  96.     public void setId(int value) {
  97.         this.id = value;
  98.     }
  99.  
  100.     /**
  101.      * Gets the value of the mainMessageId property.
  102.      *
  103.      */
  104.     public int getMainMessageId() {
  105.         return mainMessageId;
  106.     }
  107.  
  108.     /**
  109.      * Sets the value of the mainMessageId property.
  110.      *
  111.      */
  112.     public void setMainMessageId(int value) {
  113.         this.mainMessageId = value;
  114.     }
  115.  
  116.     /**
  117.      * Gets the value of the messageCount property.
  118.      *
  119.      */
  120.     public int getMessageCount() {
  121.         return messageCount;
  122.     }
  123.  
  124.     /**
  125.      * Sets the value of the messageCount property.
  126.      *
  127.      */
  128.     public void setMessageCount(int value) {
  129.         this.messageCount = value;
  130.     }
  131.  
  132.     /**
  133.      * Gets the value of the title property.
  134.      *
  135.      * @return
  136.      *     possible object is
  137.      *     {@link String }
  138.      *    
  139.      */
  140.     public String getTitle() {
  141.         return title;
  142.     }
  143.  
  144.     /**
  145.      * Sets the value of the title property.
  146.      *
  147.      * @param value
  148.      *     allowed object is
  149.      *     {@link String }
  150.      *    
  151.      */
  152.     public void setTitle(String value) {
  153.         this.title = value;
  154.     }
  155.  
  156.     /**
  157.      * Gets the value of the canReply property.
  158.      *
  159.      */
  160.     public boolean isCanReply() {
  161.         return canReply;
  162.     }
  163.  
  164.     /**
  165.      * Sets the value of the canReply property.
  166.      *
  167.      */
  168.     public void setCanReply(boolean value) {
  169.         this.canReply = value;
  170.     }
  171.  
  172.     /**
  173.      * Gets the value of the messageList property.
  174.      *
  175.      * <p>
  176.      * This accessor method returns a reference to the live list,
  177.      * not a snapshot. Therefore any modification you make to the
  178.      * returned list will be present inside the JAXB object.
  179.      * This is why there is not a <CODE>set</CODE> method for the messageList property.
  180.      *
  181.      * <p>
  182.      * For example, to add a new item, do as follows:
  183.      * <pre>
  184.      *    getMessageList().add(newItem);
  185.      * </pre>
  186.      *
  187.      *
  188.      * <p>
  189.      * Objects of the following type(s) are allowed in the list
  190.      * {@link MessageViewDTO }
  191.      *
  192.      *
  193.      */
  194.     public List<MessageViewDTO> getMessageList() {
  195.         if (messageList == null) {
  196.             messageList = new LinkedList<MessageViewDTO>();
  197.         }
  198.         return this.messageList;
  199.     }
  200.  
  201. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement