1ea213ca5a6bb43314b03b4242dbc81960b9da87
[mir.git] / source / mir / core / model / Content.java
1 package mir.core.model;
2
3 import java.io.Serializable;
4 import java.util.Set;
5
6 import org.apache.commons.lang.builder.ToStringBuilder;
7
8 /** @author Hibernate CodeGenerator */
9 public class Content extends Media implements Serializable {
10
11     /** persistent field */
12     private boolean isHtml;
13
14     /** nullable persistent field */
15     private String contentData;
16
17     /** persistent field */
18     private ArticleType articleType;
19
20     /** nullable persistent field */
21     private mir.core.model.Content parentContent;
22
23     /** persistent field */
24     private Set childContent;
25
26     /** persistent field */
27     private Set topics;
28
29     /** persistent field */
30     private Set attachedMedias;
31
32     /** default constructor */
33     public Content() {
34     }
35
36     public boolean isIsHtml() {
37         return this.isHtml;
38     }
39
40     public void setIsHtml(boolean isHtml) {
41         this.isHtml = isHtml;
42     }
43
44     public java.lang.String getContentData() {
45         return this.contentData;
46     }
47
48     public void setContentData(java.lang.String contentData) {
49         this.contentData = contentData;
50     }
51
52     public ArticleType getArticleType() {
53         return this.articleType;
54     }
55
56     public void setArticleType(ArticleType articleType) {
57         this.articleType = articleType;
58     }
59
60     public mir.core.model.Content getParentContent() {
61         return this.parentContent;
62     }
63
64     public void setParentContent(mir.core.model.Content parentContent) {
65         this.parentContent = parentContent;
66     }
67
68     public Set getChildContent() {
69         return this.childContent;
70     }
71
72     public void setChildContent(Set childContent) {
73         this.childContent = childContent;
74     }
75
76     public Set getTopics() {
77         return this.topics;
78     }
79
80     public void setTopics(Set topics) {
81         this.topics = topics;
82     }
83
84     public Set getAttachedMedias() {
85         return this.attachedMedias;
86     }
87
88     public void setAttachedMedias(Set attachedMedias) {
89         this.attachedMedias = attachedMedias;
90     }
91
92     public String toString() {
93         return new ToStringBuilder(this)
94             .append("id", getId())
95             .toString();
96     }
97
98 }