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

        final PricePeriodValue period = PricePeriodValue.fromXmlValue(value);
        if (period != null) return period;

        throw new IllegalArgumentException("Can't parse price period value '" + value + "'!");
    }
public static PricePeriodValue parsePricePeriodValue(String value) {
        value = StringUtils.trimToNull(value);
        if (value == null) return null;

        final PricePeriodValue period = PricePeriodValue.fromXmlValue(value);
        if (period != null) return period;

        throw new IllegalArgumentException("Can't parse price period value '" + value + "'!");
    }
public static PricePeriodValue parsePricePeriodValue ( String value ) { value = StringUtils . trimToNull ( value ) ; if ( value == null ) return null ; final PricePeriodValue period = PricePeriodValue . fromXmlValue ( value ) ; if ( period != null ) return period ; throw new IllegalArgumentException ( "Can't parse price period value '" + value + "'!" ) ; }
Read a {@link PricePeriodValue} value from XML.

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