1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.kuali.student.contract.model.test.source;
16
17 import java.io.Serializable;
18 import java.util.Date;
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.XmlElement;
25 import javax.xml.bind.annotation.XmlType;
26 import org.kuali.student.contract.model.test.source.KeyEntityInfo;
27
28 import org.w3c.dom.Element;
29
30 @XmlAccessorType(XmlAccessType.FIELD)
31 @XmlType(name = "AtpInfo", propOrder = { "key", "typeKey", "stateKey", "name",
32 "descr", "startDate", "endDate", "meta", "attributes",
33 "_futureElements" })
34 public class AtpInfo extends KeyEntityInfo implements Serializable {
35
36 private static final long serialVersionUID = 1L;
37 @XmlElement
38 private Date startDate;
39 @XmlElement
40 private Date endDate;
41 @XmlAnyElement
42 private List<Element> _futureElements;
43
44 public static AtpInfo newInstance() {
45 return new AtpInfo();
46 }
47
48 public AtpInfo() {
49 startDate = null;
50 endDate = null;
51 _futureElements = null;
52 }
53
54
55 public Date getStartDate() {
56 return startDate != null ? new Date(startDate.getTime()) : null;
57 }
58
59
60 public void setStartDate(Date startDate) {
61 if (startDate != null)
62 this.startDate = new Date(startDate.getTime());
63 }
64
65 public Date getEndDate() {
66 return endDate != null ? new Date(endDate.getTime()) : null;
67 }
68
69
70 public void setEndDate(Date endDate) {
71 if (endDate != null)
72 this.endDate = new Date(endDate.getTime());
73 }
74 }