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.Date;
21  import java.util.List;
22  
23  import javax.xml.bind.annotation.XmlAccessType;
24  import javax.xml.bind.annotation.XmlAccessorType;
25  import javax.xml.bind.annotation.XmlAnyElement;
26  import javax.xml.bind.annotation.XmlElement;
27  import javax.xml.bind.annotation.XmlType;
28  
29  import org.kuali.student.enrollment.courseregistration.infc.CreditLoad;
30  import org.w3c.dom.Element;
31   
32  @XmlAccessorType(XmlAccessType.FIELD)
33  @XmlType(name = "CreditLoadInfo", propOrder = {
34                  "studentId", "creditLoad", "creditLimit", "additionalCredits",
35                  "_futureElements"})
36  
37  public class CreditLoadInfo 
38      implements CreditLoad, Serializable {
39  
40      private static final long serialVersionUID = 1L;
41  
42      @XmlElement
43      private String studentId;
44  
45      @XmlElement
46      private String creditLoad;
47  
48      @XmlElement
49      private String creditLimit;
50  
51      @XmlElement
52      private String additionalCredits;
53  
54      @XmlAnyElement
55      private List<Element> _futureElements;
56  
57  
58      /**
59       * Constructs a new CreditLoadInfo.
60       */
61      public CreditLoadInfo() {
62      }
63  
64      /**
65       * Constructs a new CreditLoadInfo from another CreditLoad.
66       *
67       * @param creditLoad the CreditLoad to copy
68       */
69  
70      public CreditLoadInfo(CreditLoad creditLoad) {
71          if (creditLoad != null) {
72              this.studentId = creditLoad.getStudentId();
73              this.creditLoad = creditLoad.getCreditLoad();
74              this.creditLimit = creditLoad.getCreditLimit();
75              this.additionalCredits = creditLoad.getAdditionalCredits();
76          }
77      }
78    
79      @Override
80      public String getStudentId() {
81          return studentId;
82      }
83  
84      public void setStudentId(String studentId) {
85          this.studentId = studentId;
86      }
87  
88      @Override
89      public String getCreditLoad() {
90          return creditLoad;
91      }
92  
93      public void setCreditLoad(String creditLoad) {
94          this.creditLoad = creditLoad;
95      }
96  
97      @Override
98      public String getCreditLimit() {
99          return creditLimit;
100     }
101 
102     public void setCreditLimit(String creditLimit) {
103         this.creditLimit = creditLimit;
104     }
105 
106     @Override
107     public String getAdditionalCredits() {
108         return additionalCredits;
109     }
110 
111     public void setAdditionalCredits(String credits) {
112         this.additionalCredits = credits;
113     }
114 }