/** * @param aList a list of parameters for this component * @param pList a list of periods */ public FreeBusy(final ParameterList aList, final PeriodList pList) { super(FREEBUSY, aList, new Factory()); if (!pList.isUtc()) { throw new IllegalArgumentException("Periods must be in UTC format"); } periods = pList; }
/** * @param aList a list of parameters for this component * @param pList a list of periods */ public FreeBusy(final ParameterList aList, final PeriodList pList) { super(FREEBUSY, aList, PropertyFactoryImpl.getInstance()); if (!pList.isUtc()) { throw new IllegalArgumentException("Periods must be in UTC format"); } periods = pList; }
/** * @param aList a list of parameters for this component * @param pList a list of periods */ public FreeBusy(final ParameterList aList, final PeriodList pList) { super(FREEBUSY, aList, new Factory()); if (!pList.isUtc()) { throw new IllegalArgumentException("Periods must be in UTC format"); } periods = pList; }
/** * @param pList a list of periods */ public FreeBusy(final PeriodList pList) { super(FREEBUSY, PropertyFactoryImpl.getInstance()); if (!pList.isUtc()) { throw new IllegalArgumentException("Periods must be in UTC format"); } periods = pList; }
/** * @param pList a list of periods */ public FreeBusy(final PeriodList pList) { super(FREEBUSY, new Factory()); if (!pList.isUtc()) { throw new IllegalArgumentException("Periods must be in UTC format"); } periods = pList; }
/** * @param aList a list of parameters for this component * @param pList a list of periods */ public FreeBusy(final ParameterList aList, final PeriodList pList) { super(FREEBUSY, aList, PropertyFactoryImpl.getInstance()); if (!pList.isUtc()) { throw new IllegalArgumentException("Periods must be in UTC format"); } periods = pList; }
/** * @param pList a list of periods */ public FreeBusy(final PeriodList pList) { super(FREEBUSY, PropertyFactoryImpl.getInstance()); if (!pList.isUtc()) { throw new IllegalArgumentException("Periods must be in UTC format"); } periods = pList; }
/** * @param pList a list of periods */ public FreeBusy(final PeriodList pList) { super(FREEBUSY, new Factory()); if (!pList.isUtc()) { throw new IllegalArgumentException("Periods must be in UTC format"); } periods = pList; }
/** * @param pList a list of periods */ public FreeBusy(final PeriodList pList) { super(FREEBUSY, PropertyFactoryImpl.getInstance()); if (!pList.isUtc()) { throw new IllegalArgumentException("Periods must be in UTC format"); } periods = pList; }
/** * @param aList a list of parameters for this component * @param pList a list of periods */ public FreeBusy(final ParameterList aList, final PeriodList pList) { super(FREEBUSY, aList, PropertyFactoryImpl.getInstance()); if (!pList.isUtc()) { throw new IllegalArgumentException("Periods must be in UTC format"); } periods = pList; }
/** * Add a period to the list. * * @param period * the period to add * @return true * @see java.util.List#add(java.lang.Object) */ public final boolean add(final Period period) { if (isUtc()) { period.setUtc(true); } else { period.setTimeZone(timezone); } return periods.add(period); }
/** * Add a period to the list. * * @param period * the period to add * @return true * @see java.util.List#add(java.lang.Object) */ public final boolean add(final Period period) { if (isUtc()) { period.setUtc(true); } else { period.setTimeZone(timezone); } return periods.add(period); }
/** * Add a period to the list. * * @param period * the period to add * @return true * @see java.util.List#add(java.lang.Object) */ public final boolean add(final Period period) { if (isUtc()) { period.setUtc(true); } else { period.setTimeZone(timezone); } return periods.add(period); }
/** * Add a period to the list. * * @param period * the period to add * @return true * @see java.util.List#add(java.lang.Object) */ public final boolean add(final Period period) { if (isUtc()) { period.setUtc(true); } else { period.setTimeZone(timezone); } return periods.add(period); }
/** * Add a period to the list. * * @param period * the period to add * @return true * @see java.util.List#add(java.lang.Object) */ public final boolean add(final Period period) { if (isUtc()) { period.setUtc(true); } else { period.setTimeZone(timezone); } return add((Object) period); }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { /* * ; the following is optional, ; but MUST NOT occur more than once (";" fbtypeparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.FBTYPE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ if (!periods.isUtc()) { throw new ValidationException("Periods must be in UTC format"); } }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { /* * ; the following is optional, ; but MUST NOT occur more than once (";" fbtypeparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.FBTYPE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ if (!periods.isUtc()) { throw new ValidationException("Periods must be in UTC format"); } }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { /* * ; the following is optional, ; but MUST NOT occur more than once (";" fbtypeparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.FBTYPE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ if (!periods.isUtc()) { throw new ValidationException("Periods must be in UTC format"); } }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { /* * ; the following is optional, ; but MUST NOT occur more than once (";" fbtypeparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.FBTYPE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ if (!periods.isUtc()) { throw new ValidationException("Periods must be in UTC format"); } }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { /* * ; the following is optional, ; but MUST NOT occur more than once (";" fbtypeparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.FBTYPE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ if (!periods.isUtc()) { throw new ValidationException("Periods must be in UTC format"); } }