© 2001 BEA Systems, Inc.

com.beasys.commerce.axiom.units
Interface Money

All Superinterfaces:
Belonging, BusinessSmartComponent, java.lang.Cloneable, java.lang.Comparable, java.io.Serializable
All Known Subinterfaces:
Price

public interface Money
extends Belonging

Represents money as value and currency

See Also:
MoneyHome

Method Summary
 java.lang.String getCurrency()
          Returns the currency of money
 double getValue()
          Returns the value of money
 void setCurrency(java.lang.String currency)
          Sets the currency of money
 void setValue(double value)
          Sets the value of money
 
Methods inherited from interface com.beasys.commerce.foundation.Belonging
clone, equals, interfaceName, setByValue, value
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getValue

public double getValue()
Returns the value of money
Returns:
value.

setValue

public void setValue(double value)
Sets the value of money
Parameters:
value - value to be set

getCurrency

public java.lang.String getCurrency()
Returns the currency of money
Returns:
currency.

setCurrency

public void setCurrency(java.lang.String currency)
                 throws InvalidArgumentException
Sets the currency of money
Parameters:
currency - currency to be set

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved