Class DateInterval
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.util.pojo.DateInterval
-
- All Implemented Interfaces:
Serializable
public class DateInterval extends Object implements Serializable
This class helpsDatePickerto validate the content of date intervals expressed in json format and also to convert them from MessageML format to PresentationML format: basically, the json object for PresentationML has one more field: 'type', that can be calculated based on with fields are filled- Author:
- enrico.molino (18/11/2020)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DateInterval()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertIsValid()StringgetDay()Integer[]getDaysOfWeek()StringgetFrom()StringgetTo()StringgetType()voidsetDay(String day)voidsetDaysOfWeek(Integer[] daysOfWeek)voidsetFrom(String from)voidsetTo(String to)
-
-
-
Method Detail
-
getType
public String getType()
-
assertIsValid
public void assertIsValid() throws InvalidInputException- Throws:
InvalidInputException
-
getDay
public String getDay()
-
setDay
public void setDay(String day)
-
getFrom
public String getFrom()
-
setFrom
public void setFrom(String from)
-
getTo
public String getTo()
-
setTo
public void setTo(String to)
-
getDaysOfWeek
public Integer[] getDaysOfWeek()
-
setDaysOfWeek
public void setDaysOfWeek(Integer[] daysOfWeek)
-
-