Coverage Report - org.kuali.student.common.dto.IdEntityInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
IdEntityInfo
0%
0/7
N/A
1
IdEntityInfo$Builder
0%
0/7
N/A
1
 
 1  
 /*
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the Educational
 3  
  * Community License, Version 2.0 (the "License"); you may not use
 4  
  * this file except in compliance with the License. You may obtain a
 5  
  * copy of the License at http://www.osedu.org/licenses/ECL-2.0 Unless
 6  
  * required by applicable law or agreed to in writing, software
 7  
  * distributed under the License is distributed on an "AS IS" BASIS,
 8  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 9  
  * implied. See the License for the specific language governing
 10  
  * permissions and limitations under the License.
 11  
  */
 12  
 
 13  
 package org.kuali.student.common.dto;
 14  
 
 15  
 import java.io.Serializable;
 16  
 
 17  
 import javax.xml.bind.annotation.XmlAttribute;
 18  
 import javax.xml.bind.annotation.XmlTransient;
 19  
 
 20  
 import org.kuali.student.common.infc.IdEntity;
 21  
 
 22  
 @SuppressWarnings("serial")
 23  
 @XmlTransient
 24  
 public abstract class IdEntityInfo extends EntityInfo implements IdEntity, Serializable {
 25  
 
 26  
     @XmlAttribute
 27  
     private String id;
 28  
 
 29  
     protected IdEntityInfo() {
 30  0
         super ();
 31  0
         id = null;
 32  0
     }
 33  
 
 34  
     protected IdEntityInfo(IdEntity builder) {
 35  0
         super(builder);
 36  0
         this.id = builder.getId();
 37  0
     }
 38  
 
 39  
     @Override
 40  
     public String getId() {
 41  0
         return id;
 42  
     }
 43  
 
 44  
     /**
 45  
      * The builder class for this abstract EntityInfo.
 46  
      */
 47  
 
 48  
     public static class Builder extends EntityInfo.Builder implements IdEntity {
 49  
 
 50  
         private String id;
 51  
 
 52  0
         public Builder() {}
 53  
 
 54  
         public Builder(IdEntity entity) {
 55  0
             super(entity);
 56  0
             this.id = entity.getId();
 57  0
         }
 58  
 
 59  
         @Override
 60  
         public String getId() {
 61  0
             return id;
 62  
         }
 63  
 
 64  
         public void setId(String id) {
 65  0
             this.id = id;
 66  0
         }
 67  
     }
 68  
 }