1 /**
2 * Copyright 2010 The Kuali Foundation Licensed under the
3 * Educational Community License, Version 2.0 (the "License"); you may
4 * not use this file except in compliance with the License. You may
5 * obtain a copy of the License at
6 *
7 * http://www.osedu.org/licenses/ECL-2.0
8 *
9 * Unless required by applicable law or agreed to in writing,
10 * software distributed under the License is distributed on an "AS IS"
11 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12 * or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15
16 package org.kuali.student.common.dto;
17
18 import java.io.Serializable;
19
20 import javax.xml.bind.annotation.XmlAccessType;
21 import javax.xml.bind.annotation.XmlAccessorType;
22 import javax.xml.bind.annotation.XmlElement;
23
24 /**
25 * Detailed information about an amount including both the type of units and the quantity.
26 *
27 * @Author KSContractMojo
28 * @Author Kamal
29 * @Since Mon Jan 11 15:20:30 PST 2010
30 * @See <a href="https://test.kuali.org/confluence/display/KULSTU/amountInfo+Structure+v1.0-rc1">AmountInfo</>
31 *
32 */
33 @XmlAccessorType(XmlAccessType.FIELD)
34 public class AmountInfo implements Serializable {
35
36 private static final long serialVersionUID = 1L;
37
38 @XmlElement
39 private String unitType;
40
41 @XmlElement
42 private String unitQuantity;
43
44 /**
45 * 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.
46 */
47 public String getUnitType() {
48 return unitType;
49 }
50
51 public void setUnitType(String unitType) {
52 this.unitType = unitType;
53 }
54
55 /**
56 * The amount of units. Allowed values consist of numeric values as well as the string "unbounded".
57 */
58 public String getUnitQuantity() {
59 return unitQuantity;
60 }
61
62 public void setUnitQuantity(String unitQuantity) {
63 this.unitQuantity = unitQuantity;
64 }
65 }