| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.student.r2.lum.clu.dto; |
| 17 | |
|
| 18 | |
import org.kuali.student.r2.common.dto.CurrencyAmountInfo; |
| 19 | |
import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo; |
| 20 | |
import org.kuali.student.r2.common.dto.RichTextInfo; |
| 21 | |
import org.kuali.student.r2.common.infc.CurrencyAmount; |
| 22 | |
import org.kuali.student.r2.lum.clu.infc.AffiliatedOrg; |
| 23 | |
import org.kuali.student.r2.lum.clu.infc.CluFeeRecord; |
| 24 | |
|
| 25 | |
import javax.xml.bind.Element; |
| 26 | |
import javax.xml.bind.annotation.XmlAccessType; |
| 27 | |
import javax.xml.bind.annotation.XmlAccessorType; |
| 28 | |
import javax.xml.bind.annotation.XmlAnyElement; |
| 29 | |
import javax.xml.bind.annotation.XmlAttribute; |
| 30 | |
import javax.xml.bind.annotation.XmlElement; |
| 31 | |
import javax.xml.bind.annotation.XmlType; |
| 32 | |
import java.io.Serializable; |
| 33 | |
import java.util.ArrayList; |
| 34 | |
import java.util.List; |
| 35 | |
|
| 36 | |
@XmlAccessorType(XmlAccessType.FIELD) |
| 37 | |
@XmlType(name = "CluFeeRecordInfo", propOrder = {"id", "feeType", "rateType", "feeAmounts", "affiliatedOrgs", "descr", "attributes", "meta", "_futureElements"}) |
| 38 | |
public class CluFeeRecordInfo extends HasAttributesAndMetaInfo implements CluFeeRecord, Serializable { |
| 39 | |
|
| 40 | |
private static final long serialVersionUID = 1L; |
| 41 | |
|
| 42 | |
@XmlAttribute |
| 43 | |
private String id; |
| 44 | |
|
| 45 | |
@XmlElement |
| 46 | |
private RichTextInfo descr; |
| 47 | |
|
| 48 | |
@XmlElement |
| 49 | |
private String feeType; |
| 50 | |
|
| 51 | |
@XmlElement |
| 52 | |
private String rateType; |
| 53 | |
|
| 54 | |
@XmlElement |
| 55 | |
private List<CurrencyAmountInfo> feeAmounts; |
| 56 | |
|
| 57 | |
@XmlElement |
| 58 | |
private List<AffiliatedOrgInfo> affiliatedOrgs; |
| 59 | |
|
| 60 | |
@XmlAnyElement |
| 61 | |
private List<Element> _futureElements; |
| 62 | |
|
| 63 | |
|
| 64 | 0 | public CluFeeRecordInfo() { |
| 65 | |
|
| 66 | 0 | } |
| 67 | |
|
| 68 | |
public CluFeeRecordInfo(CluFeeRecord cluFeeRecord) { |
| 69 | 0 | super(cluFeeRecord); |
| 70 | 0 | if (null != cluFeeRecord) { |
| 71 | 0 | this.id = cluFeeRecord.getId(); |
| 72 | 0 | this.descr = cluFeeRecord.getDescr(); |
| 73 | 0 | this.feeType = cluFeeRecord.getFeeType(); |
| 74 | 0 | this.rateType = cluFeeRecord.getRateType(); |
| 75 | 0 | this.feeAmounts = new ArrayList<CurrencyAmountInfo>(); |
| 76 | 0 | for (CurrencyAmount currencyAmount : cluFeeRecord.getFeeAmounts()) { |
| 77 | 0 | this.feeAmounts.add(new CurrencyAmountInfo(currencyAmount)); |
| 78 | |
} |
| 79 | 0 | this.affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(); |
| 80 | 0 | for (AffiliatedOrg affiliatedOrg : cluFeeRecord.getAffiliatedOrgs()) { |
| 81 | 0 | this.affiliatedOrgs.add(new AffiliatedOrgInfo(affiliatedOrg)); |
| 82 | |
} |
| 83 | |
} |
| 84 | 0 | } |
| 85 | |
|
| 86 | |
@Override |
| 87 | |
public String getId() { |
| 88 | 0 | return id; |
| 89 | |
} |
| 90 | |
|
| 91 | |
public void setId(String id) { |
| 92 | 0 | this.id = id; |
| 93 | 0 | } |
| 94 | |
|
| 95 | |
@Override |
| 96 | |
public String getFeeType() { |
| 97 | 0 | return feeType; |
| 98 | |
} |
| 99 | |
|
| 100 | |
public void setFeeType(String feeType) { |
| 101 | 0 | this.feeType = feeType; |
| 102 | 0 | } |
| 103 | |
|
| 104 | |
@Override |
| 105 | |
public String getRateType() { |
| 106 | 0 | return rateType; |
| 107 | |
} |
| 108 | |
|
| 109 | |
public void setRateType(String rateType) { |
| 110 | 0 | this.rateType = rateType; |
| 111 | 0 | } |
| 112 | |
|
| 113 | |
@Override |
| 114 | |
public List<CurrencyAmountInfo> getFeeAmounts() { |
| 115 | 0 | if (feeAmounts == null) { |
| 116 | 0 | feeAmounts = new ArrayList<CurrencyAmountInfo>(); |
| 117 | |
} |
| 118 | 0 | return feeAmounts; |
| 119 | |
} |
| 120 | |
|
| 121 | |
public void setFeeAmounts(List<CurrencyAmountInfo> feeAmounts) { |
| 122 | 0 | this.feeAmounts = feeAmounts; |
| 123 | 0 | } |
| 124 | |
|
| 125 | |
@Override |
| 126 | |
public List<AffiliatedOrgInfo> getAffiliatedOrgs() { |
| 127 | 0 | if (affiliatedOrgs == null) { |
| 128 | 0 | affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(0); |
| 129 | |
} |
| 130 | 0 | return affiliatedOrgs; |
| 131 | |
} |
| 132 | |
|
| 133 | |
public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) { |
| 134 | 0 | this.affiliatedOrgs = affiliatedOrgs; |
| 135 | 0 | } |
| 136 | |
|
| 137 | |
@Override |
| 138 | |
public RichTextInfo getDescr() { |
| 139 | 0 | return descr; |
| 140 | |
} |
| 141 | |
|
| 142 | |
public void setDescr(RichTextInfo descr) { |
| 143 | 0 | this.descr = descr; |
| 144 | 0 | } |
| 145 | |
|
| 146 | |
} |