Coverage Report - org.kuali.student.r2.core.fee.dto.EnrollmentFeeInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
EnrollmentFeeInfo
0%
0/26
0%
0/2
1.083
 
 1  
 /*
 2  
  * Copyright 2012 The Kuali Foundation 
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.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.osedu.org/licenses/ECL-2.0
 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.fee.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.fee.infc.EnrollmentFee;
 28  
 import org.kuali.student.r2.common.dto.IdNamelessEntityInfo;
 29  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 30  
 import org.w3c.dom.Element;
 31  
 
 32  
 /*
 33  
  * The name "EnrollmentFee" is a temporary name to distinguish this
 34  
  * from Fees in CM.
 35  
  */
 36  
 
 37  0
 @XmlAccessorType(XmlAccessType.FIELD)
 38  
 @XmlType(name = "EnrollmentFeeInfo", propOrder = { 
 39  
                 "id", "typeKey", "stateKey", "descr", 
 40  
                 "amount", "orgId", "refObjectURI",
 41  
                 "refObjectId", 
 42  
                 "meta", "attributes", "_futureElements" })
 43  
 
 44  
 public class EnrollmentFeeInfo 
 45  
     extends IdNamelessEntityInfo 
 46  
     implements EnrollmentFee, Serializable {
 47  
 
 48  
     private static final long serialVersionUID = 1L;
 49  
 
 50  
     @XmlElement
 51  
     private RichTextInfo descr;
 52  
 
 53  
     @XmlElement
 54  
     private EnrollmentFeeAmountInfo amount;
 55  
 
 56  
     @XmlElement
 57  
     private String orgId;
 58  
 
 59  
     @XmlElement
 60  
     private String refObjectURI;
 61  
 
 62  
     @XmlElement
 63  
     private String refObjectId;
 64  
         
 65  
     @XmlAnyElement
 66  
     private List<Element> _futureElements;
 67  
 
 68  
 
 69  
     /**
 70  
      * Constructs a new FeeInfo.
 71  
      */
 72  0
     public EnrollmentFeeInfo() {
 73  0
     }
 74  
 
 75  
     /**
 76  
      * Constructs a new FeeInfo from another Fee.
 77  
      * 
 78  
      * @param fee the Fee to copy
 79  
      */
 80  
     public EnrollmentFeeInfo(EnrollmentFee fee) {
 81  0
         super(fee);
 82  
 
 83  0
         if (fee != null) {
 84  0
             this.descr = new RichTextInfo(fee.getDescr());
 85  0
             this.amount = new EnrollmentFeeAmountInfo(fee.getAmount());
 86  0
             this.orgId = fee.getOrgId();
 87  0
             this.refObjectURI = fee.getRefObjectURI();
 88  0
             this.refObjectId = fee.getRefObjectId();
 89  
         }
 90  0
     }
 91  
 
 92  
     @Override
 93  
     public RichTextInfo getDescr() {
 94  0
         return descr;
 95  
     }
 96  
 
 97  
     public void setDescr(RichTextInfo descr) {
 98  0
         this.descr = descr;
 99  0
     }
 100  
 
 101  
     @Override
 102  
     public EnrollmentFeeAmountInfo getAmount() {
 103  0
         return amount;
 104  
     }
 105  
     
 106  
     public void setAmount(EnrollmentFeeAmountInfo amount) {
 107  0
         this.amount = amount;;
 108  0
     }
 109  
 
 110  
     @Override
 111  
     public String getOrgId() {
 112  0
         return orgId;
 113  
     }
 114  
     
 115  
     public void setOrgId(String orgId) {
 116  0
         this.orgId = orgId;
 117  0
     }
 118  
 
 119  
     @Override
 120  
     public String getRefObjectURI() {
 121  0
         return refObjectURI;
 122  
     }
 123  
     
 124  
     public void setRefObjectURI(String refObjectURI) {
 125  0
         this.refObjectURI = refObjectURI;
 126  0
     }
 127  
 
 128  
     @Override
 129  
     public String getRefObjectId() {
 130  0
         return refObjectId;
 131  
     }
 132  
     
 133  
     public void setRefObjectId(String refObjectId) {
 134  0
         this.refObjectId = refObjectId;
 135  0
     }
 136  
 }