|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.commerce.ebusiness.price.quote.AbstractMoney
com.bea.commerce.ebusiness.price.quote.MutableMoney
@Deprecated public class MutableMoney
A money object that may have it's amount and currency modified.
Field Summary |
---|
Fields inherited from class com.bea.commerce.ebusiness.price.quote.AbstractMoney |
---|
NO_CURRENCY, ZERO |
Constructor Summary | |
---|---|
MutableMoney()
Deprecated See BEA Commerce product offering |
|
MutableMoney(double value,
String currency)
Deprecated See BEA Commerce product offering |
Method Summary | |
---|---|
MutableMoney |
add(double value)
Deprecated See BEA Commerce product offering |
MutableMoney |
add(Money value)
Deprecated See BEA Commerce product offering |
static MutableMoney |
copyFromAxiomMoney(Money from,
MutableMoney to)
Deprecated See BEA Commerce product offering |
static MutableMoney |
create(Money axiomMoney)
Deprecated See BEA Commerce product offering |
static MutableMoney |
create(Money money)
Deprecated See BEA Commerce product offering |
static MutableMoney |
create(Money money,
double value)
Deprecated See BEA Commerce product offering |
String |
getCurrency()
Deprecated See BEA Commerce product offering |
double |
getValue()
Deprecated See BEA Commerce product offering |
MutableMoney |
set(double value,
String currency)
Deprecated See BEA Commerce product offering |
MutableMoney |
set(Money money)
Deprecated See BEA Commerce product offering |
MutableMoney |
set(Money money,
double value)
Deprecated See BEA Commerce product offering |
void |
setCurrency(String currency)
Deprecated See BEA Commerce product offering |
void |
setValue(double value)
Deprecated See BEA Commerce product offering |
String |
toString()
Deprecated See BEA Commerce product offering |
Methods inherited from class com.bea.commerce.ebusiness.price.quote.AbstractMoney |
---|
compare, equals |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MutableMoney()
AbstractMoney
public MutableMoney(double value, String currency)
value
- the amount of moneycurrency
- the string value of the currencyMethod Detail |
---|
public static MutableMoney create(Money axiomMoney)
axiomMoney
- a money object
Money
public static MutableMoney create(Money money, double value)
money
- a money objectvalue
- the amount of the new money object
Money
public static MutableMoney create(Money money)
money
- a money object
Money
public static MutableMoney copyFromAxiomMoney(Money from, MutableMoney to)
from
- a com.beasys.commerce.axiom.units.Money object to
copy the values fromto
- a Money object to copy the from values to
NullPointerException
Money
public MutableMoney set(double value, String currency)
value
- the amount of moneycurrency
- the string value of the currencypublic MutableMoney set(Money money, double value)
value
- the amount of moneycurrency
- the string value of the currencypublic MutableMoney set(Money money)
money
- a money object
Money
public double getValue()
getValue
in interface Money
getValue
in class AbstractMoney
public String getCurrency()
getCurrency
in interface Money
getCurrency
in class AbstractMoney
public void setValue(double value)
value
- amount of moneypublic void setCurrency(String currency)
currency
- currency to be addedpublic MutableMoney add(double value)
value
- the amount of money to add to this object
public MutableMoney add(Money value) throws CurrencyMismatchException
value
- the amount of money to add to this object
CurrencyMismatchException
public String toString()
toString
in class AbstractMoney
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |