Coverage Report - org.kuali.student.core.organization.assembly.data.client.RuntimeDataVersionsHelper
 
Classes in this File Line Coverage Branch Coverage Complexity
RuntimeDataVersionsHelper
0%
0/16
0%
0/2
1.182
RuntimeDataVersionsHelper$Properties
0%
0/8
N/A
1.182
 
 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.organization.assembly.data.client;
 17  
 
 18  
 
 19  
 import org.kuali.student.core.assembly.data.Data;
 20  
 import org.kuali.student.core.assembly.helper.PropertyEnum;
 21  
 
 22  
 
 23  
 public class RuntimeDataVersionsHelper
 24  
 {
 25  
         private static final long serialVersionUID = 1;
 26  
         
 27  0
         public enum Properties implements PropertyEnum
 28  
         {
 29  0
                 TYPE ("type"),
 30  0
                 ID ("id"),
 31  0
                 VERSION_IND ("versionInd");
 32  
                 
 33  
                 private final String key;
 34  
                 
 35  
                 private Properties (final String key)
 36  0
                 {
 37  0
                         this.key = key;
 38  0
                 }
 39  
                 
 40  
                 @Override
 41  
                 public String getKey ()
 42  
                 {
 43  0
                         return this.key;
 44  
                 }
 45  
         }
 46  
         private Data data;
 47  
         
 48  
         private RuntimeDataVersionsHelper (Data data)
 49  0
         {
 50  0
                 this.data = data;
 51  0
         }
 52  
         
 53  
         public static RuntimeDataVersionsHelper wrap (Data data)
 54  
         {
 55  0
                 if (data == null)
 56  
                 {
 57  0
                          return null;
 58  
                 }
 59  0
                 return new RuntimeDataVersionsHelper (data);
 60  
         }
 61  
         
 62  
         public Data getData ()
 63  
         {
 64  0
                 return data;
 65  
         }
 66  
         
 67  
         
 68  
         public void setType (String value)
 69  
         {
 70  0
                 data.set (Properties.TYPE.getKey (), value);
 71  0
         }
 72  
         
 73  
         
 74  
         public String getType ()
 75  
         {
 76  0
                 return (String) data.get (Properties.TYPE.getKey ());
 77  
         }
 78  
         
 79  
         
 80  
         public void setId (String value)
 81  
         {
 82  0
                 data.set (Properties.ID.getKey (), value);
 83  0
         }
 84  
         
 85  
         
 86  
         public String getId ()
 87  
         {
 88  0
                 return (String) data.get (Properties.ID.getKey ());
 89  
         }
 90  
         
 91  
         
 92  
         public void setVersionInd (String value)
 93  
         {
 94  0
                 data.set (Properties.VERSION_IND.getKey (), value);
 95  0
         }
 96  
         
 97  
         
 98  
         public String getVersionInd ()
 99  
         {
 100  0
                 return (String) data.get (Properties.VERSION_IND.getKey ());
 101  
         }
 102  
         
 103  
 }
 104