/** * {@inheritDoc} */ public final String toString() { final StringBuffer b = new StringBuffer(); b.append(BEGIN); b.append(':'); b.append(getName()); b.append(Strings.LINE_SEPARATOR); b.append(getProperties()); b.append(getAvailable()); b.append(END); b.append(':'); b.append(getName()); b.append(Strings.LINE_SEPARATOR); return b.toString(); }
@Override public void execute(String input) { PropertyValidator.getInstance().assertOne(input, getProperties()); } });
@Override public void execute(String input) { PropertyValidator.getInstance().assertOne(input, getProperties()); } });
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, getProperties()); } });
@Override public void execute(String input) { PropertyValidator.getInstance().assertOneOrLess(input, getProperties()); } });
public VAvailability(boolean initialise) { super(VAVAILABILITY); this.available = new ComponentList<Available>(); if (initialise) { getProperties().add(new DtStamp()); } }
public VAvailability(boolean initialise) { super(VAVAILABILITY); this.available = new ComponentList<Available>(); if (initialise) { getProperties().add(new DtStamp()); } }
public VAvailability(boolean initialise) { super(VAVAILABILITY); this.available = new ComponentList<Available>(); if (initialise) { getProperties().add(new DtStamp()); } }
/** * Default constructor. */ public VAvailability() { super(VAVAILABILITY); this.available = new ComponentList(); getProperties().add(new DtStamp()); }
public VAvailability(boolean initialise) { super(VAVAILABILITY); this.available = new ComponentList<Available>(); if (initialise) { getProperties().add(new DtStamp()); } }
/** * {@inheritDoc} */ public final String toString() { return BEGIN + ':' + getName() + Strings.LINE_SEPARATOR + getProperties() + getAvailable() + END + ':' + getName() + Strings.LINE_SEPARATOR; }
/** * {@inheritDoc} */ public final String toString() { return BEGIN + ':' + getName() + Strings.LINE_SEPARATOR + getProperties() + getAvailable() + END + ':' + getName() + Strings.LINE_SEPARATOR; }
/** * {@inheritDoc} */ public final String toString() { return BEGIN + ':' + getName() + Strings.LINE_SEPARATOR + getProperties() + getAvailable() + END + ':' + getName() + Strings.LINE_SEPARATOR; }
/** * {@inheritDoc} */ public final String toString() { String b = BEGIN + ':' + getName() + Strings.LINE_SEPARATOR + getProperties() + getAvailable() + END + ':' + getName() + Strings.LINE_SEPARATOR; return b; }
getProperties()); PropertyValidator.getInstance().assertOne(Property.DTSTAMP, getProperties()); PropertyValidator.getInstance().assertOne(Property.UID, getProperties()); getProperties()); getProperties()); PropertyValidator.getInstance().assertOneOrLess(Property.CREATED, getProperties()); PropertyValidator.getInstance().assertOneOrLess(Property.LAST_MODIFIED, getProperties()); PropertyValidator.getInstance().assertOneOrLess(Property.ORGANIZER, getProperties()); PropertyValidator.getInstance().assertOneOrLess(Property.SEQUENCE, getProperties()); PropertyValidator.getInstance().assertOneOrLess(Property.SUMMARY, getProperties()); PropertyValidator.getInstance().assertOneOrLess(Property.URL, getProperties());
Arrays.asList(Property.DTSTART, Property.DTSTAMP, Property.UID).forEach(parameter -> PropertyValidator.getInstance().assertOne(parameter, getProperties())); getProperties()); Property.ORGANIZER, Property.SEQUENCE, Property.SUMMARY, Property.URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, getProperties()));
Arrays.asList(Property.DTSTART, Property.DTSTAMP, Property.UID).forEach(parameter -> PropertyValidator.getInstance().assertOne(parameter, getProperties())); getProperties()); Property.ORGANIZER, Property.SEQUENCE, Property.SUMMARY, Property.URL).forEach(property -> PropertyValidator.getInstance().assertOneOrLess(property, getProperties()));
/** * @return * @throws SocketException */ public static TestSuite suite() throws SocketException { TestSuite suite = new TestSuite(); VAvailability a = new VAvailability(); suite.addTest(new VAvailabilityTest("testIsCalendarComponent", a)); suite.addTest(new VAvailabilityTest("testValidationException", a)); UidGenerator g = new RandomUidGenerator(); a = new VAvailability(); a.getProperties().add(g.generateUid()); a.getProperties().add(new DtStart(new DateTime())); suite.addTest(new VAvailabilityTest("testValidation", a)); return suite; }