public class UacaEvent extends AnyStructuredData
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
data |
protected java.net.URI |
eventTypeUri |
protected java.util.Date |
timestamp |
separator
Constructor and Description |
---|
UacaEvent() |
Modifier and Type | Method and Description |
---|---|
static java.net.URI |
eventTypeUri(java.lang.String path)
Creates UACA compatible event type URI for specified path.
|
java.lang.Object |
getData() |
java.net.URI |
getEventTypeUri() |
java.util.Date |
getTimestamp() |
static java.lang.Object |
normalizeData(java.lang.Object data)
Normalizes event data according to UACA restrictions.
|
static UacaEvent |
of(java.lang.String path,
java.lang.Object data) |
void |
setData(java.lang.Object data) |
void |
setEventTypeUri(java.net.URI eventTypeUri) |
void |
setTimestamp(java.util.Date timestamp) |
flatten, fromMap, fromString, get, get, get, get, merge, merge, merge, merge, of, put, put, put, structure
equals, fromMap, fromString, hashCode, toMap, toMap, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
any
@Nullable protected java.util.Date timestamp
@Nullable protected java.net.URI eventTypeUri
@Nullable protected java.lang.Object data
public static UacaEvent of(java.lang.String path, @Nullable java.lang.Object data)
public static java.net.URI eventTypeUri(java.lang.String path)
EVENT_TYPE_URI_PREFIX
.public static java.lang.Object normalizeData(@Nullable java.lang.Object data)
Content
must be fully structured since UACA does not permit dot characters in JSON field names.public void setTimestamp(@Nullable java.util.Date timestamp)
public void setEventTypeUri(@Nullable java.net.URI eventTypeUri)
public void setData(@Nullable java.lang.Object data)
public java.util.Date getTimestamp()
public java.net.URI getEventTypeUri()
public java.lang.Object getData()