Coverage Report - org.kuali.student.r2.core.atp.dto.AtpAtpRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
AtpAtpRelationInfo
0%
0/13
0%
0/2
1.167
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the
 5  
  * "License"); you may not use this file except in compliance with the
 6  
  * License.  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
 13  
  * implied.  See the License for the specific language governing
 14  
  * permissions and limitations under the License.
 15  
  */
 16  
 package org.kuali.student.r2.core.atp.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.r2.core.atp.infc.AtpAtpRelation;
 28  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 29  
 import org.w3c.dom.Element;
 30  
 
 31  
 @XmlAccessorType(XmlAccessType.FIELD)
 32  
 @XmlType(name = "AtpAtpRelationInfo", propOrder = { 
 33  
                 "id", "typeKey", "stateKey", 
 34  
                 "atpId", "relatedAtpId", 
 35  
                 "effectiveDate", "expirationDate", 
 36  
                 "meta", "attributes", "_futureElements" })
 37  
 
 38  
 public class AtpAtpRelationInfo 
 39  
     extends RelationshipInfo 
 40  
     implements AtpAtpRelation, Serializable {
 41  
 
 42  
     private static final long serialVersionUID = 1L;
 43  
 
 44  
     @XmlElement
 45  
     private String atpId;
 46  
         
 47  
     @XmlElement
 48  
     private String relatedAtpId;
 49  
         
 50  
     @XmlAnyElement
 51  
     private List<Element> _futureElements;
 52  
 
 53  
     
 54  
     /**
 55  
      * Constructs a new AtpAtpRelationInfo.
 56  
      */
 57  0
     public AtpAtpRelationInfo() {
 58  0
     }
 59  
     
 60  
     /**
 61  
      * Constructs a new AtpAtpRelationInfo from another
 62  
      * AtpAtpRelation.
 63  
      * 
 64  
      * @param atpr the AtpAtpRelation to copy
 65  
      */
 66  
     public AtpAtpRelationInfo(AtpAtpRelation atpr) {
 67  0
         super(atpr);
 68  
         
 69  0
         if (atpr != null) {
 70  0
             this.atpId = atpr.getAtpId();
 71  0
             this.relatedAtpId = atpr.getRelatedAtpId();
 72  
         }
 73  0
     }
 74  
 
 75  
     @Override
 76  
     public String getAtpId() {
 77  0
         return atpId;
 78  
     }
 79  
     
 80  
     public void setAtpId(String atpId) {
 81  0
         this.atpId = atpId;
 82  0
     }
 83  
     
 84  
     @Override
 85  
     public String getRelatedAtpId() {
 86  0
         return relatedAtpId;
 87  
     }
 88  
     
 89  
     public void setRelatedAtpId(String relatedAtpId) {
 90  0
         this.relatedAtpId = relatedAtpId;
 91  0
     }
 92  
 }