Coverage Report - org.kuali.student.r2.lum.lrc.dto.ResultValueInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ResultValueInfo
0%
0/30
0%
0/2
1.083
 
 1  
 /*
 2  
  * Copyright 2007 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 1.0 (the "License"); you may not use this file except in
 4  
  * compliance with the License. You may obtain a copy of the License at
 5  
  * http://www.opensource.org/licenses/ecl1.php Unless required by applicable law
 6  
  * or agreed to in writing, software distributed under the License is
 7  
  * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 8  
  * KIND, either express or implied. See the License for the specific language
 9  
  * governing permissions and limitations under the License.
 10  
  */
 11  
 package org.kuali.student.r2.lum.lrc.dto;
 12  
 
 13  
 import java.io.Serializable;
 14  
 import java.util.Date;
 15  
 import java.util.List;
 16  
 
 17  
 import javax.xml.bind.annotation.XmlAccessType;
 18  
 import javax.xml.bind.annotation.XmlAccessorType;
 19  
 import javax.xml.bind.annotation.XmlAnyElement;
 20  
 import javax.xml.bind.annotation.XmlElement;
 21  
 import javax.xml.bind.annotation.XmlType;
 22  
 
 23  
 import org.kuali.student.r2.common.dto.KeyEntityInfo;
 24  
 import org.kuali.student.r2.lum.lrc.infc.ResultValue;
 25  
 import org.w3c.dom.Element;
 26  
 
 27  
 @XmlAccessorType(XmlAccessType.FIELD)
 28  
 @XmlType(name = "ResultValueInfo", propOrder = {"key", "typeKey", "stateKey",
 29  
         "name", "descr", "resultScaleKey", "numericValue", "value",
 30  
         "effectiveDate", "expirationDate", "meta", "attributes",
 31  
         "_futureElements"})
 32  
 public class ResultValueInfo extends KeyEntityInfo implements ResultValue,
 33  
         Serializable {
 34  
 
 35  
     private static final long serialVersionUID = 1L;
 36  
 
 37  
     @XmlElement
 38  
     private String resultScaleKey;
 39  
 
 40  
     @XmlElement
 41  
     private String numericValue;
 42  
 
 43  
     @XmlElement
 44  
     private String value;
 45  
 
 46  
     @XmlElement
 47  
     private Date effectiveDate;
 48  
 
 49  
     @XmlElement
 50  
     private Date expirationDate;
 51  
 
 52  
     @XmlAnyElement
 53  
     private List<Element> _futureElements;
 54  
 
 55  
     public ResultValueInfo() {
 56  0
         super();
 57  0
         resultScaleKey = null;
 58  0
         numericValue = null;
 59  0
         value = null;
 60  0
         effectiveDate = null;
 61  0
         expirationDate = null;
 62  0
     }
 63  
 
 64  
     public ResultValueInfo(ResultValue resultValueInfo) {
 65  0
         super(resultValueInfo);
 66  0
         if (null != resultValueInfo) {
 67  0
             this.resultScaleKey = resultValueInfo.getResultScaleKey();
 68  0
             this.numericValue = resultValueInfo.getNumericValue();
 69  0
             this.value = resultValueInfo.getValue();
 70  0
             this.effectiveDate = new Date(resultValueInfo.getEffectiveDate()
 71  
                     .getTime());
 72  0
             this.expirationDate = new Date(resultValueInfo.getExpirationDate()
 73  
                     .getTime());
 74  
         }
 75  0
     }
 76  
 
 77  
     @Override
 78  
     public String getResultScaleKey() {
 79  0
         return resultScaleKey;
 80  
     }
 81  
 
 82  
     public void setScaleKey(String resultScaleKey) {
 83  0
         this.resultScaleKey = resultScaleKey;
 84  0
     }
 85  
 
 86  
     @Override
 87  
     public String getNumericValue() {
 88  0
         return numericValue;
 89  
     }
 90  
 
 91  
     public void setNumericValue(String numericValue) {
 92  0
         this.numericValue = numericValue;
 93  0
     }
 94  
 
 95  
     @Override
 96  
     public String getValue() {
 97  0
         return value;
 98  
     }
 99  
 
 100  
     public void setValue(String value) {
 101  0
         this.value = value;
 102  0
     }
 103  
 
 104  
     @Override
 105  
     public Date getEffectiveDate() {
 106  0
         return effectiveDate;
 107  
     }
 108  
 
 109  
     public void setEffectiveDate(Date effectiveDate) {
 110  0
         this.effectiveDate = effectiveDate;
 111  0
     }
 112  
 
 113  
     @Override
 114  
     public Date getExpirationDate() {
 115  0
         return expirationDate;
 116  
     }
 117  
 
 118  
     public void setExpirationDate(Date expirationDate) {
 119  0
         this.expirationDate = expirationDate;
 120  0
     }
 121  
 }