1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.statement.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.ArrayList; |
20 | |
import java.util.Date; |
21 | |
import java.util.List; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAttribute; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
|
28 | |
import org.kuali.student.common.dto.HasTypeState; |
29 | |
import org.kuali.student.common.dto.Idable; |
30 | |
import org.kuali.student.common.dto.MetaInfo; |
31 | |
import org.kuali.student.common.dto.RichTextInfo; |
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
@XmlAccessorType(XmlAccessType.FIELD) |
37 | 0 | public class ReqComponentInfo implements Serializable, Idable, HasTypeState { |
38 | |
|
39 | |
private static final long serialVersionUID = 1L; |
40 | |
|
41 | |
@XmlElement |
42 | |
private RichTextInfo desc; |
43 | |
|
44 | |
@XmlElement |
45 | |
private List<ReqCompFieldInfo> reqCompFields; |
46 | |
|
47 | |
@XmlElement |
48 | |
private Date effectiveDate; |
49 | |
|
50 | |
@XmlElement |
51 | |
private Date expirationDate; |
52 | |
|
53 | |
@XmlElement |
54 | |
private MetaInfo metaInfo; |
55 | |
|
56 | |
@XmlAttribute |
57 | |
private String type; |
58 | |
|
59 | |
@XmlAttribute |
60 | |
private String state; |
61 | |
|
62 | |
@XmlAttribute |
63 | |
private String id; |
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
@XmlAttribute |
70 | |
private String naturalLanguageTranslation; |
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
public RichTextInfo getDesc() { |
76 | 0 | return desc; |
77 | |
} |
78 | |
|
79 | |
public void setDesc(RichTextInfo desc) { |
80 | 0 | this.desc = desc; |
81 | 0 | } |
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
public List<ReqCompFieldInfo> getReqCompFields() { |
87 | 0 | if(null == reqCompFields) { |
88 | 0 | reqCompFields = new ArrayList<ReqCompFieldInfo>(); |
89 | |
} |
90 | 0 | return reqCompFields; |
91 | |
} |
92 | |
|
93 | |
public void setReqCompFields(List<ReqCompFieldInfo> reqCompFields) { |
94 | 0 | this.reqCompFields = reqCompFields; |
95 | 0 | } |
96 | |
|
97 | |
|
98 | |
|
99 | |
|
100 | |
public Date getEffectiveDate() { |
101 | 0 | return effectiveDate; |
102 | |
} |
103 | |
|
104 | |
public void setEffectiveDate(Date effectiveDate) { |
105 | 0 | this.effectiveDate = effectiveDate; |
106 | 0 | } |
107 | |
|
108 | |
|
109 | |
|
110 | |
|
111 | |
public Date getExpirationDate() { |
112 | 0 | return expirationDate; |
113 | |
} |
114 | |
|
115 | |
public void setExpirationDate(Date expirationDate) { |
116 | 0 | this.expirationDate = expirationDate; |
117 | 0 | } |
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
public MetaInfo getMetaInfo() { |
123 | 0 | return metaInfo; |
124 | |
} |
125 | |
|
126 | |
public void setMetaInfo(MetaInfo metaInfo) { |
127 | 0 | this.metaInfo = metaInfo; |
128 | 0 | } |
129 | |
|
130 | |
|
131 | |
|
132 | |
|
133 | |
public String getType() { |
134 | 0 | return type; |
135 | |
} |
136 | |
|
137 | |
public void setType(String type) { |
138 | 0 | this.type = type; |
139 | 0 | } |
140 | |
|
141 | |
|
142 | |
|
143 | |
|
144 | |
public String getState() { |
145 | 0 | return state; |
146 | |
} |
147 | |
|
148 | |
public void setState(String state) { |
149 | 0 | this.state = state; |
150 | 0 | } |
151 | |
|
152 | |
|
153 | |
|
154 | |
|
155 | |
public String getId() { |
156 | 0 | return id; |
157 | |
} |
158 | |
|
159 | |
public void setId(String id) { |
160 | 0 | this.id = id; |
161 | 0 | } |
162 | |
|
163 | |
public String getNaturalLanguageTranslation() { |
164 | 0 | return naturalLanguageTranslation; |
165 | |
} |
166 | |
|
167 | |
public void setNaturalLanguageTranslation(String naturalLanguageTranslation) { |
168 | 0 | this.naturalLanguageTranslation = naturalLanguageTranslation; |
169 | 0 | } |
170 | |
|
171 | |
@Override |
172 | |
public String toString() { |
173 | 0 | String returnString ="ReqComponentInfo[id=" + id + ", type=" + type + ", state=" |
174 | |
+ state; |
175 | 0 | for(ReqCompFieldInfo info : this.getReqCompFields()){ |
176 | 0 | returnString += info.toString() + " "; |
177 | |
} |
178 | 0 | return returnString + "]"; |
179 | |
} |
180 | |
} |