Package com.walkfares.odsl.var.event
Class VarEvent
java.lang.Object
com.walkfares.odsl.var.BaseVar
com.walkfares.odsl.var.VersionedVar
com.walkfares.odsl.var.event.VarEvent
- All Implemented Interfaces:
BasicValidation
,CheckedDynamicVar
,DynamicVar
,Var
public class VarEvent extends VersionedVar implements Var, CheckedDynamicVar, BasicValidation
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Var
_clone()
void
createId()
VarDuration
getDuration()
String
getEvent()
UTCDate
getEventend()
String
getEventid()
String
getEventlist()
UTCDate
getEventstart()
UTCDate
getEventtime()
String
getEventtype()
String
getId()
DynamicProperties
getProperties()
Status
getStatus()
String
getTimezone()
VarType
getType()
void
performBasicValidation(String id)
Perform some basic validation on this entity.Var
set_Id(String id)
VarEvent
setEvent(String event)
VarEvent
setEventend(UTCDate eventend)
VarEvent
setEventid(String eventid)
VarEvent
setEventlist(String eventlist)
VarEvent
setEventstart(UTCDate eventstart)
VarEvent
setEventtype(String eventType)
VarEvent
setProperties(DynamicProperties properties)
VarEvent
setTimezone(String timezone)
String
toString()
VarEvent
withStatus(Status s)
Methods inherited from class com.walkfares.odsl.var.BaseVar
add, applyChanges, getLinks, getTypeName, getUID, setLinks, tryConvert
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.walkfares.odsl.var.Var
applyChanges, DATE, DATE_NULL, DYNAMIC, getReference, getTypeName, getUID, isEmpty, LIST, SCALAR, setId, tryConvert
-
Constructor Details
-
Method Details
-
getType
-
getId
-
set_Id
-
createId
public void createId() -
_clone
-
getProperties
- Specified by:
getProperties
in interfaceDynamicVar
-
getEventtime
-
getEventtype
-
setEventtype
-
getEventstart
-
setEventstart
-
getEventend
-
setEventend
-
getDuration
-
toString
-
setProperties
-
getEvent
-
setEvent
-
getEventid
-
setEventid
-
getEventlist
-
setEventlist
-
getStatus
- Specified by:
getStatus
in interfaceCheckedDynamicVar
-
withStatus
-
getTimezone
-
setTimezone
-
performBasicValidation
Description copied from interface:BasicValidation
Perform some basic validation on this entity. This is called before the entity is merged and updated. Any issues - throw an OpenDSLRuntimeException - ErrorCode: FAILED_BASIC_VALIDATION- Specified by:
performBasicValidation
in interfaceBasicValidation
- Parameters:
id
- - The object id this entity belongs to
-