1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.organization.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.List; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlAnyElement; |
24 | |
import javax.xml.bind.annotation.XmlType; |
25 | |
|
26 | |
import org.kuali.student.r2.common.dto.KeyNamelessEntityInfo; |
27 | |
import org.kuali.student.r2.common.dto.RichTextInfo; |
28 | |
import org.kuali.student.r2.core.organization.infc.OrgCode; |
29 | |
import org.w3c.dom.Element; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
37 | |
@XmlType(name = "OrgCodeInfo", propOrder = { |
38 | |
"key", "value", "descr", |
39 | |
"meta", "attributes", "_futureElements"}) |
40 | |
public class OrgCodeInfo |
41 | |
extends KeyNamelessEntityInfo |
42 | |
implements OrgCode, Serializable { |
43 | |
|
44 | |
private static final long serialVersionUID = 1L; |
45 | |
@XmlAnyElement |
46 | |
private String value; |
47 | |
@XmlAnyElement |
48 | |
private RichTextInfo descr; |
49 | |
@XmlAnyElement |
50 | |
private List<Element> _futureElements; |
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | 0 | public OrgCodeInfo() { |
56 | 0 | } |
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
public OrgCodeInfo(OrgCode orgCode) { |
64 | 0 | super(orgCode); |
65 | 0 | this.value = orgCode.getValue(); |
66 | 0 | if (orgCode.getDescr() != null) { |
67 | 0 | this.descr = new RichTextInfo (orgCode.getDescr()); |
68 | |
} |
69 | 0 | } |
70 | |
|
71 | |
@Override |
72 | |
public RichTextInfo getDescr() { |
73 | 0 | return descr; |
74 | |
} |
75 | |
|
76 | |
public void setDescr(RichTextInfo descr) { |
77 | 0 | this.descr = descr; |
78 | 0 | } |
79 | |
|
80 | |
@Override |
81 | |
public String getValue() { |
82 | 0 | return value; |
83 | |
} |
84 | |
|
85 | |
public void setValue(String value) { |
86 | 0 | this.value = value; |
87 | 0 | } |
88 | |
|
89 | |
|
90 | |
|
91 | |
} |