View Javadoc

1   /*
2    * Copyright 2012 The Kuali Foundation 
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the
5    * "License"); you may not use this file except in compliance with the
6    * License. You may obtain a copy of the License at
7    *
8    * http://www.osedu.org/licenses/ECL-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13   * implied. See the License for the specific language governing
14   * permissions and limitations under the License.
15   */
16  
17  package org.kuali.student.enrollment.courseregistration.dto;
18  
19  import java.io.Serializable;
20  import java.util.List;
21  
22  import javax.xml.bind.annotation.XmlAccessType;
23  import javax.xml.bind.annotation.XmlAccessorType;
24  import javax.xml.bind.annotation.XmlAnyElement;
25  import javax.xml.bind.annotation.XmlElement;
26  import javax.xml.bind.annotation.XmlType;
27  
28  import org.kuali.student.enrollment.courseregistration.infc.CreditLoad;
29  import org.w3c.dom.Element;
30   
31  @XmlAccessorType(XmlAccessType.FIELD)
32  @XmlType(name = "CreditLoadInfo", propOrder = {
33                  "studentId", "creditLoad", "creditLimit", "additionalCredits",
34                  "_futureElements"})
35  
36  public class CreditLoadInfo 
37      implements CreditLoad, Serializable {
38  
39      private static final long serialVersionUID = 1L;
40  
41      @XmlElement
42      private String studentId;
43  
44      @XmlElement
45      private String creditLoad;
46  
47      @XmlElement
48      private String creditLimit;
49  
50      @XmlElement
51      private String additionalCredits;
52  
53      @XmlAnyElement
54      private List<Element> _futureElements;
55  
56  
57      /**
58       * Constructs a new CreditLoadInfo.
59       */
60      public CreditLoadInfo() {
61      }
62  
63      /**
64       * Constructs a new CreditLoadInfo from another CreditLoad.
65       *
66       * @param creditLoad the CreditLoad to copy
67       */
68  
69      public CreditLoadInfo(CreditLoad creditLoad) {
70          if (creditLoad != null) {
71              this.studentId = creditLoad.getStudentId();
72              this.creditLoad = creditLoad.getCreditLoad();
73              this.creditLimit = creditLoad.getCreditLimit();
74              this.additionalCredits = creditLoad.getAdditionalCredits();
75          }
76      }
77    
78      @Override
79      public String getStudentId() {
80          return studentId;
81      }
82  
83      public void setStudentId(String studentId) {
84          this.studentId = studentId;
85      }
86  
87      @Override
88      public String getCreditLoad() {
89          return creditLoad;
90      }
91  
92      public void setCreditLoad(String creditLoad) {
93          this.creditLoad = creditLoad;
94      }
95  
96      @Override
97      public String getCreditLimit() {
98          return creditLimit;
99      }
100 
101     public void setCreditLimit(String creditLimit) {
102         this.creditLimit = creditLimit;
103     }
104 
105     @Override
106     public String getAdditionalCredits() {
107         return additionalCredits;
108     }
109 
110     public void setAdditionalCredits(String credits) {
111         this.additionalCredits = credits;
112     }
113 }