View Javadoc

1   /*
2    * Copyright 2009 The Kuali Foundation Licensed under the Educational Community
3    * License, Version 1.0 (the "License"); you may not use this file except in
4    * compliance with the License. You may obtain a copy of the License at
5    * http://www.opensource.org/licenses/ecl1.php Unless required by applicable law
6    * or agreed to in writing, software distributed under the License is
7    * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8    * KIND, either express or implied. See the License for the specific language
9    * governing permissions and limitations under the License.
10   */
11  package org.kuali.student.r2.lum.course.dto;
12  
13  import java.io.Serializable;
14  import java.util.List;
15  
16  import javax.xml.bind.annotation.XmlAccessType;
17  import javax.xml.bind.annotation.XmlAccessorType;
18  import javax.xml.bind.annotation.XmlAnyElement;
19  import javax.xml.bind.annotation.XmlAttribute;
20  import javax.xml.bind.annotation.XmlElement;
21  import javax.xml.bind.annotation.XmlType;
22  
23  import org.kuali.student.r2.common.dto.EntityInfo;
24  import org.kuali.student.r2.lum.course.infc.CourseJoint;
25  //import org.w3c.dom.Element;
26  
27  @XmlType(name = "CourseJointInfo", propOrder = {"typeKey", "stateKey", "name", "descr", "courseNumberSuffix", "courseTitle", "subjectArea", "courseId", "relationId", "meta", "attributes" , "_futureElements" }) 
28  
29  @XmlAccessorType(XmlAccessType.FIELD)
30  public class CourseJointInfo extends EntityInfo implements CourseJoint, Serializable {
31  
32      private static final long serialVersionUID = 1L;
33  
34      @XmlElement
35      private String courseNumberSuffix;
36  
37      @XmlElement
38      private String courseTitle;
39  
40      @XmlElement
41      private String subjectArea;
42  
43      @XmlAttribute
44      private String courseId;
45  
46      @XmlAttribute
47      private String relationId;
48  
49      @XmlAnyElement
50      private List<Object> _futureElements;  
51  
52      public CourseJointInfo() {
53  
54      }
55  
56      public CourseJointInfo(CourseJoint courseJoint) {
57          super(courseJoint);
58          if (courseJoint != null) {
59              this.courseNumberSuffix = courseJoint.getCourseNumberSuffix();
60              this.courseTitle = courseJoint.getCourseTitle();
61              this.subjectArea = courseJoint.getSubjectArea();
62              this.courseId = courseJoint.getCourseId();
63              this.relationId = courseJoint.getRelationId();
64          }
65  
66      }
67  
68      @Override
69      public String getCourseNumberSuffix() {
70          return courseNumberSuffix;
71      }
72  
73      public void setCourseNumberSuffix(String courseNumberSuffix) {
74          this.courseNumberSuffix = courseNumberSuffix;
75      }
76  
77      @Override
78      public String getCourseTitle() {
79          return courseTitle;
80      }
81  
82      public void setCourseTitle(String courseTitle) {
83          this.courseTitle = courseTitle;
84      }
85  
86      @Override
87      public String getSubjectArea() {
88          return subjectArea;
89      }
90  
91      public void setSubjectArea(String subjectArea) {
92          this.subjectArea = subjectArea;
93      }
94  
95      @Override
96      public String getCourseId() {
97          return courseId;
98      }
99  
100     public void setCourseId(String courseId) {
101         this.courseId = courseId;
102     }
103 
104     @Override
105     public String getRelationId() {
106         return relationId;
107     }
108 
109     public void setRelationId(String relationId) {
110         this.relationId = relationId;
111     }
112 }