1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.kuali.student.r2.lum.program.dto; |
12 | |
|
13 | |
import java.io.Serializable; |
14 | |
import java.util.ArrayList; |
15 | |
|
16 | |
import java.util.List; |
17 | |
|
18 | |
import javax.xml.bind.annotation.XmlAccessType; |
19 | |
import javax.xml.bind.annotation.XmlAccessorType; |
20 | |
import javax.xml.bind.annotation.XmlAnyElement; |
21 | |
import javax.xml.bind.annotation.XmlElement; |
22 | |
import javax.xml.bind.annotation.XmlType; |
23 | |
|
24 | |
import org.kuali.student.r2.common.dto.IdNamelessEntityInfo; |
25 | |
import org.kuali.student.r2.lum.program.infc.HonorsProgram; |
26 | |
import org.w3c.dom.Element; |
27 | |
|
28 | |
|
29 | |
@XmlType(name = "HonorsProgramInfo", propOrder = {"id", |
30 | |
"typeKey", |
31 | |
"stateKey", |
32 | |
"credentialProgramId", |
33 | |
"programRequirements", |
34 | |
"meta", |
35 | |
"attributes", |
36 | |
"_futureElements"}) |
37 | |
@XmlAccessorType(XmlAccessType.FIELD) |
38 | |
public class HonorsProgramInfo extends IdNamelessEntityInfo implements HonorsProgram, Serializable { |
39 | |
|
40 | |
private static final long serialVersionUID = 1L; |
41 | |
@XmlElement |
42 | |
private String credentialProgramId; |
43 | |
@XmlElement |
44 | |
private List<String> programRequirements; |
45 | |
@XmlAnyElement |
46 | |
private List<Element> _futureElements; |
47 | |
|
48 | 0 | public HonorsProgramInfo() { |
49 | 0 | this.programRequirements = new ArrayList<String>(); |
50 | 0 | } |
51 | |
|
52 | |
public HonorsProgramInfo(HonorsProgram honorsProgram) { |
53 | 0 | super (honorsProgram); |
54 | 0 | if (honorsProgram != null) { |
55 | 0 | this.credentialProgramId = honorsProgram.getCredentialProgramId(); |
56 | 0 | this.programRequirements = honorsProgram.getProgramRequirements() != null |
57 | |
? new ArrayList<String>(honorsProgram.getProgramRequirements()) |
58 | |
: new ArrayList<String>(); |
59 | |
} |
60 | 0 | } |
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
@Override |
66 | |
public String getCredentialProgramId() { |
67 | 0 | return credentialProgramId; |
68 | |
} |
69 | |
|
70 | |
public void setCredentialProgramId(String credentialProgramId) { |
71 | 0 | this.credentialProgramId = credentialProgramId; |
72 | 0 | } |
73 | |
|
74 | |
@Override |
75 | |
public List<String> getProgramRequirements() { |
76 | 0 | if (programRequirements == null) { |
77 | 0 | programRequirements = new ArrayList<String>(0); |
78 | |
} |
79 | 0 | return programRequirements; |
80 | |
} |
81 | |
|
82 | |
public void setProgramRequirements(List<String> programRequirements) { |
83 | 0 | this.programRequirements = programRequirements; |
84 | 0 | } |
85 | |
|
86 | |
} |