| 1 | |
package org.kuali.student.enrollment.acal; |
| 2 | |
|
| 3 | |
import java.util.ArrayList; |
| 4 | |
import java.util.Date; |
| 5 | |
import java.util.List; |
| 6 | |
|
| 7 | 0 | public class Atp { |
| 8 | 0 | private List<Atp> terms = new ArrayList<Atp>(); |
| 9 | 0 | private List<Atp> holidayCalendars = new ArrayList<Atp>(); |
| 10 | 0 | private List<Milestone> milestones = new ArrayList<Milestone>(); |
| 11 | |
|
| 12 | |
private String id; |
| 13 | |
private String name; |
| 14 | |
private String type; |
| 15 | |
private String adminOrgId; |
| 16 | |
private String descriptionPlain; |
| 17 | |
private String descriptionFormatted; |
| 18 | |
private Date startDate; |
| 19 | |
private Date endDate; |
| 20 | |
private String atpCode; |
| 21 | |
|
| 22 | |
public String getId() { |
| 23 | 0 | return id; |
| 24 | |
} |
| 25 | |
|
| 26 | |
public void setId(String id) { |
| 27 | 0 | this.id = id; |
| 28 | 0 | } |
| 29 | |
|
| 30 | |
public List<Atp> getTerms() { |
| 31 | 0 | return terms; |
| 32 | |
} |
| 33 | |
|
| 34 | |
public void setTerms(List<Atp> terms) { |
| 35 | 0 | this.terms = terms; |
| 36 | 0 | } |
| 37 | |
|
| 38 | |
public List<Atp> getHolidayCalendars() { |
| 39 | 0 | return holidayCalendars; |
| 40 | |
} |
| 41 | |
|
| 42 | |
public void setHolidayCalendars(List<Atp> holidayCalendars) { |
| 43 | 0 | this.holidayCalendars = holidayCalendars; |
| 44 | 0 | } |
| 45 | |
|
| 46 | |
public void addMilestone(Milestone milestone) { |
| 47 | 0 | if (milestone != null) { |
| 48 | 0 | this.milestones.add(milestone); |
| 49 | |
} |
| 50 | 0 | } |
| 51 | |
|
| 52 | |
public List<Milestone> getMilestones() { |
| 53 | 0 | return milestones; |
| 54 | |
} |
| 55 | |
|
| 56 | |
public Date getEndDate() { |
| 57 | 0 | return endDate; |
| 58 | |
} |
| 59 | |
|
| 60 | |
public void setEndDate(Date endDate) { |
| 61 | 0 | this.endDate = endDate; |
| 62 | 0 | } |
| 63 | |
|
| 64 | |
public String getName() { |
| 65 | 0 | return name; |
| 66 | |
} |
| 67 | |
|
| 68 | |
public void setName(String name) { |
| 69 | 0 | this.name = name; |
| 70 | 0 | } |
| 71 | |
|
| 72 | |
public Date getStartDate() { |
| 73 | 0 | return startDate; |
| 74 | |
} |
| 75 | |
|
| 76 | |
public void setStartDate(Date startDate) { |
| 77 | 0 | this.startDate = startDate; |
| 78 | 0 | } |
| 79 | |
|
| 80 | |
public String getAdminOrgId() { |
| 81 | 0 | return adminOrgId; |
| 82 | |
} |
| 83 | |
|
| 84 | |
public void setAdminOrgId(String adminOrgId) { |
| 85 | 0 | this.adminOrgId = adminOrgId; |
| 86 | 0 | } |
| 87 | |
|
| 88 | |
public String getDescriptionFormatted() { |
| 89 | 0 | return descriptionFormatted; |
| 90 | |
} |
| 91 | |
|
| 92 | |
public void setDescriptionFormatted(String descriptionFormatted) { |
| 93 | 0 | this.descriptionFormatted = descriptionFormatted; |
| 94 | 0 | } |
| 95 | |
|
| 96 | |
public String getDescriptionPlain() { |
| 97 | 0 | return descriptionPlain; |
| 98 | |
} |
| 99 | |
|
| 100 | |
public void setDescriptionPlain(String descriptionPlain) { |
| 101 | 0 | this.descriptionPlain = descriptionPlain; |
| 102 | 0 | } |
| 103 | |
|
| 104 | |
public String getType() { |
| 105 | 0 | return type; |
| 106 | |
} |
| 107 | |
|
| 108 | |
public void setType(String type) { |
| 109 | 0 | this.type = type; |
| 110 | 0 | } |
| 111 | |
|
| 112 | |
public String getAtpCode() { |
| 113 | 0 | return atpCode; |
| 114 | |
} |
| 115 | |
|
| 116 | |
public void setAtpCode(String atpCode) { |
| 117 | 0 | this.atpCode = atpCode; |
| 118 | 0 | } |
| 119 | |
|
| 120 | |
@Override |
| 121 | |
public String toString() { |
| 122 | 0 | StringBuilder builder = new StringBuilder(); |
| 123 | 0 | builder.append(id).append("\t"); |
| 124 | 0 | builder.append(name).append("\t"); |
| 125 | 0 | builder.append(type).append("\t"); |
| 126 | 0 | builder.append(adminOrgId).append("\t"); |
| 127 | 0 | builder.append(descriptionPlain).append("\t"); |
| 128 | 0 | builder.append(descriptionFormatted).append("\t"); |
| 129 | 0 | builder.append(startDate).append("\t"); |
| 130 | 0 | builder.append(endDate).append("\t"); |
| 131 | 0 | builder.append("\n"); |
| 132 | |
|
| 133 | 0 | for (Milestone milestone : milestones) { |
| 134 | 0 | builder.append(milestone); |
| 135 | 0 | builder.append("\n"); |
| 136 | |
} |
| 137 | |
|
| 138 | 0 | for (Atp atp : terms) { |
| 139 | 0 | builder.append(atp); |
| 140 | |
} |
| 141 | |
|
| 142 | 0 | return builder.toString(); |
| 143 | |
} |
| 144 | |
} |