public class MoneyConverterFactory extends Object implements IConverterFactory
| Constructor and Description |
|---|
MoneyConverterFactory() |
| Modifier and Type | Method and Description |
|---|---|
int |
accept(Class<?> clz,
PropertyMetaModel<?> pmm)
This must decide whether to accept the class and property model pair.
|
static IConverter<BigDecimal> |
createBigDecimalMoneyConverters(NumericPresentation np)
Returns one of the converter classes for converting a double into one of the numericPresentations.
|
<X,T extends IConverter<X>> |
createConverter(Class<X> clz,
PropertyMetaModel<X> pmm)
Create the appropriate converter.
|
static IConverter<Double> |
createDoubleMoneyConverters(NumericPresentation np)
Returns one of the converter classes for converting a double into one of the numericPresentations.
|
public int accept(Class<?> clz, PropertyMetaModel<?> pmm)
IConverterFactoryaccept in interface IConverterFactorypublic static IConverter<Double> createDoubleMoneyConverters(NumericPresentation np)
pmm - public static IConverter<BigDecimal> createBigDecimalMoneyConverters(NumericPresentation np)
pmm - public <X,T extends IConverter<X>> T createConverter(Class<X> clz, PropertyMetaModel<X> pmm)
createConverter in interface IConverterFactoryIConverterFactory.createConverter(java.lang.Class, to.etc.domui.component.meta.PropertyMetaModel)Copyright © 2017 etc.to. All rights reserved.