Coverage Report - org.kuali.student.r2.lum.classI.lrc.dto.ResultValueGroupTypeInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ResultValueGroupTypeInfo
0%
0/17
N/A
1
 
 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.classI.lrc.dto;
 17  
 
 18  
 import java.util.Date;
 19  
 import java.util.List;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAccessType;
 22  
 import javax.xml.bind.annotation.XmlAccessorType;
 23  
 import javax.xml.bind.annotation.XmlType;
 24  
 
 25  
 import org.kuali.student.r2.common.dto.KeyEntityInfo;
 26  
 import org.kuali.student.r2.common.dto.MetaInfo;
 27  
 import org.kuali.student.r2.common.dto.TypeInfo;
 28  
 import org.kuali.student.r2.common.infc.Attribute;
 29  
 import org.kuali.student.r2.common.infc.Meta;
 30  
 import org.kuali.student.r2.common.infc.RichText;
 31  
 import org.kuali.student.r2.common.infc.Type;
 32  
 import org.kuali.student.r2.lum.classI.lrc.ResultValueGroupType;
 33  
 
 34  
 /**
 35  
  * Detailed information about a single result component type.
 36  
  * 
 37  
  * 
 38  
  * @Author sambit
 39  
  * @Since
 40  
  */
 41  
 @XmlType(name = "ResultValueGroupInfo", propOrder = { "key", "typeKey",
 42  
                 "stateKey", "name", "descr", "effectiveDate", "expirationDate", "id",
 43  
                 "metaInfo", "attributes" })
 44  
 public class ResultValueGroupTypeInfo extends KeyEntityInfo implements
 45  
                 ResultValueGroupType {
 46  
 
 47  
         private static final long serialVersionUID = 1L;
 48  
 
 49  
         private String id;
 50  
 
 51  
         private Date effectiveDate;
 52  
 
 53  
         private Date expirationDate;
 54  
 
 55  0
         public ResultValueGroupTypeInfo() {
 56  0
         }
 57  
 
 58  
         public ResultValueGroupTypeInfo(String name, String key, RichText descr,
 59  
                         String typeKey, String stateKey, String id,
 60  
                         List<? extends Attribute> list, Date effectiveDate,
 61  
                         Date expirationDate, Meta metaInfo) {
 62  
                 //TODO once devs make objects mutable
 63  0
                 super();
 64  0
                 this.id = id;
 65  0
                 this.effectiveDate = effectiveDate;
 66  0
                 this.expirationDate = expirationDate;
 67  
 
 68  0
         }
 69  
 
 70  
         public static ResultValueGroupTypeInfo createNewResultValueGroupTypeInfoFromResultValueGroupTypeInfo(
 71  
                         ResultValueGroupTypeInfo resultValueGroupTypeInfo) {
 72  
 
 73  0
                 return new ResultValueGroupTypeInfo(resultValueGroupTypeInfo.getName(),
 74  
                                 resultValueGroupTypeInfo.getKey(),
 75  
                                 resultValueGroupTypeInfo.getDescr(),
 76  
                                 resultValueGroupTypeInfo.getTypeKey(),
 77  
                                 resultValueGroupTypeInfo.getStateKey(),
 78  
                                 resultValueGroupTypeInfo.getId(),
 79  
                                 resultValueGroupTypeInfo.getAttributes(),
 80  
                                 resultValueGroupTypeInfo.getEffectiveDate(),
 81  
                                 resultValueGroupTypeInfo.getExpirationDate(),
 82  
                                 resultValueGroupTypeInfo.getMetaInfo());
 83  
 
 84  
         }
 85  
 
 86  
         public void setId(String id) {
 87  0
                 this.id = id;
 88  0
         }
 89  
 
 90  
         public void setEffectiveDate(Date effectiveDate) {
 91  0
                 this.effectiveDate = effectiveDate;
 92  0
         }
 93  
 
 94  
         public void setExpirationDate(Date expirationDate) {
 95  0
                 this.expirationDate = expirationDate;
 96  0
         }
 97  
 
 98  
         @Override
 99  
         public Date getEffectiveDate() {
 100  0
                 return this.effectiveDate;
 101  
         }
 102  
 
 103  
         @Override
 104  
         public Date getExpirationDate() {
 105  0
                 return this.expirationDate;
 106  
         }
 107  
 
 108  
         @Override
 109  
         public String getId() {
 110  0
                 return this.id;
 111  
         }
 112  
 
 113  
 }