List of usage examples for javax.xml.bind DatatypeConverter parseInteger
public static java.math.BigInteger parseInteger(String lexicalXSDInteger)
Convert the string argument into a BigInteger value.
From source file:org.openestate.io.daft_ie.DaftIeUtils.java
public static BigInteger parsePositiveInteger(String value) { value = StringUtils.trimToNull(value); return (value != null) ? DatatypeConverter.parseInteger(value) : null; }
From source file:org.openestate.io.immobiliare_it.ImmobiliareItUtils.java
public static BigInteger parseInteger(String value) { value = StringUtils.trimToNull(value); return (value != null) ? DatatypeConverter.parseInteger(value) : null; }
From source file:org.openestate.io.immoxml.ImmoXmlUtils.java
public static BigInteger parseInteger(String value) { value = StringUtils.trimToNull(value); if (value == null) return null; try {/*from w w w . j a v a 2s .c om*/ return DatatypeConverter.parseInteger(value); } catch (NumberFormatException ex) { throw new IllegalArgumentException( "Can't parse integer value '" + value + "'! " + ex.getLocalizedMessage()); } }
From source file:org.openestate.io.is24_xml.Is24XmlUtils.java
public static BigInteger parseZahl20(String value) { value = StringUtils.trimToNull(value); return (value != null) ? DatatypeConverter.parseInteger(value) : null; }
From source file:org.openestate.io.kyero.KyeroUtils.java
public static BigInteger parseNonNegativeInteger(String value) { value = StringUtils.trimToNull(value); return (value != null) ? DatatypeConverter.parseInteger(value) : null; }
From source file:org.openestate.io.trovit.TrovitUtils.java
public static BigInteger parseInt(String value) { value = StringUtils.trimToNull(value); return (value != null) ? DatatypeConverter.parseInteger(value) : null; }
From source file:org.openestate.io.trovit.TrovitUtils.java
public static IntBool parseIntBool(String value) { value = StringUtils.trimToNull(value); if (value == null) return null; else if ("0".equalsIgnoreCase(value)) return new IntBool(BigInteger.ZERO); else if ("1".equalsIgnoreCase(value)) return new IntBool(BigInteger.ONE); try {/*ww w . jav a 2 s .c o m*/ Boolean boolValue = parseBool(value); if (boolValue != null) return new IntBool(boolValue); } catch (Exception ex) { } try { BigInteger intValue = DatatypeConverter.parseInteger(value); if (intValue != null) return new IntBool(intValue); } catch (Exception ex) { } throw new IllegalArgumentException("Can't parse int-bool value '" + value + "'!"); }
From source file:org.openestate.io.trovit.TrovitUtils.java
public static BigInteger parseLong(String value) { value = StringUtils.trimToNull(value); return (value != null) ? DatatypeConverter.parseInteger(value) : null; }