1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.organization.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.HashMap; |
20 | |
import java.util.Map; |
21 | |
|
22 | |
import javax.xml.bind.annotation.XmlAccessType; |
23 | |
import javax.xml.bind.annotation.XmlAccessorType; |
24 | |
import javax.xml.bind.annotation.XmlAttribute; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
27 | |
|
28 | |
import org.kuali.student.common.dto.HasAttributes; |
29 | |
import org.kuali.student.common.dto.Idable; |
30 | |
import org.kuali.student.common.dto.MetaInfo; |
31 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
@XmlAccessorType(XmlAccessType.FIELD) |
37 | 0 | public class OrgCodeInfo implements Serializable, Idable, HasAttributes { |
38 | |
|
39 | |
private static final long serialVersionUID = 1L; |
40 | |
|
41 | |
@XmlElement |
42 | |
private String desc; |
43 | |
|
44 | |
@XmlElement |
45 | |
private String value; |
46 | |
|
47 | |
@XmlElement |
48 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
49 | |
private Map<String, String> attributes; |
50 | |
|
51 | |
@XmlElement |
52 | |
private MetaInfo metaInfo; |
53 | |
|
54 | |
@XmlAttribute(name="key") |
55 | |
private String id; |
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
public String getDesc() { |
61 | 0 | return desc; |
62 | |
} |
63 | |
|
64 | |
public void setDesc(String desc) { |
65 | 0 | this.desc = desc; |
66 | 0 | } |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
public String getValue() { |
72 | 0 | return value; |
73 | |
} |
74 | |
|
75 | |
public void setValue(String value) { |
76 | 0 | this.value = value; |
77 | 0 | } |
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | |
public Map<String, String> getAttributes() { |
83 | 0 | if (attributes == null) { |
84 | 0 | attributes = new HashMap<String, String>(); |
85 | |
} |
86 | 0 | return attributes; |
87 | |
} |
88 | |
|
89 | |
public void setAttributes(Map<String, String> attributes) { |
90 | 0 | this.attributes = attributes; |
91 | 0 | } |
92 | |
|
93 | |
|
94 | |
|
95 | |
|
96 | |
public MetaInfo getMetaInfo() { |
97 | 0 | return metaInfo; |
98 | |
} |
99 | |
|
100 | |
public void setMetaInfo(MetaInfo metaInfo) { |
101 | 0 | this.metaInfo = metaInfo; |
102 | 0 | } |
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | |
public String getId() { |
108 | 0 | return id; |
109 | |
} |
110 | |
|
111 | |
public void setId(String id) { |
112 | 0 | this.id = id; |
113 | 0 | } |
114 | |
} |