Coverage Report - org.kuali.student.lum.lu.dto.CluFeeRecordInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CluFeeRecordInfo
0%
0/31
0%
0/6
1.188
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation 
 3  
  *
 4  
  * Licensed under the Licensed under the Educational Community
 5  
  * License, Version 1.0 (the "License"); you may not use this file
 6  
  * except in compliance with the License.  You may obtain a copy of
 7  
  * the License at
 8  
  *
 9  
  * http://www.opensource.org/licenses/ecl1.php
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 14  
  * implied.  See the License for the specific language governing
 15  
  * permissions and limitations under the License.
 16  
  */
 17  
 
 18  
 package org.kuali.student.lum.lu.dto;
 19  
 
 20  
 import org.kuali.student.core.dto.*;
 21  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 22  
 
 23  
 import javax.xml.bind.annotation.XmlAccessType;
 24  
 import javax.xml.bind.annotation.XmlAccessorType;
 25  
 import javax.xml.bind.annotation.XmlAttribute;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 28  
 import java.io.Serializable;
 29  
 import java.util.ArrayList;
 30  
 import java.util.HashMap;
 31  
 import java.util.List;
 32  
 import java.util.Map;
 33  
 
 34  
 
 35  
 /**
 36  
  * Information about a fee related to a clu.
 37  
  *
 38  
  * @Author Kamal
 39  
  * @Since Mon Jan 11 15:20:48 PST 2010
 40  
  */
 41  
 
 42  
 @XmlAccessorType(XmlAccessType.FIELD)
 43  0
 public class CluFeeRecordInfo implements Serializable, Idable, HasAttributes {
 44  
 
 45  
     private static final long serialVersionUID = 1L;
 46  
 
 47  
     @XmlElement
 48  
     private String feeType;
 49  
 
 50  
     @XmlElement
 51  
     private String rateType;
 52  
 
 53  
     @XmlElement
 54  
     private List<CurrencyAmountInfo> feeAmounts;
 55  
 
 56  
     @XmlElement
 57  
     private List<AffiliatedOrgInfo> affiliatedOrgs;
 58  
 
 59  
     @XmlElement
 60  
     private RichTextInfo descr;
 61  
 
 62  
     @XmlElement
 63  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 64  
     private Map<String, String> attributes;
 65  
 
 66  
     @XmlElement
 67  
     private MetaInfo metaInfo;
 68  
 
 69  
     @XmlAttribute
 70  
     private String id;
 71  
 
 72  
 
 73  
     /**
 74  
      * A code that identifies the type of the fee. For example: Lab
 75  
      * Fee or Tuition Fee or CMF for Course Materials Fee.
 76  
      */
 77  
 
 78  
     public String getFeeType() {
 79  0
         return feeType;
 80  
     }
 81  
 
 82  
     public void setFeeType(String feeType) {
 83  0
         this.feeType = feeType;
 84  0
     }
 85  
 
 86  
 
 87  
     /**
 88  
      * Indicates the structure and interpretation of the fee amounts,
 89  
      * i.e. Fixed, Variable, Multiple.
 90  
      */
 91  
 
 92  
     public String getRateType() {
 93  0
         return rateType;
 94  
     }
 95  
 
 96  
     public void setRateType(String rateType) {
 97  0
         this.rateType = rateType;
 98  0
     }
 99  
 
 100  
 
 101  
     /**
 102  
      * The amount or amounts associated with the fee. The number fee
 103  
      * amounts and interpretation depends on the rate type.
 104  
      */
 105  
 
 106  
     public List<CurrencyAmountInfo> getFeeAmounts() {
 107  0
         if (feeAmounts == null) {
 108  0
             feeAmounts = new ArrayList<CurrencyAmountInfo>();
 109  
         }
 110  
 
 111  0
         return feeAmounts;
 112  
     }
 113  
 
 114  
     public void setFeeAmounts(List<CurrencyAmountInfo> feeAmounts) {
 115  0
         this.feeAmounts = feeAmounts;
 116  0
     }
 117  
 
 118  
 
 119  
     /**
 120  
      * List of affiliated organizations.
 121  
      */
 122  
 
 123  
     public List<AffiliatedOrgInfo> getAffiliatedOrgs() {
 124  0
         if (affiliatedOrgs == null) {
 125  0
             affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(0);
 126  
         }
 127  
 
 128  0
         return affiliatedOrgs;
 129  
     }
 130  
 
 131  
 
 132  
     public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) {
 133  0
         this.affiliatedOrgs = affiliatedOrgs;
 134  0
     }
 135  
 
 136  
 
 137  
     /**
 138  
      * Narrative description of the CLU Fee Record.
 139  
      */
 140  
 
 141  
     public RichTextInfo getDescr() {
 142  0
         return descr;
 143  
     }
 144  
 
 145  
     public void setDescr(RichTextInfo descr) {
 146  0
         this.descr = descr;
 147  0
     }
 148  
 
 149  
 
 150  
     /**
 151  
      * List of key/value pairs, typically used for dynamic attributes.
 152  
      */
 153  
 
 154  
     public Map<String, String> getAttributes() {
 155  0
         if (attributes == null) {
 156  0
             attributes = new HashMap<String, String>();
 157  
         }
 158  
 
 159  0
         return attributes;
 160  
     }
 161  
 
 162  
     public void setAttributes(Map<String, String> attributes) {
 163  0
         this.attributes = attributes;
 164  0
     }
 165  
 
 166  
 
 167  
     /**
 168  
      * Create and last update info for the structure. This is optional
 169  
      * and treated as read only since the data is set by the internals
 170  
      * of the service during maintenance operations.
 171  
      */
 172  
 
 173  
     public MetaInfo getMetaInfo() {
 174  0
         return metaInfo;
 175  
     }
 176  
 
 177  
     public void setMetaInfo(MetaInfo metaInfo) {
 178  0
         this.metaInfo = metaInfo;
 179  0
     }
 180  
 
 181  
 
 182  
     /**
 183  
      * Identifier for the clu fee record.
 184  
      */
 185  
 
 186  
     public String getId() {
 187  0
         return id;
 188  
     }
 189  
 
 190  
     public void setId(String id) {
 191  0
         this.id = id;
 192  0
     }
 193  
 }