Trovit/src/main/java/org/openestate/io/trovit/TrovitUtils.java
public static AreaUnitValue parseAreaUnitValue(String value) {
        value = StringUtils.trimToNull(value);
        if (value == null) return null;

        final AreaUnitValue unit = AreaUnitValue.fromXmlValue(value);
        if (unit != null) return unit;

        throw new IllegalArgumentException("Can't parse foreclosure type value '" + value + "'!");
    }
public static AreaUnitValue parseAreaUnitValue(String value) {
        value = StringUtils.trimToNull(value);
        if (value == null) return null;

        final AreaUnitValue unit = AreaUnitValue.fromXmlValue(value);
        if (unit != null) return unit;

        throw new IllegalArgumentException("Can't parse foreclosure type value '" + value + "'!");
    }
public static AreaUnitValue parseAreaUnitValue ( String value ) { value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; final AreaUnitValue unit = AreaUnitValue . fromXmlValue ( value ) ; if ( unit != null ) return unit ; throw new IllegalArgumentException ( "Can't parse foreclosure type value '" + value + "'!" ) ; }
Read a {@link AreaUnitValue} value from XML.

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