Coverage Report - org.kuali.student.core.organization.assembly.data.client.VersionData
 
Classes in this File Line Coverage Branch Coverage Complexity
VersionData
0%
0/10
N/A
1
VersionData$Properties
0%
0/6
N/A
1
 
 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  
 import org.kuali.student.common.assembly.data.Data;
 19  
 import org.kuali.student.common.assembly.helper.PropertyEnum;
 20  
 
 21  
 public class VersionData extends Data {
 22  0
         public enum Properties implements PropertyEnum {
 23  0
                 TYPENAME("typeName"), ID("id"), VERSION_INDICATOR("versionIndicator");
 24  
 
 25  
                 private final String key;
 26  
 
 27  0
                 private Properties(final String key) {
 28  0
                         this.key = key;
 29  0
                 }
 30  
 
 31  
                 @Override
 32  
                 public String getKey() {
 33  0
                         return this.key;
 34  
                 }                
 35  
         }
 36  
         private static final long serialVersionUID = 1L;
 37  
         
 38  
         protected VersionData() {
 39  
                 // for RPC serialization
 40  0
                 super(VersionData.class.getName());
 41  0
         }
 42  
         public VersionData(String typeName, String id, String versionIndicator) {
 43  0
                 super(VersionData.class.getName());
 44  0
                 super.set(Properties.TYPENAME.getKey(), typeName);
 45  0
                 super.set(Properties.ID.getKey(), id);
 46  0
                 super.set(Properties.VERSION_INDICATOR.getKey(), versionIndicator);
 47  0
         }
 48  
         public String getTypeName() {
 49  0
                 return super.get(Properties.TYPENAME.getKey());
 50  
         }
 51  
         public String getId() {
 52  0
                 return super.get(Properties.ID.getKey());
 53  
         }
 54  
         public String getVersionIndicator() {
 55  0
                 return super.get(Properties.VERSION_INDICATOR.getKey());
 56  
         }
 57  
 }