public class CurrencyModifierMethod extends PrimitiveModifierMethod
| Modifier and Type | Class and Description |
|---|---|
static interface |
CurrencyModifierMethod.ExchangeService
The Interface ExchangeService.
|
| Constructor and Description |
|---|
CurrencyModifierMethod() |
| Modifier and Type | Method and Description |
|---|---|
Number |
changeCurrency(Object input,
String fromCurrency,
String toCurrency)
Modify.
|
boolean |
convertSuccess(String fromCurrency,
String toCurrency)
Convert success.
|
Object |
doModification(Object currentObject,
de.fraunhofer.iese.ind2uce.api.policy.parameter.ParameterList modifierMethodParameterList)
This method to be overridden when modifier wants to handle primitive type
like Integer(int), Float(float), Boolean(boolean), Long(long),
Short(short), Byte(byte) and Double(double) and String
|
CurrencyModifierMethod.ExchangeService |
exchangeService()
Exchange service.
|
String |
getDisplayName() |
doModification, nameIsValid@Bean public CurrencyModifierMethod.ExchangeService exchangeService()
public Object doModification(Object currentObject, de.fraunhofer.iese.ind2uce.api.policy.parameter.ParameterList modifierMethodParameterList)
ModifierMethoddoModification in interface ModifierMethoddoModification in class PrimitiveModifierMethodcurrentObject - The primitive value for modification.modifierMethodParameterList - List of parameters that should be used
for modificationpublic Number changeCurrency(Object input, String fromCurrency, String toCurrency)
input - the inputfromCurrency - the from currencytoCurrency - the to currencypublic boolean convertSuccess(String fromCurrency, String toCurrency)
public String getDisplayName()
Copyright © 2018. All rights reserved.