Coverage Report - org.kuali.student.r2.core.atp.dto.AtpMilestoneRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
AtpMilestoneRelationInfo
0%
0/17
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.common.dto.RelationshipInfo;
 28  
 import org.kuali.student.r2.core.atp.infc.AtpMilestoneRelation;
 29  
 import org.w3c.dom.Element;
 30  
 
 31  
 @XmlAccessorType(XmlAccessType.FIELD)
 32  
 @XmlType(name = "AtpMilestoneRelationInfo", propOrder = { "id", "typeKey",
 33  
                 "stateKey", "atpKey", "milestoneKey", "effectiveDate",
 34  
                 "expirationDate", "meta", "attributes", "_futureElements" })
 35  
 public class AtpMilestoneRelationInfo extends RelationshipInfo implements
 36  
                 AtpMilestoneRelation, Serializable {
 37  
 
 38  
         private static final long serialVersionUID = 1L;
 39  
         @XmlElement
 40  
         private String atpKey;
 41  
         @XmlElement
 42  
         private String milestoneKey;
 43  
         @XmlAnyElement
 44  
         private List<Element> _futureElements;
 45  
 
 46  0
         public AtpMilestoneRelationInfo() {
 47  0
                 atpKey = null;
 48  0
                 milestoneKey = null;
 49  0
                 _futureElements = null;
 50  0
         }
 51  
 
 52  
         /**
 53  
          * Constructs a new AtpMilestoneRelationInfo from another
 54  
          * AtpMilestoneRelation.
 55  
          * 
 56  
          * @param amr
 57  
          *            the AtpMilestoneRelation to copy
 58  
          */
 59  
         public AtpMilestoneRelationInfo(AtpMilestoneRelation amr) {
 60  0
                 super(amr);
 61  0
                 if (null != amr) {
 62  0
                         this.atpKey = amr.getAtpKey();
 63  0
                         this.milestoneKey = amr.getMilestoneKey();
 64  0
                         _futureElements = null;
 65  
                 }
 66  0
         }
 67  
 
 68  
         @Override
 69  
         public String getAtpKey() {
 70  0
                 return atpKey;
 71  
         }
 72  
 
 73  
         
 74  
         public void setAtpKey(String atpKey) {
 75  0
                 this.atpKey = atpKey;
 76  0
         }
 77  
 
 78  
         @Override
 79  
         public String getMilestoneKey() {
 80  0
                 return milestoneKey;
 81  
         }
 82  
 
 83  
         
 84  
         public void setMilestoneKey(String milestoneKey) {
 85  0
                 this.milestoneKey = milestoneKey;
 86  0
         }
 87  
 }