Package org.gcube.event.publisher
Class Event
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- org.json.simple.JSONObject
-
- org.gcube.event.publisher.Event
-
- All Implemented Interfaces:
Serializable,Cloneable,Map,org.json.simple.JSONAware,org.json.simple.JSONStreamAware
public class Event extends org.json.simple.JSONObject- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME_ENTRYstatic StringSENDER_ENTRYstatic StringTIMESTAMP_ENTRYstatic StringTYPE_ENTRYstatic StringUUID_ENTRY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()StringgetSender()OffsetDateTimegetTimestamp()StringgetType()UUIDgetUUID()protected voidset(String key, String value)protected voidsetAll(Map<String,String> entries)voidsetName(String name)voidsetSender(String sender)voidsetTimestamp(OffsetDateTime dateTime)voidsetType(String type)voidsetUUID(UUID uuid)-
Methods inherited from class org.json.simple.JSONObject
escape, toJSONString, toJSONString, toString, toString, writeJSONString, writeJSONString
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
UUID_ENTRY
public static final String UUID_ENTRY
- See Also:
- Constant Field Values
-
TIMESTAMP_ENTRY
public static final String TIMESTAMP_ENTRY
- See Also:
- Constant Field Values
-
NAME_ENTRY
public static final String NAME_ENTRY
- See Also:
- Constant Field Values
-
TYPE_ENTRY
public static final String TYPE_ENTRY
- See Also:
- Constant Field Values
-
SENDER_ENTRY
public static final String SENDER_ENTRY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUUID
public void setUUID(UUID uuid)
-
getUUID
public UUID getUUID()
-
setTimestamp
public void setTimestamp(OffsetDateTime dateTime)
-
getTimestamp
public OffsetDateTime getTimestamp()
-
setName
public void setName(String name)
-
getName
public String getName()
-
setType
public void setType(String type)
-
getType
public String getType()
-
setSender
public void setSender(String sender)
-
getSender
public String getSender()
-
-