/** * Convenience method for retrieving a list of named properties. * * @param name name of properties to retrieve * @return a property list containing only properties with the specified name */ public final <C extends Property> PropertyList<C> getProperties(final String name) { return getProperties().getProperties(name); }
/** * Convenience method for retrieving a list of named properties. * @param name name of properties to retrieve * @return a property list containing only properties with the specified name */ public final PropertyList getProperties(final String name) { return getProperties().getProperties(name); }
/** * Convenience method for retrieving a list of named properties. * @param name name of properties to retrieve * @return a property list containing only properties with the specified name */ public final PropertyList<Property> getProperties(final String name) { return getProperties().getProperties(name); }
/** * Convenience method for retrieving a list of named properties. * * @param name name of properties to retrieve * @return a property list containing only properties with the specified name */ public final <C extends Property> PropertyList<C> getProperties(final String name) { return getProperties().getProperties(name); }
/** * Convenience method for retrieving a list of named properties. * @param name name of properties to retrieve * @return a property list containing only properties with the specified name */ public final PropertyList<Property> getProperties(final String name) { return getProperties().getProperties(name); }
/** * Convenience method for retrieving a list of named properties. * * @param name name of properties to retrieve * @return a property list containing only properties with the specified name */ public final PropertyList getProperties(final String name) { return getProperties().getProperties(name); }
/** * Convenience method for retrieving a list of named properties. * @param name name of properties to retrieve * @return a property list containing only properties with the specified name */ public final PropertyList getProperties(final String name) { return getProperties().getProperties(name); }
/** * Convenience method for retrieving a list of named properties. * @param name name of properties to retrieve * @return a property list containing only properties with the specified name */ public final PropertyList getProperties(final String name) { return getProperties().getProperties(name); }
/** * Convenience method for retrieving a list of named properties. * @param name name of properties to retrieve * @return a property list containing only properties with the specified name */ public final PropertyList<Property> getProperties(final String name) { return getProperties().getProperties(name); }
/** * Convenience method for retrieving a list of named properties. * * @param name name of properties to retrieve * @return a property list containing only properties with the specified name */ public final <C extends Property> PropertyList<C> getProperties(final String name) { return getProperties().getProperties(name); }
/** * @param c Component * @param propName Property to check in Component. * @return Returns true if Component contains the property */ public static boolean hasProperty(Component c, String propName){ PropertyList l = c.getProperties().getProperties(propName); return l != null && l.size() > 0; }
public List<Recur> getRecurrenceRules() { List<Recur> toReturn = new ArrayList<>(); VEvent event = getEvent(); if(event != null) { PropertyList<RRule> rruleProperties = event.getProperties().getProperties(Property.RRULE); for (RRule rrule : rruleProperties) { toReturn.add(rrule.getRecur()); } } return toReturn; }
public List<Recur> getExceptionRules() { List<Recur> toReturn = new ArrayList<Recur>(); PropertyList<ExRule> exRuleProperties = getEvent().getProperties().getProperties(Property.EXRULE); for (ExRule exrule : exRuleProperties) { toReturn.add(exrule.getRecur()); } return toReturn; }
public List<Recur> getRecurrenceRules() { List<Recur> toReturn = new ArrayList<>(); VEvent event = getEvent(); if(event != null) { PropertyList<RRule> rruleProperties = event.getProperties().getProperties(Property.RRULE); for (RRule rrule : rruleProperties) { toReturn.add(rrule.getRecur()); } } return toReturn; }
public void setExceptionRules(List<Recur> recurs) { if (recurs == null) { return; } PropertyList<Property> properties = getEvent().getProperties(); for (Property exrule : properties.getProperties(Property.EXRULE)) { properties.remove(exrule); } for (Recur recur : recurs) { properties.add(new ExRule(recur)); } }
public void setExceptionRules(List<Recur> recurs) { if (recurs == null) { return; } PropertyList<Property> properties = getEvent().getProperties(); for (Property exrule : properties.getProperties(Property.EXRULE)) { properties.remove(exrule); } for (Recur recur : recurs) { properties.add(new ExRule(recur)); } }
public void setRecurrenceRules(List<Recur> recurs) { if (recurs == null) { return; } PropertyList<Property> properties = getEvent().getProperties(); for (Property rrule : properties.getProperties(Property.RRULE)) { properties.remove(rrule); } for (Recur recur : recurs) { properties.add(new RRule(recur)); } }
public void setRecurrenceRules(List<Recur> recurs) { if (recurs == null) { return; } PropertyList<Property> properties = getEvent().getProperties(); for (Property rrule : properties.getProperties(Property.RRULE)) { properties.remove(rrule); } for (Recur recur : recurs) { properties.add(new RRule(recur)); } }
@Override public Component transform(Component object) { PropertyList<Attendee> attendees = object.getProperties().getProperties(Property.ATTENDEE); if (attendees.contains(attendee)) { attendees.remove(attendee); } attendees.add(attendee); object.getProperties().addAll(attendees); return object; } }
@Override public Component transform(Component object) { PropertyList<Attendee> attendees = object.getProperties().getProperties(Property.ATTENDEE); if (attendees.contains(attendee)) { attendees.remove(attendee); } attendees.add(attendee); object.getProperties().addAll(attendees); return object; } }