Coverage Report - org.kuali.student.core.enumerationmanagement.dto.EnumerationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
EnumerationInfo
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.core.enumerationmanagement.dto;
 17  
 
 18  
 import java.util.ArrayList;
 19  
 import java.util.Date;
 20  
 import java.util.List;
 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  
 
 27  
 import org.kuali.student.common.dto.TypeInfo;
 28  
 
 29  
 
 30  
 /**
 31  
  *Descriptive information about an enumeration, including field constraints and supported contexts.
 32  
  */ 
 33  
 @XmlAccessorType(XmlAccessType.FIELD)
 34  0
 public class EnumerationInfo extends TypeInfo {
 35  
 
 36  
     private static final long serialVersionUID = 1L;
 37  
 
 38  
     @XmlAttribute(name="key")
 39  
     private String id;
 40  
     
 41  
     @XmlElement
 42  
     private String name;
 43  
     
 44  
     @XmlElement(name ="desc")
 45  
     private String descr;
 46  
 
 47  
     @XmlElement
 48  
     private Date effectiveDate;
 49  
     
 50  
     @XmlElement
 51  
     private Date expirationDate;
 52  
     
 53  
     @XmlElement
 54  
     private List<String> contextDescriptors;
 55  
     
 56  
     public String getId() {
 57  0
         return id;
 58  
     }
 59  
 
 60  
     public void setId(String id) {
 61  0
         this.id = id;
 62  0
     }
 63  
 
 64  
     public String getName() {
 65  0
         return name;
 66  
     }
 67  
 
 68  
     public void setName(String name) {
 69  0
         this.name = name;
 70  0
     }
 71  
 
 72  
     public String getDescr() {
 73  0
         return descr;
 74  
     }
 75  
 
 76  
     public void setDescr(String descr) {
 77  0
         this.descr = descr;
 78  0
     }
 79  
 
 80  
     public Date getEffectiveDate() {
 81  0
         return effectiveDate;
 82  
     }
 83  
 
 84  
     public void setEffectiveDate(Date effectiveDate) {
 85  0
         this.effectiveDate = effectiveDate;
 86  0
     }
 87  
 
 88  
     public Date getExpirationDate() {
 89  0
         return expirationDate;
 90  
     }
 91  
 
 92  
     public void setExpirationDate(Date expirationDate) {
 93  0
         this.expirationDate = expirationDate;
 94  0
     }
 95  
 
 96  
     /**
 97  
      * List of contexts supported by this enumeration
 98  
      */
 99  
     public List<String> getContextDescriptors() {
 100  0
         if (contextDescriptors == null) {
 101  0
             contextDescriptors = new ArrayList<String>();
 102  
         }
 103  0
         return contextDescriptors;
 104  
     }
 105  
 
 106  
     public void setContextDescriptors(List<String> contextDescriptors) {
 107  0
         this.contextDescriptors = contextDescriptors;
 108  0
     }
 109  
 }