BEA Systems, Inc.

theory.smart.axiom.units
Interface Price

All Known Implementing Classes:
PriceImpl

public interface Price
extends Belonging

Represents the price of something. It has a value and a currency.

                  value
 [Price] <*>------> [double] 

 
                  currency
 [Price] <*>------> [String] 

 

See Also:
PriceHome, PriceImpl

Method Summary
 java.lang.String getCurrency()
          Get the value of currency
 double getValue()
          Get the value of value
 void setCurrency(java.lang.String currency)
          Set the value of currency
 void setValue(double value)
          Set the value of value
 
Methods inherited from interface theory.smart.foundation.Belonging
equals, value
 
Methods inherited from interface com.sun.java.util.collections.Comparable
compareTo
 

Method Detail

getValue

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

setValue

public void setValue(double value)
Set the value of value
Parameters:
values - value to be added

getCurrency

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

setCurrency

public void setCurrency(java.lang.String currency)
Set the value of currency
Parameters:
currencies - currency to be added

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved