Package com.walkfares.odsl.var
Class VarCalendar
java.lang.Object
com.walkfares.odsl.var.BaseVar
com.walkfares.odsl.var.VersionedVar
com.walkfares.odsl.var.VarCalendar
- All Implemented Interfaces:
Var
- Direct Known Subclasses:
VarCombinedCalendar
public class VarCalendar extends VersionedVar implements Var
-
Constructor Summary
Constructors Constructor Description VarCalendar()
-
Method Summary
Modifier and Type Method Description Var
_clone()
VarDate
addDays(VarDate date, int days)
void
addRule(String rule)
Var
applyChanges(Var update)
Calendar
getCalendar()
String
getCode()
VarList
getDates(VarDate start, VarDate end)
VarList
getDatesFrom(VarDate start, int number)
static VarCalendar
getFactoryCalendar(OpenDSLContext context, String id)
VarList
getHolidaysForYear(VarScalar year)
String
getId()
VarScalar
getName()
VarReference
getReference()
VarList
getRules()
String
getTimezone()
VarType
getType()
VarScalar
includes(VarDate date)
VarDate
next(VarDate date)
VarDate
previous(VarDate date)
Var
set_Id(String id)
VarCalendar
setCalendar(Calendar calendar)
VarCalendar
setName(String name)
void
setUseHolidays(boolean useHolidays)
String
toString()
Methods inherited from class com.walkfares.odsl.var.BaseVar
add, getLinks, getTypeName, getUID, setLinks, tryConvert
-
Constructor Details
-
VarCalendar
public VarCalendar()
-
-
Method Details
-
getType
-
getId
-
set_Id
-
getReference
- Specified by:
getReference
in interfaceVar
-
setName
-
getCalendar
-
setCalendar
-
getTimezone
-
getCode
-
getName
-
_clone
-
applyChanges
- Specified by:
applyChanges
in interfaceVar
- Overrides:
applyChanges
in classBaseVar
-
getDates
-
getDatesFrom
-
includes
-
next
-
previous
-
addDays
-
addRule
-
getHolidaysForYear
-
getRules
-
toString
-
getFactoryCalendar
-
setUseHolidays
public void setUseHolidays(boolean useHolidays)
-