Coverage Report - org.kuali.student.core.organization.dto.OrgCodeInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
OrgCodeInfo
0%
0/18
0%
0/2
1.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.core.organization.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.HashMap;
 20  
 import java.util.Map;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAttribute;
 25  
 import javax.xml.bind.annotation.XmlElement;
 26  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 27  
 
 28  
 import org.kuali.student.core.dto.HasAttributes;
 29  
 import org.kuali.student.core.dto.Idable;
 30  
 import org.kuali.student.core.dto.MetaInfo;
 31  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 32  
 
 33  
 /**
 34  
  *Detailed information about organization codes.
 35  
  */ 
 36  
 @XmlAccessorType(XmlAccessType.FIELD)
 37  0
 public class OrgCodeInfo implements Serializable, Idable, HasAttributes {
 38  
 
 39  
     private static final long serialVersionUID = 1L;
 40  
 
 41  
     @XmlElement
 42  
     private String desc;
 43  
 
 44  
     @XmlElement
 45  
     private String value;
 46  
 
 47  
     @XmlElement
 48  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 49  
     private Map<String, String> attributes;
 50  
 
 51  
     @XmlElement
 52  
     private MetaInfo metaInfo;
 53  
 
 54  
     @XmlAttribute(name="key")
 55  
     private String id;
 56  
 
 57  
     /**
 58  
      * The description of the code.
 59  
      */
 60  
     public String getDesc() {
 61  0
         return desc;
 62  
     }
 63  
 
 64  
     public void setDesc(String desc) {
 65  0
         this.desc = desc;
 66  0
     }
 67  
 
 68  
     /**
 69  
      * The code value.
 70  
      */
 71  
     public String getValue() {
 72  0
         return value;
 73  
     }
 74  
 
 75  
     public void setValue(String value) {
 76  0
         this.value = value;
 77  0
     }
 78  
 
 79  
     /**
 80  
      * List of key/value pairs, typically used for dynamic attributes.
 81  
      */
 82  
     public Map<String, String> getAttributes() {
 83  0
         if (attributes == null) {
 84  0
             attributes = new HashMap<String, String>();
 85  
         }
 86  0
         return attributes;
 87  
     }
 88  
 
 89  
     public void setAttributes(Map<String, String> attributes) {
 90  0
         this.attributes = attributes;
 91  0
     }
 92  
 
 93  
     /**
 94  
      * Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
 95  
      */
 96  
     public MetaInfo getMetaInfo() {
 97  0
         return metaInfo;
 98  
     }
 99  
 
 100  
     public void setMetaInfo(MetaInfo metaInfo) {
 101  0
         this.metaInfo = metaInfo;
 102  0
     }
 103  
 
 104  
     /**
 105  
      * Unique identifier for an Organization code record.
 106  
      */
 107  
     public String getId() {
 108  0
         return id;
 109  
     }
 110  
 
 111  
     public void setId(String id) {
 112  0
         this.id = id;
 113  0
     }
 114  
 }