public class EventBase extends ModelBase implements Event
Modifier and Type | Field and Description |
---|---|
protected EventType |
eventType |
dateFormat, properties
Constructor and Description |
---|
EventBase(org.json.simple.JSONObject json) |
Modifier and Type | Method and Description |
---|---|
static Event |
createEventFromString(String in)
This method creates an event from a json string.
|
void |
execute(Visitor visitor) |
Object |
getData() |
EventType |
getEventType() |
String |
getProperty(String property) |
Date |
getTime() |
void |
setProperty(String name,
String value) |
String |
toString() |
getId, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
protected EventType eventType
public static Event createEventFromString(String in) throws AppPlatformException
in
- AppPlatformException
public Date getTime()
public Object getData()
public String getProperty(String property)
getProperty
in interface Event
getProperty
in class ModelBase
public void setProperty(String name, String value)
setProperty
in interface Event
public EventType getEventType()
getEventType
in interface Event
Copyright © 2014. All Rights Reserved.