001 /**
002 * Copyright 2012 The Kuali Foundation Licensed under the
003 * Educational Community License, Version 2.0 (the "License"); you may
004 * not use this file except in compliance with the License. You may
005 * obtain a copy of the License at
006 *
007 * http://www.osedu.org/licenses/ECL-2.0
008 *
009 * Unless required by applicable law or agreed to in writing,
010 * software distributed under the License is distributed on an "AS IS"
011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012 * or implied. See the License for the specific language governing
013 * permissions and limitations under the License.
014 *
015 * Created by vgadiyak on 6/15/12
016 */
017 package org.kuali.student.enrollment.courseoffering.dto;
018
019 import org.kuali.student.r2.common.dto.IdEntityInfo;
020
021 import javax.xml.bind.annotation.XmlAccessType;
022 import javax.xml.bind.annotation.XmlAccessorType;
023 import javax.xml.bind.annotation.XmlElement;
024 import javax.xml.bind.annotation.XmlType;
025 import java.io.Serializable;
026 import java.util.ArrayList;
027 import java.util.List;
028
029 /**
030 * This class //TODO ...
031 *
032 * @author Kuali Student Team
033 */
034 @XmlAccessorType(XmlAccessType.FIELD)
035 @XmlType(name = "CreditOptions", propOrder = {"id", "typeKey", "credits", "minCredits", "maxCredits"})
036 //TODO Refactor this out of the API, it belongs in enroll ui dto
037 public class CreditOptionInfo extends IdEntityInfo implements Serializable {
038
039 private static final long serialVersionUID = 1L;
040
041 @XmlElement
042 private String typeKey;
043
044 @XmlElement
045 List<String> credits;
046
047 List<String> allowedCredits;
048
049 @XmlElement
050 String minCredits;
051
052 @XmlElement
053 String maxCredits;
054
055 String fixedCredit;
056
057 String courseMinCredits;
058 String courseMaxCredits;
059 String courseFixedCredits;
060
061 /**
062 * Constructs a new CreditOptions.
063 */
064 public CreditOptionInfo() {
065 }
066
067 public String getTypeKey() {
068 return this.typeKey;
069 }
070
071 public void setTypeKey(String typeKey) {
072 this.typeKey = typeKey;
073 }
074
075 public List<String> getCredits() {
076 if (null == credits) {
077 credits = new ArrayList<String>();
078 }
079 return credits;
080 }
081
082 public List<String> getAllowedCredits() {
083 if (null == allowedCredits) {
084 allowedCredits = new ArrayList<String>();
085 }
086 return allowedCredits;
087 }
088
089 public void setAllowedCredits(List<String> allowedCredits) {
090 this.allowedCredits = allowedCredits;
091 }
092
093 public void setCredits(List<String> credits) {
094 this.credits = credits;
095 }
096
097 public String getMinCredits() {
098 return this.minCredits;
099 }
100
101 public void setMinCredits(String minCredits) {
102 this.minCredits = minCredits;
103 }
104
105 public String getMaxCredits() {
106 return this.maxCredits;
107 }
108
109 public void setMaxCredits(String maxCredits) {
110 this.maxCredits = maxCredits;
111 }
112
113 public String getFixedCredit() {
114 return fixedCredit;
115 }
116
117 public void setFixedCredit(String fixedCredit) {
118 this.fixedCredit = fixedCredit;
119 }
120
121
122 public String getCourseFixedCredits() {
123 return courseFixedCredits;
124 }
125
126 public void setCourseFixedCredits(String courseFixedCredits) {
127 this.courseFixedCredits = courseFixedCredits;
128 }
129
130 public String getCourseMaxCredits() {
131 return courseMaxCredits;
132 }
133
134 public void setCourseMaxCredits(String courseMaxCredits) {
135 this.courseMaxCredits = courseMaxCredits;
136 }
137
138 public String getCourseMinCredits() {
139 return courseMinCredits;
140 }
141
142 public void setCourseMinCredits(String courseMinCredits) {
143 this.courseMinCredits = courseMinCredits;
144 }
145 }