class DecimalValueFactory extends AbstractValueFactory<BigDecimal> {

    @Override
    public BigDecimal create( String value ) {
        if (value == null) return null;
        try {
            return new BigDecimal(value.trim());
        } catch (NumberFormatException err) {
            throw new ValueFormatException(value, getPropertyType(),
                                           GraphI18n.errorConvertingType.text(String.class.getSimpleName(),
                                                                              BigDecimal.class.getSimpleName(),
                                                                              value), err);
        }
    }

    public  DecimalValueFactory( TextDecoder decoder,
                                ValueFactories factories );

}