Interface VParent

All Superinterfaces:
VElement
All Known Subinterfaces:
PropAlarmTrigger<T>, PropAltText<T>, PropAttachment<T>, PropAttendee<U>, PropCalendarUser<T>, PropDateTime<T>, PropFreeBusy<T>, PropLanguage<T>, PropRecurrenceID<T>, PropRelationship<T>, VAttendee<T>, VComponent, VDateTimeEnd<T>, VDescribable<T>, VDescribable2<T>, VDuration<T>, VLastModified<T>, VProperty<T>, VRepeatable<T>
All Known Implementing Classes:
Action, Attachment, Attendee, CalendarScale, Categories, Classification, Comment, Contact, DateTimeCompleted, DateTimeCreated, DateTimeDue, DateTimeEnd, DateTimeStamp, DateTimeStart, DaylightSavingTime, Description, DurationProp, ExceptionDates, FreeBusyTime, GeographicPosition, LastModified, Location, Method, NonStandardComponent, NonStandardProperty, Organizer, PercentComplete, Priority, ProductIdentifier, PropBaseAltText, PropBaseDateTime, PropBaseLanguage, PropBaseUTC, PropertyBaseAttendee, PropertyBaseCalendarUser, PropertyBaseRecurrence, PropertyBaseZoneOffset, RecurrenceDates, RecurrenceId, RecurrenceRule, RecurrenceRuleValue, RelatedTo, RepeatCount, RequestStatus, Resources, Sequence, StandardOrDaylight, StandardTime, Status, Summary, TimeTransparency, TimeZoneIdentifier, TimeZoneName, TimeZoneOffsetFrom, TimeZoneOffsetTo, TimeZoneURL, Trigger, UniformResourceLocator, UniqueIdentifier, UnknownProperty, VAlarm, VCalendar, VCommon, VComponentBase, VDescribableBase, VDisplayable, Version, VEvent, VFreeBusy, VJournal, VLocatable, VParentBase, VPersonal, VPrimary, VPropertyBase, VRepeatableBase, VTimeZone, VTodo

public interface VParent extends VElement

Parent calendar components (e.g. VCALENDAR, VEVENT, SUMMARY, RRULE value). Parent components can have children.

Note: Implementation of adding children for different parent types is not exposed, but rather handled internally when a calendar element is set or changed.

  • Method Details

    • childrenUnmodifiable

      List<VChild> childrenUnmodifiable()

      Returns unmodifiable list of VChild elements.

      Returns:
      unmodifiable list of children
    • addChild

      @Deprecated void addChild(String childContent)
      Deprecated.
      Add child element to parent by parsing content text
      Parameters:
      child - element to add to ordered list
    • addChild

      void addChild(VChild child)
      Add child element to parent.
      Parameters:
      child - element to add to ordered list
    • addChild

      void addChild(int index, VChild child)
      Parameters:
      index - index where child element is to be put
      child - element to add to ordered list
    • removeChild

      boolean removeChild(VChild child)
      Remove child from parent.
      Parameters:
      child - element to add to ordered list
      Returns:
      true is success, false if failure
    • replaceChild

      boolean replaceChild(int index, VChild child)
      Parameters:
      index - index of old child element to be removed
      child - new child element to put at index
      Returns:
    • replaceChild

      boolean replaceChild(VChild oldChild, VChild newChild)
      Parameters:
      oldChild - old child element to be removed
      newChild - new child element to put at index where oldChild was
      Returns:
    • removeChild

      boolean removeChild(int index)
      Parameters:
      index - index of child element to be removed
      Returns:
      true is success, false if failure
    • orderChild

      void orderChild(VChild child)
      Add the child to the end of the ordered list Should only be used for list-based children that are added by accessing the list. A better alternative would be to use the addChild(java.lang.String) method which automatically adds a child and orders it.
    • orderChild

      void orderChild(int index, VChild child)
      Insert the child at the index in the ordered list
    • orderChild

      void orderChild(VChild oldChild, VChild newChild)
      Replace the oldChild with the newChild in the ordered list