Coverage Report - org.kuali.student.r2.core.enumerationmanagement.dto.EnumContextValueInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
EnumContextValueInfo
0%
0/17
0%
0/2
1.125
 
 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.r2.core.enumerationmanagement.dto;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.MetaInfo;
 19  
 import org.kuali.student.r2.common.infc.Meta;
 20  
 import org.kuali.student.r2.core.enumerationmanagement.infc.EnumContextValue;
 21  
 
 22  
 import javax.xml.bind.Element;
 23  
 import javax.xml.bind.annotation.XmlAccessType;
 24  
 import javax.xml.bind.annotation.XmlAccessorType;
 25  
 import javax.xml.bind.annotation.XmlAnyElement;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.XmlType;
 28  
 import java.io.Serializable;
 29  
 import java.util.List;
 30  
 
 31  
 
 32  
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlType(name = "EnumContextValueInfo", propOrder = {"key", "value","meta", "_futureElements"})
 34  
 public class EnumContextValueInfo implements EnumContextValue, Serializable {
 35  
 
 36  
     private static final long serialVersionUID = 1L;
 37  
 
 38  
     @XmlElement
 39  
     private String key;
 40  
     @XmlElement
 41  
     private String value;
 42  
     @XmlElement
 43  
     private MetaInfo meta;
 44  
     @XmlAnyElement
 45  
     private List<Element> _futureElements;
 46  
 
 47  0
     public EnumContextValueInfo() {
 48  0
     }
 49  
 
 50  0
     public EnumContextValueInfo(EnumContextValue enumContextValue) {
 51  0
         if (null != enumContextValue) {
 52  0
             this.meta = new MetaInfo(enumContextValue.getMeta());
 53  0
             this.key = enumContextValue.getKey();
 54  0
             this.value = enumContextValue.getValue();
 55  
         }
 56  0
     }
 57  
 
 58  
     @Override
 59  
     public String getKey() {
 60  0
         return key;
 61  
     }
 62  
 
 63  
     public void setKey(String key) {
 64  0
         this.key = key;
 65  0
     }
 66  
 
 67  
     @Override
 68  
     public String getValue() {
 69  0
         return value;
 70  
     }
 71  
 
 72  
     public void setValue(String value) {
 73  0
         this.value = value;
 74  0
     }
 75  
 
 76  
     @Override
 77  
     public Meta getMeta() {
 78  0
         return meta;
 79  
     }
 80  
     
 81  
     public void setMeta(MetaInfo meta) {
 82  0
         this.meta = meta;
 83  0
     }
 84  
     
 85  
 }