Example usage for javax.xml.bind DatatypeConverter parseDecimal

List of usage examples for javax.xml.bind DatatypeConverter parseDecimal

Introduction

In this page you can find the example usage for javax.xml.bind DatatypeConverter parseDecimal.

Prototype

public static java.math.BigDecimal parseDecimal(String lexicalXSDDecimal) 

Source Link

Document

Converts the string argument into a BigDecimal value.

Usage

From source file:org.openestate.io.is24_xml.Is24XmlUtils.java

public static BigDecimal parseZahl42(String value) {
    value = StringUtils.trimToNull(value);
    return (value != null) ? DatatypeConverter.parseDecimal(value) : null;
}

From source file:org.openestate.io.is24_xml.Is24XmlUtils.java

public static BigDecimal parseZahl52(String value) {
    value = StringUtils.trimToNull(value);
    return (value != null) ? DatatypeConverter.parseDecimal(value) : null;
}

From source file:org.openestate.io.is24_xml.Is24XmlUtils.java

public static BigDecimal parseZahl62(String value) {
    value = StringUtils.trimToNull(value);
    return (value != null) ? DatatypeConverter.parseDecimal(value) : null;
}

From source file:org.openestate.io.is24_xml.Is24XmlUtils.java

public static BigDecimal parseZahl72(String value) {
    value = StringUtils.trimToNull(value);
    return (value != null) ? DatatypeConverter.parseDecimal(value) : null;
}

From source file:org.openestate.io.is24_xml.Is24XmlUtils.java

public static BigDecimal parseZahl102(String value) {
    value = StringUtils.trimToNull(value);
    return (value != null) ? DatatypeConverter.parseDecimal(value) : null;
}

From source file:org.openestate.io.is24_xml.Is24XmlUtils.java

public static BigDecimal parseZahl152(String value) {
    value = StringUtils.trimToNull(value);
    return (value != null) ? DatatypeConverter.parseDecimal(value) : null;
}

From source file:org.openestate.io.is24_xml.Is24XmlUtils.java

public static BigDecimal parseZimmeranzahl(String value) {
    value = StringUtils.trimToNull(value);
    return (value != null) ? DatatypeConverter.parseDecimal(value) : null;
}

From source file:org.openestate.io.kyero.KyeroUtils.java

public static BigDecimal parseDecimal(String value) {
    value = StringUtils.trimToNull(value);
    return (value != null) ? DatatypeConverter.parseDecimal(value) : null;
}

From source file:org.openestate.io.trovit.TrovitUtils.java

public static BigDecimal parseFloat(String value) {
    value = StringUtils.trimToNull(value);
    return (value != null) ? DatatypeConverter.parseDecimal(value) : null;
}

From source file:org.openestate.is24.restapi.utils.XmlUtils.java

/**
 * Read a {@link BigDecimal} value from XML
 * with maximal 8 digits and 2 decimal places.
 *
 * @param value// w w w  . j av  a 2 s . co m
 * XML string
 *
 * @return
 * parsed value or null, if the value is invalid
 */
public static BigDecimal parseDecimal8_2(String value) {
    value = StringUtils.trimToNull(value);
    return (value != null) ? DatatypeConverter.parseDecimal(value) : null;
}