org.kuali.student.r2.common.dto
Class AmountInfo

java.lang.Object
  extended by org.kuali.student.r2.common.dto.AmountInfo
All Implemented Interfaces:
Serializable, Amount

public class AmountInfo
extends Object
implements Amount, Serializable

Detailed information about an amount including both the type of units and the quantity.

Author:
Kamal
See Also:
Serialized Form

Constructor Summary
AmountInfo()
          Constructs a new AmountInfo.
AmountInfo(Amount amount)
          Constructs a new AmountInfo from another Amount.
 
Method Summary
 String getUnitQuantity()
          The amount of units.
 String getUnitTypeKey()
          The kind of units associated with the quantity, such as hours/week.
 void setUnitQuantity(String unitQuantity)
           
 void setUnitTypeKey(String unitTypeKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmountInfo

public AmountInfo()
Constructs a new AmountInfo.


AmountInfo

public AmountInfo(Amount amount)
Constructs a new AmountInfo from another Amount.

Parameters:
amount - the amount to copy
Method Detail

getUnitTypeKey

public String getUnitTypeKey()
Description copied from interface: Amount
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. Key

Specified by:
getUnitTypeKey in interface Amount

setUnitTypeKey

public void setUnitTypeKey(String unitTypeKey)

getUnitQuantity

public String getUnitQuantity()
Description copied from interface: Amount
The amount of units. Allowed values consist of numeric values as well as the string "unbounded".

Specified by:
getUnitQuantity in interface Amount

setUnitQuantity

public void setUnitQuantity(String unitQuantity)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.