Class FreeEasterRelativeDay
- java.lang.Object
-
- ch.ivyteam.ivy.application.calendar.FreeEasterRelativeDay
-
- All Implemented Interfaces:
ch.ivyteam.ivy.application.calendar.CalendarListEntry
,Comparable<ch.ivyteam.ivy.application.calendar.CalendarListEntry>
public final class FreeEasterRelativeDay extends Object implements ch.ivyteam.ivy.application.calendar.CalendarListEntry
Free day relative to Easter Day.
A
IBusinessCalendarConfiguration
can contain multipleFreeEasterRelativeDay
s to define free days recurring every year relative to Easter Day.The days since easter are in a range from -82 to +250 where 0 is the easter day. Negative numbers define a day before Easter Day. Positive numbers define a day after Easter Day.
The range is limited as it is not allowed to define a relative day which is earlier than the beginning of the year or later than the end of the year.
The last possible date for Easter Day is the 25. of April. Which leaves the maximum of 250 days to the end of the year.
The earliest possible date for Easter Day is the 22. March. Which leaves the maximum of -82 days to the beginning of the year.- API:
- This is a public API.
-
-
Constructor Summary
Constructors Constructor Description FreeEasterRelativeDay(int daysSinceEaster)
FreeEasterRelativeDay(int daysSinceEaster, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDaysSinceEaster()
Returns the days since Easter Day.String
getDescription()
Returns the descriptionvoid
setDaysSinceEaster(int daysSinceEaster)
Sets the days since Easter Dayvoid
setDescription(String description)
Sets the description to the given parameter
-
-
-
Constructor Detail
-
FreeEasterRelativeDay
public FreeEasterRelativeDay(int daysSinceEaster)
- Parameters:
daysSinceEaster
- the days since Easter Day- Throws:
IllegalArgumentException
- ifdaysSinceEaster
is not in range- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
FreeEasterRelativeDay
public FreeEasterRelativeDay(int daysSinceEaster, String description)
- Parameters:
daysSinceEaster
- the days since Easter Daydescription
- the description- Throws:
IllegalArgumentException
- ifdaysSinceEaster
is not in range ordescription
is null- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
-
Method Detail
-
getDescription
public String getDescription()
Returns the description- Returns:
- the description
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
setDescription
public void setDescription(String description)
Sets the description to the given parameter- Parameters:
description
- the description to set- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
getDaysSinceEaster
public int getDaysSinceEaster()
Returns the days since Easter Day.
- Returns:
- the days since Easter Day
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
setDaysSinceEaster
public void setDaysSinceEaster(int daysSinceEaster)
Sets the days since Easter Day- Parameters:
daysSinceEaster
- the days since Easter Day to set- Throws:
IllegalArgumentException
- ifdaysSinceEaster
is out of range- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
-