Coverage Report - org.kuali.student.lum.lu.dto.LuCodeInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LuCodeInfo
0%
0/21
0%
0/2
1.083
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation 
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the
 5  
  * "License"); you may not use this file except in compliance with the
 6  
  * License. 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
 13  
  * implied. See the License for the specific language governing
 14  
  * permissions and limitations under the License.
 15  
  */
 16  
 
 17  
 package org.kuali.student.lum.lu.dto;
 18  
 
 19  
 import org.kuali.student.core.dto.HasAttributes;
 20  
 import org.kuali.student.core.dto.Idable;
 21  
 import org.kuali.student.core.dto.MetaInfo;
 22  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 23  
 
 24  
 import javax.xml.bind.annotation.XmlAccessType;
 25  
 import javax.xml.bind.annotation.XmlAccessorType;
 26  
 import javax.xml.bind.annotation.XmlAttribute;
 27  
 import javax.xml.bind.annotation.XmlElement;
 28  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 29  
 import java.io.Serializable;
 30  
 import java.util.HashMap;
 31  
 import java.util.Map;
 32  
 
 33  
 
 34  
 /**
 35  
  * Detailed information about learning unit codes.
 36  
  */
 37  
 
 38  
 @XmlAccessorType(XmlAccessType.FIELD)
 39  0
 public class LuCodeInfo implements Serializable, Idable, HasAttributes {
 40  
 
 41  
     private static final long serialVersionUID = 1L;
 42  
 
 43  
     @XmlElement
 44  
     private String descr;
 45  
 
 46  
     @XmlAttribute
 47  
     private String type;
 48  
 
 49  
     @XmlElement
 50  
     private String value;
 51  
 
 52  
     @XmlElement
 53  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 54  
     private Map<String, String> attributes;
 55  
 
 56  
     @XmlElement
 57  
     private MetaInfo metaInfo;
 58  
 
 59  
     @XmlAttribute
 60  
     private String id;
 61  
 
 62  
 
 63  
     /**
 64  
      * The description of the code.
 65  
      */
 66  
 
 67  
     public String getDescr() {
 68  0
         return descr;
 69  
     }
 70  
 
 71  
     public void setDescr(String descr) {
 72  0
         this.descr = descr;
 73  0
     }
 74  
 
 75  
 
 76  
     /**
 77  
      * The code's type
 78  
      */
 79  
 
 80  
     public void setType(String type) {
 81  0
         this.type = type;
 82  0
     }
 83  
 
 84  
     public String getType() {
 85  0
         return type;
 86  
     }
 87  
 
 88  
 
 89  
     /**
 90  
      * The code's value.
 91  
      */
 92  
 
 93  
     public String getValue() {
 94  0
         return value;
 95  
     }
 96  
 
 97  
     public void setValue(String value) {
 98  0
         this.value = value;
 99  0
     }
 100  
 
 101  
 
 102  
     /**
 103  
      * List of key/value pairs, typically used for dynamic attributes.
 104  
      */
 105  
 
 106  
     @Override
 107  
     public Map<String, String> getAttributes() {
 108  0
         if (attributes == null) {
 109  0
             attributes = new HashMap<String, String>();
 110  
         }
 111  
 
 112  0
         return attributes;
 113  
     }
 114  
 
 115  
     @Override
 116  
     public void setAttributes(Map<String, String> attributes) {
 117  0
         this.attributes = attributes;
 118  0
     }
 119  
 
 120  
 
 121  
     /**
 122  
      * Create and last update info for the structure. This is optional
 123  
      * and treated as read only since the data is set by the internals
 124  
      * of the service during maintenance operations.
 125  
      */
 126  
 
 127  
     public MetaInfo getMetaInfo() {
 128  0
         return metaInfo;
 129  
     }
 130  
 
 131  
     public void setMetaInfo(MetaInfo metaInfo) {
 132  0
         this.metaInfo = metaInfo;
 133  0
     }
 134  
 
 135  
 
 136  
     /**
 137  
      * Unique identifier for an LU code record.
 138  
      */
 139  
 
 140  
     @Override
 141  
     public String getId() {
 142  0
         return id;
 143  
     }
 144  
 
 145  
     @Override
 146  
     public void setId(String id) {
 147  0
         this.id = id;
 148  0
     }
 149  
 }