/** * Constructs a new VALARM instance that will trigger at the specified time. * @param trigger the time the alarm will trigger */ public VAlarm(final DateTime trigger) { this(); getProperties().add(new Trigger(trigger)); }
/** * Constructs a new VTODO instance starting and ending at the specified times with the specified summary. * @param start the start date of the new todo * @param due the due date of the new todo * @param summary the todo summary */ public VToDo(final Date start, final Date due, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Due(due)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VALARM instance that will trigger at the specified time relative to the event/todo component. * @param trigger a duration of time relative to the parent component that the alarm will trigger at */ public VAlarm(final TemporalAmount trigger) { this(); getProperties().add(new Trigger(trigger)); }
public VFreeBusy(boolean initialise) { super(VFREEBUSY); if (initialise) { getProperties().add(new DtStamp()); } }
public VJournal(boolean initialise) { super(VJOURNAL); if (initialise) { getProperties().add(new DtStamp()); } }
/** * Constructs a new VJOURNAL instance associated with the specified time with the specified summary. * @param start the date the journal entry is associated with * @param summary the journal summary */ public VJournal(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
public VToDo(boolean initialise) { super(VTODO); if (initialise) { getProperties().add(new DtStamp()); } }
/** * Constructs a new VTODO instance starting at the specified time with the specified summary. * @param start the start date of the new todo * @param summary the todo summary */ public VToDo(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VEVENT instance starting and ending at the specified times with the specified summary. * @param start the start date of the new event * @param end the end date of the new event * @param summary the event summary */ public VEvent(final Date start, final Date end, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new DtEnd(end)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VTODO instance starting at the specified time with the specified summary. * @param start the start date of the new todo * @param summary the todo summary */ public VToDo(final Date start, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VTODO instance starting and ending at the specified times with the specified summary. * @param start the start date of the new todo * @param due the due date of the new todo * @param summary the todo summary */ public VToDo(final Date start, final Date due, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new Due(due)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VPOLL instance starting and ending at the specified times with the specified summary. * @param start the start date of the new poll * @param end the end date of the new poll * @param summary the summary */ public VPoll(final Date start, final Date end, final String summary) { this(); getProperties().add(new DtStart(start)); getProperties().add(new DtEnd(end)); getProperties().add(new Summary(summary)); }
/** * Constructs a new VALARM instance that will trigger at the specified time relative to the event/todo component. * @param trigger a duration of time relative to the parent component that the alarm will trigger at */ public VAlarm(final Dur trigger) { this(); getProperties().add(new Trigger(trigger)); }
@Override public Calendar transform(Calendar object) { PropertyList<Property> calProps = object.getProperties(); Property oldMethod = calProps.getProperty(Property.METHOD); if (oldMethod != null) { calProps.remove(oldMethod); } calProps.add(this.newMethod); return object; } }
public VAvailability(boolean initialise) { super(VAVAILABILITY); this.available = new ComponentList<Available>(); if (initialise) { getProperties().add(new DtStamp()); } }
public VEvent(boolean initialise) { super(VEVENT); this.alarms = new ComponentList<VAlarm>(); if (initialise) { getProperties().add(new DtStamp()); } }
public VAvailability(boolean initialise) { super(VAVAILABILITY); this.available = new ComponentList<Available>(); if (initialise) { getProperties().add(new DtStamp()); } }
@Override public Component transform(Component object) { Uid uid = object.getProperties().getProperty(Property.UID); if (uid == null) { object.getProperties().add(uidGenerator.generateUid()); } return object; } }
@Override public void applyTo(VAlarm element) { Action action = element.getAction(); if (action == null || !"DISPLAY".equals(action.getValue()) || element.getDescription() != null && element.getDescription().getValue() != null) { return; } Description description = new Description("display"); element.getProperties().add(description); }
@Override public void applyTo(VAlarm element) { Action action = element.getAction(); if (action == null || !"DISPLAY".equals(action.getValue()) || element.getDescription() != null && element.getDescription().getValue() != null) { return; } Description description = new Description("display"); element.getProperties().add(description); }