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
IBusinessCalendarConfiguration
can contain multipleWorkingTime
s. For example 08:00-12:00 and 13:00-17:00WorkingTime
s can overlap. For Example 08:00 - 11:00 and 10:00 - 12:00.WorkingTime
s can embed otherWorkingTime
s. 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 String
getDescription()
Returns the descriptionTime
getEnd()
Returns the end of the working time.Time
getStart()
Returns start of the working time.void
setDescription(String description)
Sets the description to the given parametervoid
setEnd(Time end)
Sets the end of the working time.void
setStart(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
- ifstart
orend
is 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
,end
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.
-
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
- ifstart
is 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
- ifend
is null- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
-