Coverage Report - org.kuali.student.core.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  
 
 17  
 package org.kuali.student.core.atp.dto;
 18  
 
 19  
 import java.io.Serializable;
 20  
 import java.util.List;
 21  
 import org.w3c.dom.Element;
 22  
 
 23  
 import javax.xml.bind.annotation.XmlAccessType;
 24  
 import javax.xml.bind.annotation.XmlAccessorType;
 25  
 import javax.xml.bind.annotation.XmlAnyElement;
 26  
 import javax.xml.bind.annotation.XmlAttribute;
 27  
 import javax.xml.bind.annotation.XmlElement;
 28  
 import javax.xml.bind.annotation.XmlType;
 29  
 
 30  
 import org.kuali.student.common.infc.ModelBuilder;
 31  
 import org.kuali.student.common.dto.RelationshipInfo;
 32  
 import org.kuali.student.core.atp.infc.AtpMilestoneRelation;
 33  
 
 34  
 
 35  
 /**
 36  
  * Information about an ATP Milestone Relationship.
 37  
  *
 38  
  * @Author tom
 39  
  * @Since Tue Apr 05 14:22:34 EDT 2011
 40  
  */
 41  
 
 42  
 @XmlAccessorType(XmlAccessType.FIELD)
 43  
 @XmlType(name = "AtpMilestoneRelationInfo", propOrder = {"id", "typeKey", "stateKey", "name", "descr", "effectiveDate", "expirationDate", "atpKey", "milestoneKey", "metaInfo", "attributes", "_futureElements"})
 44  
 
 45  
 public class AtpMilestoneRelationInfo extends RelationshipInfo implements AtpMilestoneRelation, Serializable {
 46  
 
 47  
     private static final long serialVersionUID = 1L;
 48  
 
 49  
     @XmlElement
 50  
     private final String atpKey;
 51  
 
 52  
     @XmlElement
 53  
     private final String milestoneKey;
 54  
 
 55  
     @XmlAnyElement
 56  
     private final List<Element> _futureElements;  
 57  
 
 58  0
     private AtpMilestoneRelationInfo() {
 59  0
         atpKey = null;
 60  0
         milestoneKey = null;
 61  0
         _futureElements = null;
 62  0
     }
 63  
 
 64  
     /**
 65  
      * Constructs a new AtpMilestoneRelationInfo from another
 66  
      * AtpMilestoneRelation.
 67  
      *
 68  
      * @param milestone the AtpMilestoneRelation to copy
 69  
      */
 70  
     public AtpMilestoneRelationInfo(AtpMilestoneRelation amr) {
 71  0
         super(amr);
 72  0
         this.atpKey = amr.getAtpKey();
 73  0
         this.milestoneKey = amr.getMilestoneKey();
 74  0
         _futureElements = null;
 75  0
     }
 76  
 
 77  
     /**
 78  
      * Name: AtpKey
 79  
      * Gets the ATP key in this relationship.
 80  
      *
 81  
      * @return the ATP key
 82  
      */
 83  
     @Override
 84  
     public String getAtpKey() {
 85  0
         return atpKey;
 86  
     }
 87  
 
 88  
     /**
 89  
      * Name: MilestoneKey
 90  
      * Gets the Milestone key in this relationship.
 91  
      *
 92  
      * @return the Milestone key
 93  
      */
 94  
     @Override
 95  
     public String getMilestoneKey() {
 96  0
         return milestoneKey;
 97  
     }
 98  
 
 99  
     /**
 100  
      * The builder class for this AtpMilestonerelationInfo.
 101  
      */
 102  0
     public static class Builder extends RelationshipInfo.Builder implements ModelBuilder<AtpMilestoneRelationInfo>, AtpMilestoneRelation {
 103  
 
 104  
         private String atpKey;
 105  
         private String milestoneKey;
 106  
 
 107  
         /**
 108  
          * Constructs a new builder.
 109  
          */
 110  0
         public Builder() {
 111  0
         }
 112  
 
 113  
         /**
 114  
          *  Constructs a new builder initialized from another
 115  
          *  AtpMilestoneRelation.
 116  
          */
 117  
         public Builder(AtpMilestoneRelation amrInfo) {
 118  0
             super(amrInfo);
 119  0
             this.atpKey = amrInfo.getAtpKey();
 120  0
             this.milestoneKey = amrInfo.getMilestoneKey();
 121  0
         }
 122  
 
 123  
         /**
 124  
          * Builds the AtpMilestoneRelation.
 125  
          *
 126  
          * @return a new AtpMilestoneRelation
 127  
          */
 128  
         public AtpMilestoneRelationInfo build() {
 129  0
             return new AtpMilestoneRelationInfo(this);
 130  
         }
 131  
 
 132  
         /**
 133  
          * Gets the ATP key in this relation.
 134  
          *
 135  
          * @return the ATP key
 136  
          */
 137  
         @Override
 138  
         public String getAtpKey() {
 139  0
             return atpKey;
 140  
         }
 141  
 
 142  
         /**
 143  
          * Sets the ATP key in this relation.
 144  
          *
 145  
          * @param atpKey the ATP key
 146  
          */
 147  
         public void atpKey(String atpKey) {
 148  0
             this.atpKey = atpKey;
 149  0
         }
 150  
 
 151  
         /**
 152  
          * Gets the Milestone key in this relation.
 153  
          *
 154  
          * @return the Milestone key
 155  
          */
 156  
         @Override
 157  
         public String getMilestoneKey() {
 158  0
             return milestoneKey;
 159  
         }
 160  
 
 161  
         /**
 162  
          * Sets the Milestone key in this relation.
 163  
          *
 164  
          * @param milestone the Milestone key
 165  
          */
 166  
 
 167  
         public void setMilestoneKey(String milestoneKey) {
 168  0
             this.milestoneKey = milestoneKey;
 169  0
         }
 170  
     }
 171  
 }