1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.atp.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.Date; |
20 | |
import java.util.HashMap; |
21 | |
import java.util.Map; |
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 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
28 | |
|
29 | |
import org.kuali.student.common.dto.HasAttributes; |
30 | |
import org.kuali.student.common.dto.HasTypeState; |
31 | |
import org.kuali.student.common.dto.Idable; |
32 | |
import org.kuali.student.common.dto.MetaInfo; |
33 | |
import org.kuali.student.common.dto.RichTextInfo; |
34 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
@XmlAccessorType(XmlAccessType.FIELD) |
40 | 0 | public class DateRangeInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
41 | |
|
42 | |
private static final long serialVersionUID = 1L; |
43 | |
|
44 | |
@XmlElement |
45 | |
private String name; |
46 | |
|
47 | |
@XmlElement |
48 | |
private RichTextInfo desc; |
49 | |
|
50 | |
@XmlElement(name="atpKey") |
51 | |
private String atpId; |
52 | |
|
53 | |
@XmlElement |
54 | |
private Date startDate; |
55 | |
|
56 | |
@XmlElement |
57 | |
private Date endDate; |
58 | |
|
59 | |
@XmlElement |
60 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
61 | |
private Map<String,String> attributes; |
62 | |
|
63 | |
@XmlElement |
64 | |
private MetaInfo metaInfo; |
65 | |
|
66 | |
@XmlAttribute |
67 | |
private String type; |
68 | |
|
69 | |
@XmlAttribute |
70 | |
private String state; |
71 | |
|
72 | |
@XmlAttribute(name="key") |
73 | |
private String id; |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
public String getName() { |
79 | 0 | return name; |
80 | |
} |
81 | |
|
82 | |
public void setName(String name) { |
83 | 0 | this.name = name; |
84 | 0 | } |
85 | |
|
86 | |
|
87 | |
|
88 | |
|
89 | |
public RichTextInfo getDesc() { |
90 | 0 | return desc; |
91 | |
} |
92 | |
|
93 | |
public void setDesc(RichTextInfo desc) { |
94 | 0 | this.desc = desc; |
95 | 0 | } |
96 | |
|
97 | |
|
98 | |
|
99 | |
|
100 | |
public String getAtpId() { |
101 | 0 | return atpId; |
102 | |
} |
103 | |
|
104 | |
public void setAtpId(String atpId) { |
105 | 0 | this.atpId = atpId; |
106 | 0 | } |
107 | |
|
108 | |
|
109 | |
|
110 | |
|
111 | |
public Date getStartDate() { |
112 | 0 | return startDate; |
113 | |
} |
114 | |
|
115 | |
public void setStartDate(Date startDate) { |
116 | 0 | this.startDate = startDate; |
117 | 0 | } |
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
public Date getEndDate() { |
123 | 0 | return endDate; |
124 | |
} |
125 | |
|
126 | |
public void setEndDate(Date endDate) { |
127 | 0 | this.endDate = endDate; |
128 | 0 | } |
129 | |
|
130 | |
|
131 | |
|
132 | |
|
133 | |
public Map<String,String> getAttributes() { |
134 | 0 | if (attributes == null) { |
135 | 0 | attributes = new HashMap<String,String>(); |
136 | |
} |
137 | 0 | return attributes; |
138 | |
} |
139 | |
|
140 | |
public void setAttributes(Map<String,String> attributes) { |
141 | 0 | this.attributes = attributes; |
142 | 0 | } |
143 | |
|
144 | |
|
145 | |
|
146 | |
|
147 | |
public MetaInfo getMetaInfo() { |
148 | 0 | return metaInfo; |
149 | |
} |
150 | |
|
151 | |
public void setMetaInfo(MetaInfo metaInfo) { |
152 | 0 | this.metaInfo = metaInfo; |
153 | 0 | } |
154 | |
|
155 | |
|
156 | |
|
157 | |
|
158 | |
public String getType() { |
159 | 0 | return type; |
160 | |
} |
161 | |
|
162 | |
public void setType(String type) { |
163 | 0 | this.type = type; |
164 | 0 | } |
165 | |
|
166 | |
|
167 | |
|
168 | |
|
169 | |
public String getState() { |
170 | 0 | return state; |
171 | |
} |
172 | |
|
173 | |
public void setState(String state) { |
174 | 0 | this.state = state; |
175 | 0 | } |
176 | |
|
177 | |
|
178 | |
|
179 | |
|
180 | |
public String getId() { |
181 | 0 | return id; |
182 | |
} |
183 | |
|
184 | |
public void setId(String id) { |
185 | 0 | this.id = id; |
186 | 0 | } |
187 | |
|
188 | |
} |