Class WorkingTime
- java.lang.Object
-
- ch.ivyteam.ivy.application.calendar.WorkingTime
-
- All Implemented Interfaces:
ch.ivyteam.ivy.application.calendar.CalendarListEntry,Comparable<ch.ivyteam.ivy.application.calendar.CalendarListEntry>
public final class WorkingTime extends Object implements ch.ivyteam.ivy.application.calendar.CalendarListEntry
Defines a time span during the day when work is done.
A
IBusinessCalendarConfigurationcan contain multipleWorkingTimes. For example 08:00-12:00 and 13:00-17:00WorkingTimes can overlap. For Example 08:00 - 11:00 and 10:00 - 12:00.WorkingTimes can embed otherWorkingTimes. For Example 08:00 - 11:00 and 9:00 - 10:00.- API:
- This is a public API.
-
-
Constructor Summary
Constructors Constructor Description WorkingTime(Time start, Time end)WorkingTime(Time start, Time end, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns the descriptionTimegetEnd()Returns the end of the working time.TimegetStart()Returns start of the working time.voidsetDescription(String description)Sets the description to the given parametervoidsetEnd(Time end)Sets the end of the working time.voidsetStart(Time start)Sets the start of the working time.
-
-
-
Constructor Detail
-
WorkingTime
public WorkingTime(Time start, Time end)
- Parameters:
start- the start of the working time. Never null.end- the end of the working time. Never null.- Throws:
IllegalArgumentException- ifstartorendis null.- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
WorkingTime
public WorkingTime(Time start, Time end, String description)
- Parameters:
start- the start of the working time. Never null.end- the end of the working time. Never null.description- the description- Throws:
IllegalArgumentException- ifstart,endordescriptionis 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.
-
getStart
public Time getStart()
Returns start of the working time.- Returns:
- the start. Never null.
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
setStart
public void setStart(Time start)
Sets the start of the working time.- Parameters:
start- the start to set. Never null.- Throws:
IllegalArgumentException- ifstartis null.- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
getEnd
public Time getEnd()
Returns the end of the working time.- Returns:
- the end. Never null.
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
setEnd
public void setEnd(Time end)
Sets the end of the working time.- Parameters:
end- the end to set. Never null.- Throws:
IllegalArgumentException- ifendis null- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
-