/** * {@inheritDoc} */ public int hashCode() { return new HashCodeBuilder().append(getName()).append(getProperties()) .append(getAlarms()).toHashCode(); }
/** * {@inheritDoc} */ public int hashCode() { return new HashCodeBuilder().append(getName()).append(getProperties()) .append(getAlarms()).toHashCode(); }
public void validate(final VToDo target) throws ValidationException { PropertyValidator.getInstance().assertOneOrMore(ATTENDEE, target.getProperties()); Arrays.asList(DTSTAMP, ORGANIZER, UID).forEach( property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, DESCRIPTION, DTSTART, DUE, DURATION, GEO, LAST_MODIFIED, LOCATION, PERCENT_COMPLETE, PRIORITY, RESOURCES, RECURRENCE_ID, SEQUENCE, STATUS, SUMMARY, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); ComponentValidator.assertNone(VALARM, target.getAlarms()); } }
public VToDo(boolean initialise) { super(VTODO); if (initialise) { getProperties().add(new DtStamp()); } }
public void validate(final VToDo target) throws ValidationException { PropertyValidator.getInstance().assertOneOrMore(ATTENDEE, target.getProperties()); Arrays.asList(DTSTAMP, ORGANIZER, SEQUENCE, UID).forEach( property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, DESCRIPTION, DTSTART, DUE, DURATION, GEO, LAST_MODIFIED, LOCATION, LOCATION, PERCENT_COMPLETE, PRIORITY, RECURRENCE_ID, RESOURCES, STATUS, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); ComponentValidator.assertNone(VALARM, target.getAlarms()); } }
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, target.getProperties()); } });
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, target.getProperties()); } });
/** * 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 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)); }
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, target.getProperties()); } });
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, target.getProperties()); } });
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, getProperties()); } });
public void validate(final VToDo target) throws ValidationException { Arrays.asList(UID, DTSTAMP, ORGANIZER, SEQUENCE).forEach( property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, DESCRIPTION, DTSTART, DUE, DURATION, GEO, LAST_MODIFIED, LOCATION, PERCENT_COMPLETE, RECURRENCE_ID, RESOURCES, PRIORITY, STATUS, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); PropertyValidator.getInstance().assertNone(REQUEST_STATUS, target.getProperties()); ComponentValidator.assertNone(VALARM, target.getAlarms()); } }
public void validate(final VToDo target) throws ValidationException { PropertyValidator.getInstance().assertOneOrMore(ATTENDEE, target.getProperties()); Arrays.asList(DTSTAMP, ORGANIZER, UID).forEach( property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, DESCRIPTION, DTSTART, DUE, DURATION, GEO, LAST_MODIFIED, LOCATION, PERCENT_COMPLETE, PRIORITY, RESOURCES, RECURRENCE_ID, SEQUENCE, STATUS, SUMMARY, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); ComponentValidator.assertNone(VALARM, target.getAlarms()); } }
/** * 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)); }
public void validate(final VToDo target) throws ValidationException { PropertyValidator.getInstance().assertOneOrMore(ATTENDEE, target.getProperties()); Arrays.asList(DTSTAMP, ORGANIZER, SEQUENCE, UID).forEach( property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, DESCRIPTION, DTSTART, DUE, DURATION, GEO, LAST_MODIFIED, LOCATION, LOCATION, PERCENT_COMPLETE, PRIORITY, RECURRENCE_ID, RESOURCES, STATUS, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); ComponentValidator.assertNone(VALARM, target.getAlarms()); } }
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, getProperties()); } });
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, target.getProperties()); } });
/** * 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)); }