Coverage Report - org.kuali.student.r2.core.organization.dto.OrgCodeInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
OrgCodeInfo
0%
0/14
0%
0/2
1.167
 
 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.osedu.org/licenses/ECL-2.0
 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  
 package org.kuali.student.r2.core.organization.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.List;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAccessType;
 22  
 import javax.xml.bind.annotation.XmlAccessorType;
 23  
 import javax.xml.bind.annotation.XmlAnyElement;
 24  
 import javax.xml.bind.annotation.XmlType;
 25  
 
 26  
 import org.kuali.student.r2.common.dto.KeyNamelessEntityInfo;
 27  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 28  
 import org.kuali.student.r2.core.organization.infc.OrgCode;
 29  
 import org.w3c.dom.Element;
 30  
 
 31  
 /**
 32  
  * Detailed information about organization codes.
 33  
  *
 34  
  * @author tom
 35  
  */
 36  0
 @XmlAccessorType(XmlAccessType.FIELD)
 37  
 @XmlType(name = "OrgCodeInfo", propOrder = {
 38  
     "key", "value", "descr",
 39  
     "meta", "attributes", "_futureElements"})
 40  
 public class OrgCodeInfo
 41  
         extends KeyNamelessEntityInfo
 42  
         implements OrgCode, Serializable {
 43  
 
 44  
     private static final long serialVersionUID = 1L;
 45  
     @XmlAnyElement
 46  
     private String value;
 47  
     @XmlAnyElement
 48  
     private RichTextInfo descr;
 49  
     @XmlAnyElement
 50  
     private List<Element> _futureElements;
 51  
 
 52  
     /**
 53  
      * Constructs a new OrgCodeInfo.
 54  
      */
 55  0
     public OrgCodeInfo() {
 56  0
     }
 57  
 
 58  
     /**
 59  
      * Constructs a new OrgCodeInfo from an OrgCode.
 60  
      *
 61  
      * @param orgCode the OrgCode to copy
 62  
      */
 63  
     public OrgCodeInfo(OrgCode orgCode) {
 64  0
         super(orgCode);
 65  0
         this.value = orgCode.getValue();
 66  0
         if (orgCode.getDescr() != null) {
 67  0
             this.descr = new RichTextInfo (orgCode.getDescr());
 68  
         }
 69  0
     }
 70  
 
 71  
     @Override
 72  
     public RichTextInfo getDescr() {
 73  0
         return descr;
 74  
     }
 75  
 
 76  
     public void setDescr(RichTextInfo descr) {
 77  0
         this.descr = descr;
 78  0
     }
 79  
 
 80  
     @Override
 81  
     public String getValue() {
 82  0
         return value;
 83  
     }
 84  
 
 85  
     public void setValue(String value) {
 86  0
         this.value = value;
 87  0
     }
 88  
     
 89  
     
 90  
     
 91  
 }