Coverage Report - org.kuali.student.r2.lum.lo.dto.LoLoRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LoLoRelationInfo
0%
0/13
0%
0/2
1.167
 
 1  
 /**
 2  
  * Copyright 2011 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 2.0 (the "License"); you may not use this file except in
 4  
  * compliance with the License. You may obtain a copy of the License at
 5  
  * http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or
 6  
  * agreed to in writing, software distributed under the License is distributed
 7  
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 8  
  * express or implied. See the License for the specific language governing
 9  
  * permissions and limitations under the License.
 10  
  */
 11  
 
 12  
 package org.kuali.student.r2.lum.lo.dto;
 13  
 
 14  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 15  
 import org.kuali.student.r2.lum.lo.infc.LoLoRelation;
 16  
 
 17  
 import javax.xml.bind.annotation.XmlAccessType;
 18  
 import javax.xml.bind.annotation.XmlAccessorType;
 19  
 import javax.xml.bind.annotation.XmlElement;
 20  
 import javax.xml.bind.annotation.XmlType;
 21  
 import java.io.Serializable;
 22  
 
 23  
 @XmlType(name = "LoInfo", propOrder = {"id", "typeKey", "stateKey", "loId", "relatedLoId", "effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"})
 24  
 @XmlAccessorType(XmlAccessType.FIELD)
 25  
 public class LoLoRelationInfo extends RelationshipInfo implements LoLoRelation, Serializable {
 26  
 
 27  
     private static final long serialVersionUID = 1L;
 28  
 
 29  
     @XmlElement
 30  
     private String loId;
 31  
 
 32  
     @XmlElement
 33  
     private String relatedLoId;
 34  
 
 35  0
     public LoLoRelationInfo() {
 36  
 
 37  0
     }
 38  
 
 39  
     public LoLoRelationInfo(LoLoRelation loLoRelation) {
 40  0
         super(loLoRelation);
 41  0
         if (loLoRelation != null) {
 42  0
             this.loId = loLoRelation.getLoId();
 43  0
             this.relatedLoId = loLoRelation.getRelatedLoId();
 44  
 
 45  
         }
 46  0
     }
 47  
 
 48  
     @Override
 49  
     public String getLoId() {
 50  0
         return loId;
 51  
     }
 52  
 
 53  
     public void setLoId(String loId) {
 54  0
         this.loId = loId;
 55  0
     }
 56  
 
 57  
     @Override
 58  
     public String getRelatedLoId() {
 59  0
         return relatedLoId;
 60  
     }
 61  
 
 62  
     public void setRelatedLoId(String relatedLoId) {
 63  0
         this.relatedLoId = relatedLoId;
 64  0
     }
 65  
 
 66  
 }