Coverage Report - org.kuali.student.r2.lum.lo.dto.LoCategoryInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LoCategoryInfo
0%
0/17
0%
0/2
1.125
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 2.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.osedu.org/licenses/ECL-2.0 Unless required by applicable law or
 6  
  * agreed to in writing, software distributed under the License is distributed
 7  
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 8  
  * express or implied. See the License for the specific language governing
 9  
  * permissions and limitations under the License.
 10  
  */
 11  
 
 12  
 package org.kuali.student.r2.lum.lo.dto;
 13  
 
 14  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 15  
 import org.kuali.student.r2.lum.lo.infc.LoCategory;
 16  
 import org.w3c.dom.Element;
 17  
 
 18  
 import javax.xml.bind.annotation.XmlAccessType;
 19  
 import javax.xml.bind.annotation.XmlAccessorType;
 20  
 import javax.xml.bind.annotation.XmlAnyElement;
 21  
 import javax.xml.bind.annotation.XmlType;
 22  
 
 23  
 import javax.xml.bind.annotation.XmlElement;
 24  
 import java.io.Serializable;
 25  
 import java.util.Date;
 26  
 import java.util.List;
 27  
 
 28  
 /**
 29  
  * Detailed information about a learning objective category.
 30  
  * 
 31  
  * @author Kuali Student Team (sambitpa@kuali.org)
 32  
  */
 33  
 @XmlType(name = "LoCategoryInfo", propOrder = {"id", "typeKey", "stateKey", "name", "descr", "loRepositoryKey", "effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"})
 34  
 @XmlAccessorType(XmlAccessType.FIELD)
 35  
 public class LoCategoryInfo extends IdEntityInfo implements LoCategory, Serializable {
 36  
 
 37  
     private static final long serialVersionUID = 1L;
 38  
 
 39  
     @XmlElement
 40  
     private String loRepositoryKey;
 41  
 
 42  
     @XmlElement
 43  
     private Date effectiveDate;
 44  
 
 45  
     @XmlElement
 46  
     private Date expirationDate;
 47  
 
 48  
     @XmlAnyElement
 49  
     private List<Element> _futureElements;
 50  
 
 51  0
     public LoCategoryInfo() {
 52  
 
 53  0
     }
 54  
 
 55  
     public LoCategoryInfo(LoCategory loCategory) {
 56  0
         super(loCategory);
 57  0
         if (loCategory != null) {
 58  0
             this.loRepositoryKey = loCategory.getLoRepositoryKey();
 59  0
             this.effectiveDate = new Date(loCategory.getEffectiveDate().getTime());
 60  0
             this.expirationDate = new Date(loCategory.getExpirationDate().getTime());
 61  
         }
 62  0
     }
 63  
 
 64  
     @Override
 65  
     public String getLoRepositoryKey() {
 66  0
         return loRepositoryKey;
 67  
     }
 68  
 
 69  
     public void setLoRepositoryKey(String loRepositoryKey) {
 70  0
         this.loRepositoryKey = loRepositoryKey;
 71  0
     }
 72  
 
 73  
     @Override
 74  
     public Date getEffectiveDate() {
 75  0
         return effectiveDate;
 76  
     }
 77  
 
 78  
     public void setEffectiveDate(Date effectiveDate) {
 79  0
         this.effectiveDate = effectiveDate;
 80  0
     }
 81  
 
 82  
     @Override
 83  
     public Date getExpirationDate() {
 84  0
         return expirationDate;
 85  
     }
 86  
 
 87  
     public void setExpirationDate(Date expirationDate) {
 88  0
         this.expirationDate = expirationDate;
 89  0
     }
 90  
 
 91  
 }