| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
package org.kuali.student.r2.common.dto; |
| 18 | |
|
| 19 | |
import java.io.Serializable; |
| 20 | |
import java.util.List; |
| 21 | |
|
| 22 | |
import javax.xml.bind.annotation.XmlAccessType; |
| 23 | |
import javax.xml.bind.annotation.XmlAccessorType; |
| 24 | |
import javax.xml.bind.annotation.XmlAnyElement; |
| 25 | |
import javax.xml.bind.annotation.XmlElement; |
| 26 | |
import javax.xml.bind.annotation.XmlType; |
| 27 | |
|
| 28 | |
import org.kuali.student.r2.common.infc.TimeAmount; |
| 29 | |
import org.w3c.dom.Element; |
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
|
| 36 | |
|
| 37 | |
@XmlAccessorType(XmlAccessType.FIELD) |
| 38 | |
@XmlType(name = "TimeAmountInfo", propOrder = { |
| 39 | |
"atpDurationTypeKey", "timeQuantity", "_futureElements"}) |
| 40 | |
|
| 41 | |
public class TimeAmountInfo |
| 42 | |
implements TimeAmount, Serializable { |
| 43 | |
|
| 44 | |
private static final long serialVersionUID = 1L; |
| 45 | |
|
| 46 | |
@XmlElement |
| 47 | |
private String atpDurationTypeKey; |
| 48 | |
|
| 49 | |
@XmlElement |
| 50 | |
private Integer timeQuantity; |
| 51 | |
|
| 52 | |
@XmlAnyElement |
| 53 | |
private List<Element> _futureElements; |
| 54 | |
|
| 55 | |
|
| 56 | |
|
| 57 | |
|
| 58 | |
|
| 59 | 0 | public TimeAmountInfo() { |
| 60 | 0 | } |
| 61 | |
|
| 62 | |
|
| 63 | |
|
| 64 | |
|
| 65 | |
|
| 66 | |
|
| 67 | 0 | public TimeAmountInfo(TimeAmount timeAmount) { |
| 68 | |
|
| 69 | 0 | if (timeAmount != null) { |
| 70 | 0 | this.atpDurationTypeKey = timeAmount.getAtpDurationTypeKey(); |
| 71 | 0 | this.timeQuantity = timeAmount.getTimeQuantity(); |
| 72 | |
} |
| 73 | 0 | } |
| 74 | |
|
| 75 | |
@Override |
| 76 | |
public String getAtpDurationTypeKey(){ |
| 77 | 0 | return atpDurationTypeKey; |
| 78 | |
} |
| 79 | |
|
| 80 | |
public void setAtpDurationTypeKey(String atpDurationTypeKey) { |
| 81 | 0 | this.atpDurationTypeKey = atpDurationTypeKey; |
| 82 | 0 | } |
| 83 | |
|
| 84 | |
@Override |
| 85 | |
public Integer getTimeQuantity(){ |
| 86 | 0 | return timeQuantity; |
| 87 | |
} |
| 88 | |
|
| 89 | |
public void setTimeQuantity(Integer timeQuantity) { |
| 90 | 0 | this.timeQuantity = timeQuantity; |
| 91 | 0 | } |
| 92 | |
} |