1 | |
package org.kuali.student.enrollment.acal; |
2 | |
|
3 | |
import java.util.Date; |
4 | |
|
5 | |
public class Milestone { |
6 | |
|
7 | |
private String id; |
8 | |
private Date endDate; |
9 | |
private boolean allDay; |
10 | |
private boolean dateRange; |
11 | |
private String name; |
12 | |
private Date startDate; |
13 | |
private String descriptionFormatted; |
14 | |
private String descriptionPlain; |
15 | |
private String type; |
16 | |
private boolean relative; |
17 | |
private String relativeMilestoneId; |
18 | |
|
19 | 0 | public Milestone() { |
20 | |
|
21 | 0 | } |
22 | |
|
23 | |
public Milestone(String id, String name, String type, String descriptionPlain, String descriptionFormatted, Date start, Date end, boolean allDay, boolean range) { |
24 | 0 | this(); |
25 | 0 | setId(id); |
26 | 0 | setName(name); |
27 | 0 | setType(type); |
28 | 0 | setDescriptionPlain(descriptionPlain); |
29 | 0 | setDescriptionFormatted(descriptionFormatted); |
30 | 0 | setStartDate(start); |
31 | 0 | setEndDate(end); |
32 | 0 | setAllDay(allDay); |
33 | 0 | setDateRange(range); |
34 | 0 | } |
35 | |
public String getId() { |
36 | 0 | return id; |
37 | |
} |
38 | |
|
39 | |
public void setId(String id) { |
40 | 0 | this.id = id; |
41 | 0 | } |
42 | |
|
43 | |
public Date getEndDate() { |
44 | 0 | return endDate; |
45 | |
} |
46 | |
|
47 | |
public void setEndDate(Date endDate) { |
48 | 0 | this.endDate = endDate; |
49 | 0 | } |
50 | |
|
51 | |
public boolean isAllDay() { |
52 | 0 | return allDay; |
53 | |
} |
54 | |
|
55 | |
public void setAllDay(boolean allDay) { |
56 | 0 | this.allDay = allDay; |
57 | 0 | } |
58 | |
|
59 | |
public boolean isDateRange() { |
60 | 0 | return dateRange; |
61 | |
} |
62 | |
|
63 | |
public void setDateRange(boolean dateRange) { |
64 | 0 | this.dateRange = dateRange; |
65 | 0 | } |
66 | |
|
67 | |
public String getName() { |
68 | 0 | return name; |
69 | |
} |
70 | |
|
71 | |
public void setName(String name) { |
72 | 0 | this.name = name; |
73 | 0 | } |
74 | |
|
75 | |
public Date getStartDate() { |
76 | 0 | return startDate; |
77 | |
} |
78 | |
|
79 | |
public void setStartDate(Date startDate) { |
80 | 0 | this.startDate = startDate; |
81 | 0 | } |
82 | |
|
83 | |
public String getDescriptionFormatted() { |
84 | 0 | return descriptionFormatted; |
85 | |
} |
86 | |
|
87 | |
public void setDescriptionFormatted(String descriptionFormatted) { |
88 | 0 | this.descriptionFormatted = descriptionFormatted; |
89 | 0 | } |
90 | |
|
91 | |
public String getDescriptionPlain() { |
92 | 0 | return descriptionPlain; |
93 | |
} |
94 | |
|
95 | |
public void setDescriptionPlain(String descriptionPlain) { |
96 | 0 | this.descriptionPlain = descriptionPlain; |
97 | 0 | } |
98 | |
|
99 | |
public String getType() { |
100 | 0 | return type; |
101 | |
} |
102 | |
|
103 | |
public void setType(String type) { |
104 | 0 | this.type = type; |
105 | 0 | } |
106 | |
|
107 | |
public boolean isRelative() { |
108 | 0 | return relative; |
109 | |
} |
110 | |
|
111 | |
public void setRelative(boolean relative) { |
112 | 0 | this.relative = relative; |
113 | 0 | } |
114 | |
|
115 | |
public String getRelativeMilestoneId() { |
116 | 0 | return relativeMilestoneId; |
117 | |
} |
118 | |
|
119 | |
public void setRelativeMilestoneId(String relativeMilestoneId) { |
120 | 0 | this.relativeMilestoneId = relativeMilestoneId; |
121 | 0 | } |
122 | |
|
123 | |
@Override |
124 | |
public String toString() { |
125 | 0 | StringBuilder builder = new StringBuilder(); |
126 | 0 | builder.append(id).append("\t"); |
127 | 0 | builder.append(name).append("\t"); |
128 | 0 | builder.append(type).append("\t"); |
129 | 0 | builder.append(descriptionPlain).append("\t"); |
130 | 0 | builder.append(descriptionFormatted).append("\t"); |
131 | 0 | builder.append(startDate).append("\t"); |
132 | 0 | builder.append(endDate).append("\t"); |
133 | 0 | builder.append(allDay).append("\t"); |
134 | 0 | builder.append(dateRange).append("\t"); |
135 | 0 | return builder.toString(); |
136 | |
} |
137 | |
|
138 | |
} |