public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Uid(parameters, value); }
public Property createProperty() { return new Uid(); } }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Uid(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Uid(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Uid(parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Uid(parameters, value); }
public Property createProperty() { return new Uid(); } }
public Property createProperty() { return new Uid(); } }
protected static Uid toUid(String javaObj) { if (javaObj == null) { return null; } return new Uid(uidPrefix.concat(javaObj)); }
@Override public Uid generateUid() { return new Uid(UUID.randomUUID().toString()); } }
@Override public Uid generateUid() { return new Uid(UUID.randomUUID().toString()); } }
@Override public Uid generateUid() { final StringBuilder b = new StringBuilder(); b.append(uniqueTimestamp()); b.append('-'); b.append(pid); if (hostName != null) { b.append('@'); b.append(hostName); } return new Uid(b.toString()); }
@Override public Uid generateUid() { final StringBuilder b = new StringBuilder(); b.append(uniqueTimestamp()); b.append('-'); b.append(pid); if (hostName != null) { b.append('@'); b.append(hostName); } return new Uid(b.toString()); }
/** * @return a unique component identifier */ public Uid generateUid() { final StringBuffer b = new StringBuffer(); b.append(uniqueTimestamp()); b.append('-'); b.append(pid); if (hostInfo != null) { b.append('@'); b.append(hostInfo.getHostName()); } return new Uid(b.toString()); }
@Override public Property toVEvent(final TeamEventDO event) { if (event.getUid() != null) { return new Uid(event.getUid()); } return null; }
@Override void mapToCard(net.fortuna.ical4j.model.Calendar cal, Object bean, PropertyDescriptor pd) { String uid = propertyAccessor.get(bean, pd.getReadMethod(), String.class); VEvent vevent = event(cal); vevent.getProperties().add(new net.fortuna.ical4j.model.property.Uid(uid)); } }
/** * Create a base Calendar containing a single component. * @param comp Component to add to the base Calendar * @param icalUid uid of component, if null no UID * property will be added to the component * @return base Calendar */ public static Calendar createBaseCalendar(CalendarComponent comp, String icalUid) { Uid uid = new Uid(icalUid); comp.getProperties().add(uid); return createBaseCalendar(comp); }
/** * Create a base Calendar containing a single component. * @param comp Component to add to the base Calendar * @param icalUid uid of component, if null no UID * property will be added to the component * @return base Calendar */ public static Calendar createBaseCalendar(CalendarComponent comp, String icalUid) { Uid uid = new Uid(icalUid); comp.getProperties().add(uid); return createBaseCalendar(comp); }
/** * @return */ public static TestSuite suite() { TestSuite suite = new TestSuite(); Uid uid = new Uid(""); suite.addTest(new UidTest(uid, "")); suite.addTest(new UidTest("testValidation", uid)); return suite; }
@Before public void setUp() { calendar = new Calendar(); calendar.getProperties().add(new ProdId("-//Ben Fortuna//iCal4j 1.0//EN")); calendar.getProperties().add(Version.VERSION_2_0); calendar.getProperties().add(CalScale.GREGORIAN); VEvent vEvent = new VEvent(); vEvent.getProperties().add(new Uid("1")); calendar.getComponents().add(vEvent); }