public void validate(final VJournal target) throws ValidationException { Arrays.asList(DESCRIPTION, DTSTAMP, DTSTART, ORGANIZER, SEQUENCE, UID).forEach(property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, LAST_MODIFIED, STATUS, SUMMARY, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); Arrays.asList(ATTENDEE, RECURRENCE_ID).forEach( property -> PropertyValidator.getInstance().assertNone(property, target.getProperties())); } }
public void validate(final VJournal target) throws ValidationException { Arrays.asList(DESCRIPTION, DTSTAMP, DTSTART, ORGANIZER, SEQUENCE, UID).forEach(property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, LAST_MODIFIED, STATUS, SUMMARY, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); Arrays.asList(ATTENDEE, RECURRENCE_ID).forEach( property -> PropertyValidator.getInstance().assertNone(property, target.getProperties())); } }
public void validate(final VJournal target) throws ValidationException { Arrays.asList(DESCRIPTION, DTSTAMP, DTSTART, ORGANIZER, UID).forEach( property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, LAST_MODIFIED, RECURRENCE_ID, SEQUENCE, STATUS, SUMMARY, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); PropertyValidator.getInstance().assertNone(ATTENDEE, target.getProperties()); } }
public void validate(final VJournal target) throws ValidationException { Arrays.asList(DTSTAMP, ORGANIZER, SEQUENCE, UID).forEach( property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, DESCRIPTION, DTSTART, LAST_MODIFIED, RECURRENCE_ID, STATUS, SUMMARY, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); PropertyValidator.getInstance().assertNone(REQUEST_STATUS, target.getProperties()); } }
public void validate(final VJournal target) throws ValidationException { Arrays.asList(DESCRIPTION, DTSTAMP, DTSTART, ORGANIZER, UID).forEach( property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, LAST_MODIFIED, RECURRENCE_ID, SEQUENCE, STATUS, SUMMARY, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); PropertyValidator.getInstance().assertNone(ATTENDEE, target.getProperties()); } }
public void validate(final VJournal target) throws ValidationException { Arrays.asList(DTSTAMP, ORGANIZER, SEQUENCE, UID).forEach( property -> PropertyValidator.getInstance().assertOne(property, target.getProperties())); Arrays.asList(CATEGORIES, CLASS, CREATED, DESCRIPTION, DTSTART, LAST_MODIFIED, RECURRENCE_ID, STATUS, SUMMARY, URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, target.getProperties())); PropertyValidator.getInstance().assertNone(REQUEST_STATUS, target.getProperties()); } }
@Override public void execute(String input) { PropertyValidator.getInstance().assertOne(input, target.getProperties()); } });
/** * 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 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)); }
@Override public void execute(String input) { PropertyValidator.getInstance().assertOne(input, target.getProperties()); } });
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 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)); }
@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, target.getProperties()); } });
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, getProperties()); } });
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, target.getProperties()); } });