001    /**
002     * Copyright 2010 The Kuali Foundation Licensed under the
003     * Educational Community License, Version 2.0 (the "License"); you may
004     * not use this file except in compliance with the License. You may
005     * obtain a copy of the License at
006     *
007     * http://www.osedu.org/licenses/ECL-2.0
008     *
009     * Unless required by applicable law or agreed to in writing,
010     * software distributed under the License is distributed on an "AS IS"
011     * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012     * or implied. See the License for the specific language governing
013     * permissions and limitations under the License.
014     */
015    
016    package org.kuali.student.core.dto;
017    
018    import java.io.Serializable;
019    
020    import javax.xml.bind.annotation.XmlAccessType;
021    import javax.xml.bind.annotation.XmlAccessorType;
022    import javax.xml.bind.annotation.XmlElement;
023    
024    /**
025     * Detailed information about an amount including both the type of units and the quantity.
026     *
027     * @Author KSContractMojo
028     * @Author Kamal
029     * @Since Mon Jan 11 15:20:30 PST 2010
030     * @See <a href="https://test.kuali.org/confluence/display/KULSTU/amountInfo+Structure+v1.0-rc1">AmountInfo</>
031     *
032     */
033    @XmlAccessorType(XmlAccessType.FIELD)
034    public class AmountInfo implements Serializable {
035    
036        private static final long serialVersionUID = 1L;
037    
038        @XmlElement
039        private String unitType;
040    
041        @XmlElement
042        private String unitQuantity;
043    
044        /**
045         * The kind of units associated with the quantity, such as hours/week. It is expected that in usage in other structures, this value will always be enumerated based on that context.
046         */
047        public String getUnitType() {
048            return unitType;
049        }
050    
051        public void setUnitType(String unitType) {
052            this.unitType = unitType;
053        }
054    
055        /**
056         * The amount of units. Allowed values consist of numeric values as well as the string "unbounded".
057         */
058        public String getUnitQuantity() {
059            return unitQuantity;
060        }
061    
062        public void setUnitQuantity(String unitQuantity) {
063            this.unitQuantity = unitQuantity;
064        }
065    }