Coverage Report - org.kuali.student.enrollment.classI.lpr.dto.LuiPersonRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LuiPersonRelationInfo
0%
0/13
N/A
1
LuiPersonRelationInfo$1
N/A
N/A
1
LuiPersonRelationInfo$Builder
0%
0/14
N/A
1
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 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 implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.student.enrollment.classI.lpr.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.XmlElement;
 25  
 import javax.xml.bind.annotation.XmlType;
 26  
 
 27  
 import org.kuali.student.enrollment.classI.lpr.infc.LuiPersonRelation;
 28  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 29  
 import org.kuali.student.r2.common.infc.ModelBuilder;
 30  
 import org.w3c.dom.Element;
 31  
 
 32  
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlType(name = "LuiPersonRelationInfo", propOrder = {"id", "typeKey", "stateKey", "luiId", "personId", "effectiveDate", "expirationDate", "metaInfo", "attributes", "_futureElements"})
 34  0
 public class LuiPersonRelationInfo extends RelationshipInfo
 35  
         implements LuiPersonRelation, Serializable {
 36  
 
 37  
     private static final long serialVersionUID = 1L;
 38  
     @XmlElement
 39  
     private final String luiId;
 40  
     @XmlElement
 41  
     private final String personId;
 42  
     @XmlAnyElement
 43  
     private final List<Element> _futureElements;
 44  
 
 45  
     private LuiPersonRelationInfo() {
 46  0
         super ();
 47  0
         luiId = null;
 48  0
         personId = null;
 49  0
         _futureElements = null;
 50  0
     }
 51  
 
 52  
     private LuiPersonRelationInfo(LuiPersonRelation builder) {
 53  0
         super(builder);
 54  0
         this.luiId = builder.getLuiId();
 55  0
         this.personId = builder.getPersonId();
 56  0
         _futureElements = null;
 57  0
     }
 58  
 
 59  
     @Override
 60  
     public String getLuiId() {
 61  0
         return luiId;
 62  
     }
 63  
 
 64  
     @Override
 65  
     public String getPersonId() {
 66  0
         return personId;
 67  
     }
 68  
 
 69  
 
 70  0
     public static class Builder extends RelationshipInfo.Builder implements ModelBuilder<LuiPersonRelationInfo>, LuiPersonRelation {
 71  
 
 72  
         private String luiId;
 73  
         private String personId;
 74  
 
 75  0
         public Builder() {
 76  0
         }
 77  
 
 78  
         public Builder(LuiPersonRelation lprInfo) {
 79  0
             super(lprInfo);
 80  0
             this.luiId = lprInfo.getLuiId();
 81  0
             this.personId = lprInfo.getPersonId();
 82  0
         }
 83  
 
 84  
         @Override
 85  
         public LuiPersonRelationInfo build() {
 86  0
             return new LuiPersonRelationInfo(this);
 87  
         }
 88  
 
 89  
         @Override
 90  
         public String getLuiId() {
 91  0
             return luiId;
 92  
         }
 93  
 
 94  
         public void setLuiId(String luiId) {
 95  0
             this.luiId = luiId;
 96  0
         }
 97  
 
 98  
         @Override
 99  
         public String getPersonId() {
 100  0
             return personId;
 101  
         }
 102  
 
 103  
         public void setPersonId(String personId) {
 104  0
             this.personId = personId;
 105  0
         }
 106  
        
 107  
     }
 108  
 }