Coverage Report - org.kuali.student.r2.lum.lrc.dto.ResultScaleInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ResultScaleInfo
0%
0/21
0%
0/2
1.125
 
 1  
 /*
 2  
  * Copyright 2007 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 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 implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.student.r2.lum.lrc.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 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.XmlAttribute;
 27  
 import javax.xml.bind.annotation.XmlElement;
 28  
 import javax.xml.bind.annotation.XmlType;
 29  
 
 30  
 import org.kuali.student.r2.common.dto.KeyEntityInfo;
 31  
 import org.kuali.student.r2.lum.lrc.infc.ResultScale;
 32  
 import org.w3c.dom.Element;
 33  
 
 34  0
 @XmlAccessorType(XmlAccessType.FIELD)
 35  
 @XmlType(name = "ResultScaleInfo", propOrder = {
 36  
         "key", "typeKey", "stateKey", "name", "descr", 
 37  
         "resultValueRange", "effectiveDate", "expirationDate", 
 38  
         "meta", "attributes", "_futureElements"})
 39  
 
 40  
 public class ResultScaleInfo 
 41  
         extends KeyEntityInfo 
 42  
         implements ResultScale, Serializable {
 43  
 
 44  
     private static final long serialVersionUID = 1L;
 45  
 
 46  
     @XmlElement
 47  
     private ResultValueRangeInfo resultValueRange;
 48  
 
 49  
     @XmlElement
 50  
     private Date effectiveDate;
 51  
 
 52  
     @XmlElement
 53  
     private Date expirationDate;
 54  
 
 55  
     @XmlAnyElement
 56  
     private List<Element> _futureElements;
 57  
 
 58  
     public ResultScaleInfo() {
 59  0
         super();
 60  0
         resultValueRange = null;        
 61  0
         effectiveDate = null;
 62  0
         expirationDate = null;
 63  0
     }
 64  
 
 65  
     public ResultScaleInfo(ResultScale resultScale) {
 66  0
         super(resultScale);
 67  0
         if (null != resultScale) {
 68  0
             this.resultValueRange = new ResultValueRangeInfo(resultScale.getResultValueRange());
 69  0
             this.effectiveDate = new Date(resultScale.getEffectiveDate().getTime());
 70  0
             this.expirationDate = new Date(resultScale.getExpirationDate().getTime());
 71  
         }
 72  0
     }
 73  
 
 74  
     @Override    
 75  
     public ResultValueRangeInfo getResultValueRange() {
 76  0
         return resultValueRange;
 77  
     }
 78  
 
 79  
     public void setResultValueRange(ResultValueRangeInfo resultValueRange) {
 80  0
         this.resultValueRange = resultValueRange;
 81  0
     }
 82  
 
 83  
     @Override    
 84  
     public Date getEffectiveDate() {
 85  0
         return effectiveDate;
 86  
     }
 87  
 
 88  
     public void setEffectiveDate(Date effectiveDate) {
 89  0
         this.effectiveDate = effectiveDate;
 90  0
     }
 91  
 
 92  
     @Override    
 93  
     public Date getExpirationDate() {
 94  0
         return expirationDate;
 95  
     }
 96  
 
 97  
     public void setExpirationDate(Date expirationDate) {
 98  0
         this.expirationDate = expirationDate;
 99  0
     }
 100  
 }