© 2005 BEA Systems, Inc.

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

getCount

public double getCount()
Get the value of count

Returns:
count.

getUnit

public Unit getUnit()
Get the value of unit

Returns:
unit.

setCount

public void setCount(double count)
Set the value of count

Parameters:
count - count to be added

setUnit

public void setUnit(Unit unit)
Set the value of unit

Parameters:
unit - unit to be added

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved