com.beasys.commerce.axiom.units
Interface Quantity

All Superinterfaces
Belonging, BusinessSmartComponent, Cloneable, Comparable, Serializable
All Known Implementing Classes:
QuantityImpl

public interface Quantity
extends Belonging

The quantity of something. It has a count and a unit of measure (e.g. 4 bags, 5 liters) Attribute: unit

Attribute: count The number of units.

See Also
QuantityHome, QuantityImpl

Method Summary
 double getCount()
          Get the value of count
 Unit getUnit()
          Get the value of unit
 void setCount(double count)
          Set the value of count
 void setUnit(Unit unit)
          Set the value of unit
 
Methods inherited from interface com.beasys.commerce.foundation.Belonging
clone, equals, interfaceName, setByValue, value
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getUnit

Unit getUnit()
Get the value of unit

Returns
unit.

setUnit

void setUnit(Unit unit)
Set the value of unit

Parameters
unit - unit to be added

getCount

double getCount()
Get the value of count

Returns
count.

setCount

void setCount(double count)
Set the value of count

Parameters
count - count to be added


Copyright © 2006 BEA Systems, Inc. All Rights Reserved