/** * set the period facet for this recurringDuration * * @param period the period to set * @throws UnsupportedOperationException this exception is thrown when changing the value of the * period facet is not allowed */ public void setPeriod(String period) throws UnsupportedOperationException { try { setPeriodInternal(TimeDuration.parseTimeDuration(period)); } catch (ParseException e) { String err = "RecurringDuration, setPeriod: " + e; throw new IllegalArgumentException(err); } }
/** * set the period facet for this recurringDuration * * @param period the period to set * @throws OperationNotSupportedException this exception is thrown when changing the value of the * period facet is not allowed */ public void setPeriod(TimeDuration period) throws UnsupportedOperationException { setPeriodInternal(period); }