Class ReferenceCurrencyTranslator
- java.lang.Object
-
- com.quartetfs.fwk.types.impl.PluginValue
-
- com.quartetfs.biz.pivot.context.impl.SimpleContextValueTranslator<String,IReferenceCurrency>
-
- com.activeviam.risk.core.context.impl.ReferenceCurrencyTranslator
-
- All Implemented Interfaces:
com.quartetfs.biz.pivot.context.IContextValueTranslator<IReferenceCurrency>
,com.quartetfs.fwk.types.IPluginValue
,Serializable
@QuartetPluginValue(intf=com.quartetfs.biz.pivot.context.IContextValueTranslator.class) public class ReferenceCurrencyTranslator extends com.quartetfs.biz.pivot.context.impl.SimpleContextValueTranslator<String,IReferenceCurrency>
Context value translator for reference currencies. As a plugin value it is automatically registered with the other available context value translators.- Author:
- ActiveViam
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static HashSet<String>
currencies
static String
KEY
Translator key
-
Constructor Summary
Constructors Constructor Description ReferenceCurrencyTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IReferenceCurrency
createInstance(String content)
protected String
format(String content)
Map<String,String>
getAvailableProperties()
protected String
getContent(IReferenceCurrency instance)
Class<IReferenceCurrency>
getContextInterface()
String
key()
protected String
parse(String property)
-
Methods inherited from class com.quartetfs.biz.pivot.context.impl.SimpleContextValueTranslator
clear, decode, description, encode
-
Methods inherited from class com.quartetfs.fwk.types.impl.PluginValue
equals, getName, getPlugin, hashCode, setName, setPlugin, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
KEY
public static final String KEY
Translator key- See Also:
- Constant Field Values
-
-
Method Detail
-
getContextInterface
public Class<IReferenceCurrency> getContextInterface()
-
key
public String key()
-
createInstance
protected IReferenceCurrency createInstance(String content)
- Specified by:
createInstance
in classcom.quartetfs.biz.pivot.context.impl.SimpleContextValueTranslator<String,IReferenceCurrency>
-
format
protected String format(String content)
- Specified by:
format
in classcom.quartetfs.biz.pivot.context.impl.SimpleContextValueTranslator<String,IReferenceCurrency>
-
parse
protected String parse(String property) throws com.quartetfs.biz.pivot.context.ContextValueTranslationException
- Specified by:
parse
in classcom.quartetfs.biz.pivot.context.impl.SimpleContextValueTranslator<String,IReferenceCurrency>
- Throws:
com.quartetfs.biz.pivot.context.ContextValueTranslationException
-
getContent
protected String getContent(IReferenceCurrency instance)
- Specified by:
getContent
in classcom.quartetfs.biz.pivot.context.impl.SimpleContextValueTranslator<String,IReferenceCurrency>
-
-