Trovit/src/main/java/org/openestate/io/trovit/TrovitUtils.java
public static BigDecimal parsePriceValue(String value) {
        value = StringUtils.trimToNull(value);
        if (value == null) return null;
        try {
            return DatatypeConverter.parseDecimal(value);
        } catch (NumberFormatException ex) {
            throw new IllegalArgumentException("Can't parse price value '" + value + "'!", ex);
        }
    }
public static BigDecimal parsePriceValue(String value) {
        value = StringUtils.trimToNull(value);
        if (value == null) return null;
        try {
            return DatatypeConverter.parseDecimal(value);
        } catch (NumberFormatException ex) {
            throw new IllegalArgumentException("Can't parse price value '" + value + "'!", ex);
        }
    }
public static BigDecimal parsePriceValue ( String value ) { value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; try { return DatatypeConverter . parseDecimal ( value ) ; } catch ( NumberFormatException ex ) { throw new IllegalArgumentException ( "Can't parse price value '" + value + "'!" , ex ) ; } }
Read a {@link BigDecimal} value from XML for a price.

@param value XML string
@return parsed value or null, if the value is invalid
Read a { @link BigDecimal } value from XML for a price .