Package net.fortuna.ical4j.model
Interface PropertyListAccessor
-
- All Known Subinterfaces:
PropertyContainer
,RecurrenceSupport<T>
- All Known Implementing Classes:
Available
,Calendar
,CalendarComponent
,Component
,Daylight
,Observance
,Participant
,PropertyGroup
,Standard
,VAlarm
,VAvailability
,VEvent
,VFreeBusy
,VJournal
,VLocation
,VResource
,VTimeZone
,VToDo
,VVenue
,XComponent
public interface PropertyListAccessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T extends Property>
List<T>getProperties(String... name)
default <T extends Property>
Optional<T>getProperty(String name)
PropertyList
getPropertyList()
default <T extends Property>
TgetRequiredProperty(String name)
Convenience method for retrieving a required named property.
-
-
-
Method Detail
-
getPropertyList
PropertyList getPropertyList()
-
getRequiredProperty
default <T extends Property> T getRequiredProperty(String name) throws ConstraintViolationException
Convenience method for retrieving a required named property.- Parameters:
name
- name of the property to retrieve- Returns:
- the first matching property in the property list with the specified name
- Throws:
ConstraintViolationException
- when a property is not found
-
-