Coverage Report - org.kuali.student.r2.common.dto.TypeStateEntityInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
TypeStateEntityInfo
0%
0/19
0%
0/2
1.1
 
 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  
 
 17  
 package org.kuali.student.r2.common.dto;
 18  
 
 19  
 import java.io.Serializable;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAttribute;
 22  
 import javax.xml.bind.annotation.XmlTransient;
 23  
 
 24  
 import org.kuali.student.r2.common.infc.TypeStateEntity;
 25  
 
 26  
 
 27  
 /**
 28  
  * Information about entities with types and states.
 29  
  *
 30  
  * @author nwright
 31  
  */
 32  
 
 33  
 @SuppressWarnings("serial")
 34  
 @XmlTransient
 35  
 public abstract class TypeStateEntityInfo 
 36  
     extends HasAttributesAndMetaInfo 
 37  
     implements TypeStateEntity, Serializable {
 38  
 
 39  
     @XmlAttribute
 40  
     private String typeKey;
 41  
 
 42  
     @XmlAttribute
 43  
     private String stateKey;
 44  
 
 45  
 
 46  
     /**
 47  
      * Constructs a new TypeStateEntityInfo.
 48  
      */
 49  0
     public TypeStateEntityInfo() {
 50  0
     }
 51  
 
 52  
     /**
 53  
      * Constructs a new TypeStateEntityInfo from another
 54  
      * TypeStateEntity.
 55  
      *
 56  
      * @param entity the TypeStateEntity to copy
 57  
      */
 58  
     public TypeStateEntityInfo(TypeStateEntity entity) {
 59  0
         super(entity);
 60  0
         if (null != entity) {
 61  0
             this.typeKey = entity.getTypeKey();
 62  0
             this.stateKey = entity.getStateKey();
 63  
         }
 64  0
     }
 65  
 
 66  
     @Override
 67  
     public String getTypeKey() {
 68  0
         return typeKey;
 69  
     }
 70  
 
 71  
     public void setTypeKey(String typeKey) {
 72  0
         this.typeKey = typeKey;
 73  0
     }
 74  
 
 75  
     @Override
 76  
     public String getStateKey() {
 77  0
         return stateKey;
 78  
     }
 79  
 
 80  
     public void setStateKey(String stateKey) {
 81  0
         this.stateKey = stateKey;
 82  0
     }
 83  
 
 84  
 
 85  
     // Compatibility methods
 86  
 
 87  
     @Override
 88  
     @Deprecated
 89  
     public String getType() {
 90  0
         return getTypeKey();
 91  
     }
 92  
 
 93  
     @Deprecated
 94  
     public void setType(String typeKey) {
 95  0
         setTypeKey(typeKey);
 96  0
     }
 97  
 
 98  
     @Override
 99  
     @Deprecated
 100  
     public String getState() {
 101  0
         return this.getStateKey();
 102  
     }
 103  
 
 104  
     @Deprecated
 105  
     public void setState(String stateKey) {
 106  0
         setStateKey(stateKey);
 107  0
     }
 108  
 }