1 package org.kuali.student.ap.schedulebuilder.dto; 2 3 import org.kuali.student.ap.schedulebuilder.infc.ScheduleBuildEvent; 4 5 import javax.xml.bind.annotation.XmlAccessType; 6 import javax.xml.bind.annotation.XmlAccessorType; 7 import javax.xml.bind.annotation.XmlAnyElement; 8 import javax.xml.bind.annotation.XmlAttribute; 9 import javax.xml.bind.annotation.XmlType; 10 import java.util.Date; 11 import java.util.List; 12 13 @XmlAccessorType(XmlAccessType.FIELD) 14 @XmlType(name = "ScheduleBuildEventInfo", propOrder = { "description", 15 "allDay", "startDate", "untilDate", "sunday", "monday", "tuesday", 16 "wednesday", "thursday", "friday", "saturday", "_futureElements" }) 17 public class ScheduleBuildEventInfo implements ScheduleBuildEvent { 18 19 private static final long serialVersionUID = 804871449240773901L; 20 21 @XmlAttribute 22 private String description; 23 24 @XmlAttribute 25 private boolean allDay; 26 27 @XmlAttribute 28 private String daysAndTimes; 29 30 @XmlAttribute 31 private Date startDate; 32 33 @XmlAttribute 34 private Date endTime; 35 36 @XmlAttribute 37 private Date untilDate; 38 39 @XmlAttribute 40 private boolean sunday; 41 42 @XmlAttribute 43 private boolean monday; 44 45 @XmlAttribute 46 private boolean tuesday; 47 48 @XmlAttribute 49 private boolean wednesday; 50 51 @XmlAttribute 52 private boolean thursday; 53 54 @XmlAttribute 55 private boolean friday; 56 57 @XmlAttribute 58 private boolean saturday; 59 60 @XmlAnyElement 61 private List<?> _futureElements; 62 63 public ScheduleBuildEventInfo() { 64 } 65 66 public ScheduleBuildEventInfo(ScheduleBuildEvent copy) { 67 this.description = copy.getDescription(); 68 this.daysAndTimes = copy.getDaysAndTimes(); 69 this.allDay = copy.isAllDay(); 70 this.startDate = copy.getStartDate(); 71 this.untilDate = copy.getUntilDate(); 72 this.sunday = copy.isSunday(); 73 this.monday = copy.isMonday(); 74 this.tuesday = copy.isTuesday(); 75 this.wednesday = copy.isWednesday(); 76 this.thursday = copy.isThursday(); 77 this.friday = copy.isFriday(); 78 this.saturday = copy.isSaturday(); 79 } 80 81 @Override 82 public String getDescription() { 83 return description; 84 } 85 86 public void setDescription(String description) { 87 this.description = description; 88 } 89 90 @Override 91 public boolean isAllDay() { 92 return allDay; 93 } 94 95 public void setAllDay(boolean allDay) { 96 this.allDay = allDay; 97 } 98 99 @Override 100 public String getDaysAndTimes() { 101 return daysAndTimes; 102 } 103 104 public void setDaysAndTimes(String daysAndTimes) { 105 this.daysAndTimes = daysAndTimes; 106 } 107 108 @Override 109 public Date getStartDate() { 110 return startDate; 111 } 112 113 public void setStartDate(Date startDate) { 114 this.startDate = startDate; 115 } 116 117 @Override 118 public Date getUntilDate() { 119 return untilDate; 120 } 121 122 public void setUntilDate(Date untilDate) { 123 this.untilDate = untilDate; 124 } 125 126 @Override 127 public boolean isSunday() { 128 return sunday; 129 } 130 131 public void setSunday(boolean sunday) { 132 this.sunday = sunday; 133 } 134 135 @Override 136 public boolean isMonday() { 137 return monday; 138 } 139 140 public void setMonday(boolean monday) { 141 this.monday = monday; 142 } 143 144 @Override 145 public boolean isTuesday() { 146 return tuesday; 147 } 148 149 public void setTuesday(boolean tuesday) { 150 this.tuesday = tuesday; 151 } 152 153 @Override 154 public boolean isWednesday() { 155 return wednesday; 156 } 157 158 public void setWednesday(boolean wednesday) { 159 this.wednesday = wednesday; 160 } 161 162 @Override 163 public boolean isThursday() { 164 return thursday; 165 } 166 167 public void setThursday(boolean thursday) { 168 this.thursday = thursday; 169 } 170 171 @Override 172 public boolean isFriday() { 173 return friday; 174 } 175 176 public void setFriday(boolean friday) { 177 this.friday = friday; 178 } 179 180 @Override 181 public boolean isSaturday() { 182 return saturday; 183 } 184 185 public void setSaturday(boolean saturday) { 186 this.saturday = saturday; 187 } 188 189 }