/** * {@inheritDoc} */ public final void validate() throws ValidationException { super.validate(); /* * ; the following are optional, ; but MUST NOT occur more than once (";" "VALUE" "=" ("DATE-TIME" / "DATE)) / * (";" tzidparam) / (";" rangeparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.RANGE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ }
/** * Gets range. * * @param comp The component. * @return The result. */ private final boolean getRange(Component comp) { RecurrenceId rid = (RecurrenceId) comp.getProperties().getProperty( Property.RECURRENCE_ID); if (rid == null) { return false; } Parameter range = rid.getParameters().getParameter(Parameter.RANGE); return range != null && "THISANDFUTURE".equals(range.getValue()); }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { super.validate(); /* * ; the following are optional, ; but MUST NOT occur more than once (";" "VALUE" "=" ("DATE-TIME" / "DATE)) / * (";" tzidparam) / (";" rangeparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.RANGE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { super.validate(); /* * ; the following are optional, ; but MUST NOT occur more than once (";" "VALUE" "=" ("DATE-TIME" / "DATE)) / * (";" tzidparam) / (";" rangeparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.RANGE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ } }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { super.validate(); /* * ; the following are optional, ; but MUST NOT occur more than once (";" "VALUE" "=" ("DATE-TIME" / "DATE)) / * (";" tzidparam) / (";" rangeparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.RANGE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { super.validate(); /* * ; the following are optional, ; but MUST NOT occur more than once (";" "VALUE" "=" ("DATE-TIME" / "DATE)) / * (";" tzidparam) / (";" rangeparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.RANGE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ }
/** * Gets range. * * @param comp The component. * @return The result. */ private final boolean getRange(Component comp) { RecurrenceId rid = (RecurrenceId) comp.getProperties().getProperty( Property.RECURRENCE_ID); if (rid == null) { return false; } Parameter range = rid.getParameters().getParameter(Parameter.RANGE); return range != null && "THISANDFUTURE".equals(range.getValue()); }