| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
package org.kuali.student.enrollment.exemption.dto; |
| 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 | |
|
| 27 | |
import org.kuali.student.enrollment.exemption.infc.DateOverride; |
| 28 | |
import org.w3c.dom.Element; |
| 29 | |
|
| 30 | |
@XmlAccessorType(XmlAccessType.FIELD) |
| 31 | |
@XmlType(name = "DateOverrideInfo", propOrder = { "milestoneKey", "effectiveStartDate", |
| 32 | |
"effectiveEndDate", "_futureElements" }) |
| 33 | |
|
| 34 | |
public class DateOverrideInfo implements DateOverride, Serializable { |
| 35 | |
private static final long serialVersionUID = 1L; |
| 36 | |
|
| 37 | |
@XmlElement |
| 38 | |
private String milestoneKey; |
| 39 | |
|
| 40 | |
@XmlElement |
| 41 | |
private Date effectiveStartDate; |
| 42 | |
|
| 43 | |
@XmlElement |
| 44 | |
private Date effectiveEndDate; |
| 45 | |
|
| 46 | |
@XmlAnyElement |
| 47 | |
private List<Element> _futureElements; |
| 48 | |
|
| 49 | |
public DateOverrideInfo() { |
| 50 | 0 | super(); |
| 51 | 0 | milestoneKey = null; |
| 52 | 0 | effectiveStartDate = null; |
| 53 | 0 | effectiveEndDate = null; |
| 54 | 0 | _futureElements = null; |
| 55 | 0 | } |
| 56 | |
|
| 57 | |
|
| 58 | |
|
| 59 | |
|
| 60 | |
|
| 61 | |
|
| 62 | |
public DateOverrideInfo(DateOverride dateOverride) { |
| 63 | 0 | super(); |
| 64 | 0 | if (null != dateOverride) { |
| 65 | 0 | this.milestoneKey = dateOverride.getMilestoneKey(); |
| 66 | 0 | this.effectiveStartDate = dateOverride.getEffectiveStartDate(); |
| 67 | 0 | this.effectiveEndDate = dateOverride.getEffectiveEndDate(); |
| 68 | |
} |
| 69 | |
|
| 70 | 0 | _futureElements = null; |
| 71 | 0 | } |
| 72 | |
|
| 73 | |
@Override |
| 74 | |
public String getMilestoneKey() { |
| 75 | 0 | return milestoneKey; |
| 76 | |
} |
| 77 | |
|
| 78 | |
public void setMilestoneKey(String milestoneKey) { |
| 79 | 0 | this.milestoneKey = milestoneKey; |
| 80 | 0 | } |
| 81 | |
|
| 82 | |
@Override |
| 83 | |
public Date getEffectiveStartDate() { |
| 84 | 0 | return effectiveStartDate; |
| 85 | |
} |
| 86 | |
|
| 87 | |
public void setEffectiveStartDate(Date effectiveStartDate) { |
| 88 | 0 | this.effectiveStartDate = effectiveStartDate; |
| 89 | 0 | } |
| 90 | |
|
| 91 | |
@Override |
| 92 | |
public Date getEffectiveEndDate() { |
| 93 | 0 | return effectiveEndDate; |
| 94 | |
} |
| 95 | |
|
| 96 | |
public void setEffectiveEndDate(Date effectiveEndDate) { |
| 97 | 0 | this.effectiveEndDate = effectiveEndDate; |
| 98 | 0 | } |
| 99 | |
} |