1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.enrollment.courseoffering.dto;
17
18 import java.io.Serializable;
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.XmlAttribute;
25 import javax.xml.bind.annotation.XmlElement;
26 import javax.xml.bind.annotation.XmlType;
27
28 import org.kuali.student.enrollment.courseoffering.infc.OfferingInstructor;
29 import org.kuali.student.r2.common.dto.TypeStateEntityInfo;
30 import org.w3c.dom.Element;
31
32
33
34
35
36 @XmlAccessorType(XmlAccessType.FIELD)
37 @XmlType(name = "OfferingInstructorInfo", propOrder = {"id", "personId",
38 "percentageEffort","personName", "typeKey", "stateKey",
39 "meta", "attributes", "_futureElements"})
40
41 public class OfferingInstructorInfo
42 extends TypeStateEntityInfo
43 implements OfferingInstructor, Serializable {
44
45 private static final long serialVersionUID = 1L;
46
47 @XmlAttribute
48 private String id;
49
50 @XmlElement
51 private String personId;
52
53 @XmlElement
54 private String personName;
55
56 @XmlElement
57 private Float percentageEffort;
58
59 @XmlAnyElement
60 private List<Element> _futureElements;
61
62 public OfferingInstructorInfo() {
63 this.id = null;
64 this.personId = null;
65 this.percentageEffort = null;
66 this._futureElements = null;
67 this.personName = null;
68 }
69
70 public OfferingInstructorInfo(OfferingInstructor instructor) {
71
72 super(instructor);
73
74 if(null == instructor) return;
75 this.id = instructor.getId();
76 this.personId = instructor.getPersonId();
77 this.percentageEffort = instructor.getPercentageEffort();
78 this.personName = instructor.getPersonName();
79 this._futureElements = null;
80 }
81
82 @Override
83 public String getId() {
84 return id;
85 }
86
87 public void setId(String id) {
88 this.id = id;
89 }
90
91 @Override
92 public String getPersonId() {
93 return personId;
94 }
95
96 public void setPersonId(String personId) {
97 this.personId = personId;
98 }
99
100 @Override
101 public Float getPercentageEffort() {
102 return percentageEffort;
103 }
104
105 public void setPercentageEffort(Float percentageEffort) {
106 this.percentageEffort = percentageEffort;
107 }
108
109 public void setPersonName(String personName) {
110 this.personName = personName;
111 }
112 @Override
113 public String getPersonName() {
114 return personName;
115 }
116
117 }