Coverage Report - org.kuali.student.r2.lum.clu.dto.LuCodeInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LuCodeInfo
0%
0/25
0%
0/2
1.083
 
 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  
 package org.kuali.student.r2.lum.clu.dto;
 16  
 
 17  
 import org.kuali.student.r2.lum.clu.infc.LuCode;
 18  
 import org.w3c.dom.Element;
 19  
 
 20  
 import javax.xml.bind.annotation.XmlAccessType;
 21  
 import javax.xml.bind.annotation.XmlAccessorType;
 22  
 import javax.xml.bind.annotation.XmlAnyElement;
 23  
 import javax.xml.bind.annotation.XmlElement;
 24  
 import javax.xml.bind.annotation.XmlType;
 25  
 import java.io.Serializable;
 26  
 import java.util.List;
 27  
 import javax.xml.bind.annotation.XmlAttribute;
 28  
 import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo;
 29  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 30  
 
 31  
 /**
 32  
  * Detailed information about learning unit codes.
 33  
  */
 34  0
 @XmlAccessorType(XmlAccessType.FIELD)
 35  
 @XmlType(name = "LuCodeInfo", propOrder = {"id",
 36  
     "typeKey",
 37  
     "descr",
 38  
     "value",
 39  
     "meta",
 40  
     "attributes",
 41  
     "_futureElements"})
 42  
 public class LuCodeInfo extends HasAttributesAndMetaInfo implements LuCode, Serializable {
 43  
 
 44  
     private static final long serialVersionUID = 1L;
 45  
     @XmlAttribute
 46  
     private String id;
 47  
     @XmlAttribute
 48  
     private String typeKey;
 49  
     @XmlElement
 50  
     private String value;
 51  
     @XmlElement
 52  
     private RichTextInfo descr;
 53  
     @XmlAnyElement
 54  
     private List<Element> _futureElements;
 55  
 
 56  0
     public LuCodeInfo() {
 57  0
     }
 58  
 
 59  
     public LuCodeInfo(LuCode luCode) {
 60  0
         super(luCode);
 61  0
         this.id = luCode.getId();
 62  0
         this.typeKey = luCode.getTypeKey();
 63  0
         if (luCode.getDescr() != null) {
 64  0
             this.descr = new RichTextInfo(luCode.getDescr());
 65  
         }
 66  0
         this.value = luCode.getValue();
 67  0
     }
 68  
 
 69  
     @Override
 70  
     public String getValue() {
 71  0
         return value;
 72  
     }
 73  
 
 74  
     public void setValue(String value) {
 75  0
         this.value = value;
 76  0
     }
 77  
 
 78  
     @Override
 79  
     public RichTextInfo getDescr() {
 80  0
         return descr;
 81  
     }
 82  
 
 83  
     public void setDescr(RichTextInfo descr) {
 84  0
         this.descr = descr;
 85  0
     }
 86  
 
 87  
     @Override
 88  
     public String getId() {
 89  0
         return id;
 90  
     }
 91  
 
 92  
     public void setId(String id) {
 93  0
         this.id = id;
 94  0
     }
 95  
 
 96  
     @Override
 97  
     public String getTypeKey() {
 98  0
         return typeKey;
 99  
     }
 100  
 
 101  
     public void setTypeKey(String typeKey) {
 102  0
         this.typeKey = typeKey;
 103  0
     }
 104  
 
 105  
     @Override
 106  
     @Deprecated
 107  
     public String getType() {
 108  0
         return typeKey;
 109  
     }
 110  
 
 111  
     @Deprecated
 112  
     public void setType(String typeKey) {
 113  0
         this.typeKey = typeKey;
 114  0
     }
 115  
 }