Coverage Report - org.kuali.student.common.dto.TypeInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
TypeInfo
0%
0/21
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  
 
 16  
 package org.kuali.student.common.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.Date;
 20  
 import java.util.HashMap;
 21  
 import java.util.Map;
 22  
 
 23  
 import javax.xml.bind.annotation.XmlAccessType;
 24  
 import javax.xml.bind.annotation.XmlAccessorType;
 25  
 import javax.xml.bind.annotation.XmlAttribute;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 28  
 
 29  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 30  
 
 31  
 @SuppressWarnings("serial")
 32  
 @XmlAccessorType(XmlAccessType.FIELD)
 33  0
 public abstract class TypeInfo implements Serializable, Idable, HasAttributes {
 34  
         
 35  
         @XmlAttribute(name="key")
 36  
         private String id;
 37  
         
 38  
         @XmlElement
 39  
         private String name;
 40  
         
 41  
         @XmlElement(name ="desc")
 42  
         private String descr;
 43  
 
 44  
         @XmlElement
 45  
         private Date effectiveDate;
 46  
         
 47  
         @XmlElement
 48  
         private Date expirationDate;
 49  
         
 50  
         @XmlElement
 51  
         @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 52  
         private Map<String, String> attributes;
 53  
         
 54  
         public String getName(){
 55  0
                 return name;
 56  
         }
 57  
         
 58  
         public void setName(String name){
 59  0
                 this.name = name;
 60  0
         }
 61  
         
 62  
         public String getDescr(){
 63  0
                 return descr;
 64  
         }
 65  
         
 66  
         public void setDescr(String descr){
 67  0
                 this.descr = descr;
 68  0
         }
 69  
         
 70  
         public Date getEffectiveDate(){
 71  0
                 return effectiveDate;
 72  
         }
 73  
         
 74  
         public void setEffectiveDate(Date effectiveDate){
 75  0
                 this.effectiveDate = effectiveDate;
 76  0
         }
 77  
         
 78  
         public Date getExpirationDate(){
 79  0
                 return expirationDate;
 80  
         }
 81  
         
 82  
         public void setExpirationDate(Date expirationDate){
 83  0
                 this.expirationDate = expirationDate;
 84  0
         }
 85  
         
 86  
         public Map<String, String> getAttributes(){
 87  0
                 if(attributes == null){
 88  0
                         attributes = new HashMap<String, String>();
 89  
                 }
 90  0
                 return attributes;
 91  
         }
 92  
         
 93  
         public void setAttributes(Map<String, String> attributes){
 94  0
                 this.attributes = attributes;
 95  0
         }
 96  
         
 97  
         public String getId(){
 98  0
                 return id;
 99  
         }
 100  
         
 101  
         public void setId(String id){
 102  0
                 this.id = id;
 103  0
         }
 104  
 }