Coverage Report - org.kuali.student.r2.lum.clu.dto.CluCreditInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CluCreditInfo
0%
0/45
0%
0/12
1.273
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.r2.lum.clu.dto;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.TimeAmountInfo;
 19  
 import org.kuali.student.r2.lum.clu.infc.CluCredit;
 20  
 
 21  
 import javax.xml.bind.Element;
 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  
 import java.io.Serializable;
 28  
 import java.util.List;
 29  
 
 30  
 
 31  
 @XmlAccessorType(XmlAccessType.FIELD)
 32  
 @XmlType(name = "CluCreditInfo", propOrder = {"repeatCount", "repeatTime", "repeatUnits", "minTotalUnits", "maxTotalUnits", "instructorUnits", "minTimeToComplete", "maxTimeToComplete", "maxAllowableInactivity", "maxTimeResultsRecognized", "_futureElements"})
 33  
 public class CluCreditInfo implements Serializable, CluCredit {
 34  
 
 35  
     private static final long serialVersionUID = 1L;
 36  
 
 37  
     @XmlElement
 38  
     private String repeatCount;
 39  
 
 40  
     @XmlElement
 41  
     private TimeAmountInfo repeatTime;
 42  
 
 43  
     @XmlElement
 44  
     private String repeatUnits;
 45  
 
 46  
     @XmlElement
 47  
     private Integer minTotalUnits;
 48  
 
 49  
     @XmlElement
 50  
     private Integer instructorUnits;
 51  
 
 52  
     @XmlElement
 53  
     private Integer maxTotalUnits;
 54  
 
 55  
     @XmlElement
 56  
     private TimeAmountInfo minTimeToComplete;
 57  
 
 58  
     @XmlElement
 59  
     private TimeAmountInfo maxTimeToComplete;
 60  
 
 61  
     @XmlElement
 62  
     private TimeAmountInfo maxAllowableInactivity;
 63  
 
 64  
     @XmlElement
 65  
     private TimeAmountInfo maxTimeResultsRecognized;
 66  
 
 67  
     @XmlAnyElement
 68  
     private List<Element> _futureElements;
 69  
 
 70  0
     public CluCreditInfo() {
 71  
 
 72  0
     }
 73  
 
 74  0
     public CluCreditInfo(CluCredit cluCredit) {
 75  0
         if (null != cluCredit) {
 76  0
             this.repeatCount = cluCredit.getRepeatCount();
 77  0
             this.repeatTime = (null != cluCredit.getRepeatTime()) ? new TimeAmountInfo(cluCredit.getRepeatTime()) : null;
 78  0
             this.repeatUnits = cluCredit.getRepeatUnits();
 79  0
             this.minTotalUnits = cluCredit.getMinTotalUnits();
 80  0
             this.instructorUnits = cluCredit.getInstructorUnits();
 81  0
             this.maxTotalUnits = cluCredit.getMaxTotalUnits();
 82  0
             this.minTimeToComplete = (null != cluCredit.getMinTimeToComplete()) ? new TimeAmountInfo(cluCredit.getMinTimeToComplete()) : null;
 83  0
             this.maxTimeToComplete = (null != cluCredit.getMaxTimeToComplete()) ? new TimeAmountInfo(cluCredit.getMaxTimeToComplete()) : null;
 84  0
             this.maxAllowableInactivity = (null != cluCredit.getMaxAllowableInactivity()) ? new TimeAmountInfo(cluCredit.getMaxAllowableInactivity()) : null;
 85  0
             this.maxTimeResultsRecognized = (null != cluCredit.getMaxTimeResultsRecognized()) ? new TimeAmountInfo(cluCredit.getMaxTimeResultsRecognized()) : null;
 86  
         }
 87  0
     }
 88  
 
 89  
     @Override
 90  
     public String getRepeatCount() {
 91  0
         return repeatCount;
 92  
     }
 93  
 
 94  
     public void setRepeatCount(String repeatCount) {
 95  0
         this.repeatCount = repeatCount;
 96  0
     }
 97  
 
 98  
     @Override
 99  
     public TimeAmountInfo getRepeatTime() {
 100  0
         return repeatTime;
 101  
     }
 102  
 
 103  
     public void setRepeatTime(TimeAmountInfo repeatTime) {
 104  0
         this.repeatTime = repeatTime;
 105  0
     }
 106  
 
 107  
     @Override
 108  
     public String getRepeatUnits() {
 109  0
         return repeatUnits;
 110  
     }
 111  
 
 112  
     public void setRepeatUnits(String repeatUnits) {
 113  0
         this.repeatUnits = repeatUnits;
 114  0
     }
 115  
 
 116  
     @Override
 117  
     public Integer getMinTotalUnits() {
 118  0
         return minTotalUnits;
 119  
     }
 120  
 
 121  
     public void setMinTotalUnits(Integer minTotalUnits) {
 122  0
         this.minTotalUnits = minTotalUnits;
 123  0
     }
 124  
 
 125  
     @Override
 126  
     public Integer getMaxTotalUnits() {
 127  0
         return maxTotalUnits;
 128  
     }
 129  
 
 130  
     public void setMaxTotalUnits(Integer maxTotalUnits) {
 131  0
         this.maxTotalUnits = maxTotalUnits;
 132  0
     }
 133  
 
 134  
     @Override
 135  
     public Integer getInstructorUnits() {
 136  0
         return instructorUnits;
 137  
     }
 138  
 
 139  
     public void setInstructorUnits(Integer instructorUnits) {
 140  0
         this.instructorUnits = instructorUnits;
 141  0
     }
 142  
 
 143  
     @Override
 144  
     public TimeAmountInfo getMinTimeToComplete() {
 145  0
         return minTimeToComplete;
 146  
     }
 147  
 
 148  
     public void setMinTimeToComplete(TimeAmountInfo minTimeToComplete) {
 149  0
         this.minTimeToComplete = minTimeToComplete;
 150  0
     }
 151  
 
 152  
     @Override
 153  
     public TimeAmountInfo getMaxTimeToComplete() {
 154  0
         return maxTimeToComplete;
 155  
     }
 156  
 
 157  
     public void setMaxTimeToComplete(TimeAmountInfo maxTimeToComplete) {
 158  0
         this.maxTimeToComplete = maxTimeToComplete;
 159  0
     }
 160  
 
 161  
     @Override
 162  
     public TimeAmountInfo getMaxAllowableInactivity() {
 163  0
         return maxAllowableInactivity;
 164  
     }
 165  
 
 166  
     public void setMaxAllowableInactivity(TimeAmountInfo maxAllowableInactivity) {
 167  0
         this.maxAllowableInactivity = maxAllowableInactivity;
 168  0
     }
 169  
 
 170  
     @Override
 171  
     public TimeAmountInfo getMaxTimeResultsRecognized() {
 172  0
         return maxTimeResultsRecognized;
 173  
     }
 174  
 
 175  
     public void setMaxTimeResultsRecognized(TimeAmountInfo maxTimeResultsRecognized) {
 176  0
         this.maxTimeResultsRecognized = maxTimeResultsRecognized;
 177  0
     }
 178  
 }