/** * Returns the first property containing a parameter with the specified * value. * @param paramValue the value of the parameter identified in the returned * property * @return a property or null if no property is found containing a parameter * with the specified value */ public Property getProperty(final String paramValue) { final PropertyList<Property> properties = getProperties(paramValue); if (!properties.isEmpty()) { return properties.iterator().next(); } return null; } }
/** * Returns the first property containing a parameter with the specified * value. * @param paramValue the value of the parameter identified in the returned * property * @return a property or null if no property is found containing a parameter * with the specified value */ public Property getProperty(final String paramValue) { final PropertyList<Property> properties = getProperties(paramValue); if (!properties.isEmpty()) { return (Property) properties.iterator().next(); } return null; } }
/** * Returns the first property containing a parameter with the specified * value. * @param paramValue the value of the parameter identified in the returned * property * @return a property or null if no property is found containing a parameter * with the specified value */ public Property getProperty(final String paramValue) { final PropertyList<Property> properties = getProperties(paramValue); if (!properties.isEmpty()) { return properties.iterator().next(); } return null; } }
/** * Returns the first property containing a parameter with the specified * value. * @param paramValue the value of the parameter identified in the returned * property * @return a property or null if no property is found containing a parameter * with the specified value */ public Property getProperty(final String paramValue) { final PropertyList properties = getProperties(paramValue); if (!properties.isEmpty()) { return (Property) properties.iterator().next(); } return null; } }
/** * Returns the first property containing a parameter with the specified * value. * @param paramValue the value of the parameter identified in the returned * property * @return a property or null if no property is found containing a parameter * with the specified value */ public Property getProperty(final String paramValue) { final PropertyList properties = getProperties(paramValue); if (!properties.isEmpty()) { return properties.get(0); } return null; } }
/** Return an Iterator over required String attributes * * @param pl * @param name * @return Iterator over required String attributes * @throws Throwable */ public static Iterator<?> getReqStrs(final PropertyList pl, final String name) throws Throwable { PropertyList props = pl.getProperties(name); if ((props == null) || props.isEmpty()) { throw new IcalMalformedException("Missing required property " + name); } return props.iterator(); }
@Override public boolean fromVEvent(final TeamEventDO event, final VEvent vEvent) { final boolean isAllDay = this.isAllDay(vEvent); if (vEvent.getProperties().getProperties(Property.DTEND).isEmpty()) { return false; } if (isAllDay) { // TODO sn change behaviour to iCal standard final org.joda.time.DateTime jodaTime = new org.joda.time.DateTime(vEvent.getEndDate().getDate()); final net.fortuna.ical4j.model.Date fortunaEndDate = new net.fortuna.ical4j.model.Date(jodaTime.plusDays(-1).toDate()); event.setEndDate(new Timestamp(fortunaEndDate.getTime())); } else { event.setEndDate(ICal4JUtils.getSqlTimestamp(vEvent.getEndDate().getDate())); } return true; } }
final BaseComponentType pattern, final boolean wrapXprops) throws Throwable { if ((icprops == null) || icprops.isEmpty()) { return;
if (eventAttendees == null || eventAttendees.isEmpty()) { return false;
(dateAfter(end, rangeStart) || dateEquals(end, rangeStart)) && comp.getProperties(Property.RRULE).isEmpty()) { Instance instance = new Instance(comp, start, end); put(instance.getRid().toString(), instance);
(dateAfter(end, rangeStart) || dateEquals(end, rangeStart)) && comp.getProperties(Property.RRULE).isEmpty()) { Instance instance = new Instance(comp, start, end); put(instance.getRid().toString(), instance);