Package net.fortuna.ical4j.model
Interface PropertyContainer
-
- All Superinterfaces:
PropertyListAccessor
- All Known Subinterfaces:
ChangeManagementPropertyAccessor
,DateTimePropertyAccessor
,DescriptivePropertyAccessor
,RecurrenceSupport<T>
,RelationshipPropertyAccessor
- All Known Implementing Classes:
Available
,Calendar
,CalendarComponent
,Component
,Daylight
,Observance
,Participant
,Standard
,VAlarm
,VAvailability
,VEvent
,VFreeBusy
,VJournal
,VLocation
,VResource
,VTimeZone
,VToDo
,VVenue
,XComponent
public interface PropertyContainer extends PropertyListAccessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PropertyContainer
add(Property property)
Add a property to the container.default PropertyContainer
addAll(Collection<Property> properties)
Add multiple properties to the container.default PropertyContainer
remove(Property property)
Remove a property from the container.default PropertyContainer
removeAll(String... name)
Remove all properties with the matching name.default PropertyContainer
replace(Property property)
Add a property to the container whilst removing all other properties with the same property name.void
setPropertyList(PropertyList properties)
-
Methods inherited from interface net.fortuna.ical4j.model.PropertyListAccessor
getProperties, getProperty, getPropertyList, getRequiredProperty
-
-
-
-
Method Detail
-
setPropertyList
void setPropertyList(PropertyList properties)
-
add
default PropertyContainer add(Property property)
Add a property to the container.- Parameters:
property
- the property to add- Returns:
- a reference to the container to support method chaining
-
addAll
default PropertyContainer addAll(Collection<Property> properties)
Add multiple properties to the container.- Parameters:
properties
- a collection of properties to add- Returns:
- a reference to the container to support method chaining
-
remove
default PropertyContainer remove(Property property)
Remove a property from the container.- Parameters:
property
- the property to remove- Returns:
- a reference to the container to support method chaining
-
removeAll
default PropertyContainer removeAll(String... name)
Remove all properties with the matching name.- Parameters:
name
- name of the properties to remove- Returns:
- a reference to the container to support method chaining
-
replace
default PropertyContainer replace(Property property)
Add a property to the container whilst removing all other properties with the same property name.- Parameters:
property
- the property to add- Returns:
- a reference to the container to support method chaining
-
-