Top Description Fields Methods
net.fortuna.ical4j.model

public Interface CalendarPropertyAccessor

extends PropertyContainer
Known Direct Implementers
net.fortuna.ical4j.model.Calendar
Imports
net.fortuna.ical4j.model.property.CalScale, .Method, .ProdId, .Version

Convenience accessor methods for calendar properties. Note the default behaviour for these methods is to throw an exception where an underlying property is not present.

Field Summary

Inherited from net.fortuna.ical4j.model.PropertyContainer:
ADD_IF_NOT_PRESENT

Method Summary

Modifier and TypeMethod and Description
public default CalScale

Returns:

the CALSCALE property, or null if property doesn't exist
getCalendarScale
()

Returns the optional calscale property.

public default Method

Returns:

the METHOD property, or null if property doesn't exist
getMethod
()

Returns the optional method property.

public default ProdId

Returns:

the PRODID property, or null if property doesn't exist
getProductId
()

Returns the mandatory prodid property.

public default Version

Returns:

the VERSION property, or null if property doesn't exist
getVersion
()

Returns the mandatory version property.

Inherited from net.fortuna.ical4j.model.PropertyContainer:
addaddAllremoveremoveAllremoveIfreplacesetPropertyListwith

Method Detail

getCalendarScaleback to summary
public default CalScale getCalendarScale()

Returns the optional calscale property.

Returns:CalScale

the CALSCALE property, or null if property doesn't exist

Exceptions
ConstraintViolationException:
if the property is not present
getMethodback to summary
public default Method getMethod()

Returns the optional method property.

Returns:Method

the METHOD property, or null if property doesn't exist

Exceptions
ConstraintViolationException:
if the property is not present
getProductIdback to summary
public default ProdId getProductId()

Returns the mandatory prodid property.

Returns:ProdId

the PRODID property, or null if property doesn't exist

Exceptions
ConstraintViolationException:
if the property is not present
getVersionback to summary
public default Version getVersion()

Returns the mandatory version property.

Returns:Version

the VERSION property, or null if property doesn't exist

Exceptions
ConstraintViolationException:
if the property is not present