Package org.cyclos.model.utils
Class CurrencyAmountDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.utils.CurrencyAmountDTO
-
- All Implemented Interfaces:
Serializable,ICurrencyAmount,HasAmount
public class CurrencyAmountDTO extends Bean implements ICurrencyAmount
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<BigDecimal,CurrencyAmountDTO>AMOUNTstatic StringCLASS_NAMEstatic BasicProperty<CurrencyVO,CurrencyAmountDTO>CURRENCY
-
Constructor Summary
Constructors Constructor Description CurrencyAmountDTO()CurrencyAmountDTO(Property<T,? super CurrencyAmountDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()booleanequals(Object other)BigDecimalgetAmount()CurrencyVOgetCurrency()inthashCode()voidsetAmount(BigDecimal amount)voidsetCurrency(CurrencyVO currency)StringtoString()-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, changes, clearAttributes, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, set, set, setAttribute, setWithPropagationId
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
AMOUNT
public static final BasicProperty<BigDecimal,CurrencyAmountDTO> AMOUNT
-
CURRENCY
public static final BasicProperty<CurrencyVO,CurrencyAmountDTO> CURRENCY
-
-
Constructor Detail
-
CurrencyAmountDTO
public CurrencyAmountDTO()
-
CurrencyAmountDTO
public CurrencyAmountDTO(Property<T,? super CurrencyAmountDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBean
-
getAmount
public BigDecimal getAmount()
-
setAmount
public void setAmount(BigDecimal amount)
-
getCurrency
public CurrencyVO getCurrency()
- Specified by:
getCurrencyin interfaceICurrencyAmount
-
setCurrency
public void setCurrency(CurrencyVO currency)
-
-