Coverage Report - org.kuali.student.r2.core.classI.atp.dto.AtpMilestoneRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
AtpMilestoneRelationInfo
0%
0/12
N/A
1
AtpMilestoneRelationInfo$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
 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.classI.atp.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.List;
 20  
 import org.w3c.dom.Element;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAnyElement;
 25  
 import javax.xml.bind.annotation.XmlAttribute;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.XmlType;
 28  
 
 29  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 30  
 import org.kuali.student.r2.common.infc.ModelBuilder;
 31  
 import org.kuali.student.r2.core.classI.atp.infc.AtpMilestoneRelation;
 32  
 
 33  
 @XmlAccessorType(XmlAccessType.FIELD)
 34  
 @XmlType(name = "AtpMilestoneRelationInfo", propOrder = {"id", "typeKey", "stateKey", "atpKey", "milestoneKey", "effectiveDate", "expirationDate", "metaInfo", "attributes", "_futureElements"})
 35  
 public class AtpMilestoneRelationInfo extends RelationshipInfo implements AtpMilestoneRelation, Serializable {
 36  
 
 37  
     private static final long serialVersionUID = 1L;
 38  
     @XmlElement
 39  
     private final String atpKey;
 40  
     @XmlElement
 41  
     private final String milestoneKey;
 42  
     @XmlAnyElement
 43  
     private final List<Element> _futureElements;
 44  
 
 45  0
     private AtpMilestoneRelationInfo() {
 46  0
         atpKey = null;
 47  0
         milestoneKey = null;
 48  0
         _futureElements = null;
 49  0
     }
 50  
 
 51  
     /**
 52  
      * Constructs a new AtpMilestoneRelationInfo from another
 53  
      * AtpMilestoneRelation.
 54  
      *
 55  
      * @param amr the AtpMilestoneRelation to copy
 56  
      */
 57  
     public AtpMilestoneRelationInfo(AtpMilestoneRelation amr) {
 58  0
         super(amr);
 59  0
         this.atpKey = amr.getAtpKey();
 60  0
         this.milestoneKey = amr.getMilestoneKey();
 61  0
         _futureElements = null;
 62  0
     }
 63  
 
 64  
     @Override
 65  
     public String getAtpKey() {
 66  0
         return atpKey;
 67  
     }
 68  
 
 69  
     @Override
 70  
     public String getMilestoneKey() {
 71  0
         return milestoneKey;
 72  
     }
 73  
 
 74  
     /**
 75  
      * The builder class for this AtpMilestoneRelationInfo.
 76  
      */
 77  0
     public static class Builder extends RelationshipInfo.Builder implements ModelBuilder<AtpMilestoneRelationInfo>, AtpMilestoneRelation {
 78  
 
 79  
         private String atpKey;
 80  
         private String milestoneKey;
 81  
 
 82  
         /**
 83  
          * Constructs a new builder.
 84  
          */
 85  0
         public Builder() {
 86  0
         }
 87  
 
 88  
         /**
 89  
          *  Constructs a new builder initialized from another
 90  
          *  AtpMilestoneRelation.
 91  
          */
 92  
         public Builder(AtpMilestoneRelation amrInfo) {
 93  0
             super(amrInfo);
 94  0
             this.atpKey = amrInfo.getAtpKey();
 95  0
             this.milestoneKey = amrInfo.getMilestoneKey();
 96  0
         }
 97  
 
 98  
         @Override
 99  
         public AtpMilestoneRelationInfo build() {
 100  0
             return new AtpMilestoneRelationInfo(this);
 101  
         }
 102  
 
 103  
         @Override
 104  
         public String getAtpKey() {
 105  0
             return atpKey;
 106  
         }
 107  
 
 108  
         public void setAtpKey(String atpKey) {
 109  0
             this.atpKey = atpKey;
 110  0
         }
 111  
 
 112  
         @Override
 113  
         public String getMilestoneKey() {
 114  0
             return milestoneKey;
 115  
         }
 116  
 
 117  
         public void setMilestoneKey(String milestoneKey) {
 118  0
             this.milestoneKey = milestoneKey;
 119  0
         }
 120  
     }
 121  
 }