@Test public void testParseEmpty() throws ParsingException { expectParsingException(); assertFalse(type.isParsable("")); type.parse(""); }
@Override public BigDecimal parse(String sourceValue) throws ParsingException { if (sourceValue == null) { return null; } try { return new BigDecimal(sourceValue); } catch (Exception e) { throw new ParsingException("Unable to convert to a BigDecimal numeric value", sourceValue, e); } }
BigDecType extends BaseValueType<BigDecimal> { @Override public BigDecimal parse(String sourceValue) throws ParsingException { if (sourceValue == null) { return null; } try { return new BigDecimal(sourceValue); } catch (Exception e) { throw new ParsingException("Unable to convert to a BigDecimal numeric value", sourceValue, e); } } }
BigDecType extends BaseValueType<BigDecimal> { @Override public BigDecimal parse(String sourceValue) throws ParsingException { if (sourceValue == null) { return null; } try { return new BigDecimal(sourceValue); } catch (Exception e) { throw new ParsingException("Unable to convert to a BigDecimal numeric value", sourceValue, e); } } private  BigDecType(); }
BigDecType extends BaseValueType<BigDecimal> { @Override public BigDecimal parse(String sourceValue) throws ParsingException { if (sourceValue == null) { return null; } try { return new BigDecimal(sourceValue); } catch (Exception e) { throw new ParsingException("Unable to convert to a BigDecimal numeric value", sourceValue, e); } } private  BigDecType(); static BigDecType instance(); @Override BigDecimal parse(String sourceValue); @Override BigDecimal cast(Object o); }
BigDecType extends BaseValueType<BigDecimal> { @Override public BigDecimal parse(String sourceValue) throws ParsingException { if (sourceValue == null) { return null; } try { return new BigDecimal(sourceValue); } catch (Exception e) { throw new ParsingException("Unable to convert to a BigDecimal numeric value", sourceValue, e); } } private  BigDecType(); static BigDecType instance(); @Override BigDecimal parse(String sourceValue); @Override BigDecimal cast(Object o);  }