Coverage Report - org.kuali.student.r2.core.fee.dto.EnrollmentFeeAmountInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
EnrollmentFeeAmountInfo
0%
0/13
0%
0/2
1.167
 
 1  
 /*
 2  
  * Copyright 2010 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  
 
 17  
 package org.kuali.student.r2.core.fee.dto;
 18  
 
 19  
 import java.io.Serializable;
 20  
 import java.util.List;
 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.XmlElement;
 26  
 import javax.xml.bind.annotation.XmlType;
 27  
 
 28  
 import org.kuali.student.r2.core.fee.infc.EnrollmentFeeAmount;
 29  
 import org.w3c.dom.Element;
 30  
 
 31  
 /**
 32  
  * Detailed information about an amount of currency including both the
 33  
  * type of units and the quantity.
 34  
  *
 35  
  * @author Kamal
 36  
  * @since Mon Jan 11 15:20:51 PST 2010
 37  
  */
 38  
 
 39  
 @XmlAccessorType(XmlAccessType.FIELD)
 40  
 @XmlType(name = "FeeAmountInfo", propOrder = {
 41  
                 "currencyTypeKey", "currencyQuantity",
 42  
                 "_futureElements"})
 43  
 
 44  
 public class EnrollmentFeeAmountInfo 
 45  
     implements EnrollmentFeeAmount, Serializable {
 46  
 
 47  
     private static final long serialVersionUID = 1L;
 48  
 
 49  
     @XmlElement
 50  
     private String currencyTypeKey;
 51  
 
 52  
     @XmlElement
 53  
     private Integer currencyQuantity;
 54  
     
 55  
     @XmlAnyElement
 56  
     private List<Element> _futureElements;
 57  
 
 58  
     /**
 59  
      * Constructs a new FeeAmount.
 60  
      */
 61  0
     public EnrollmentFeeAmountInfo() {
 62  0
     }
 63  
 
 64  
     /**
 65  
      * Constructs a new FeeAmount from another Currency.
 66  
      *
 67  
      * @param currency the currency to copy
 68  
      */   
 69  0
     public EnrollmentFeeAmountInfo(EnrollmentFeeAmount currency) {
 70  0
         if (currency != null) {        
 71  0
             this.currencyQuantity = currency.getCurrencyQuantity();
 72  0
             this.currencyTypeKey = currency.getCurrencyTypeKey();
 73  
         }
 74  0
     }
 75  
 
 76  
     @Override
 77  
     public String getCurrencyTypeKey() {
 78  0
         return currencyTypeKey;
 79  
     }
 80  
 
 81  
     public void setCurrencyTypeKey(String currencyTypeKey) {
 82  0
         this.currencyTypeKey = currencyTypeKey;
 83  0
     }
 84  
 
 85  
     @Override
 86  
     public Integer getCurrencyQuantity() {
 87  0
         return currencyQuantity;
 88  
     }
 89  
 
 90  
     public void setCurrencyQuantity(Integer currencyQuantity) {
 91  0
         this.currencyQuantity = currencyQuantity;
 92  0
     }
 93  
 }