Modifier and Type | Method and Description |
---|---|
EventContext |
getContext()
Gets the
EventContext of this event. |
java.lang.String |
getDestinationURI()
Gets the URI of the default destination of this event.
|
com.tibco.xml.data.primitive.ExpandedName |
getExpandedName()
Gets the
ExpandedName of this event. |
EventPayload |
getPayload()
Gets the payload of this event.
|
java.lang.String |
getPayloadAsString()
Gets the
String representation of the payload of this event. |
java.lang.Object |
getProperty(java.lang.String name)
Gets the value of a property by name.
|
java.lang.String[] |
getPropertyNames()
Gets all the property names in this event.
|
void |
setContext(EventContext ctx)
Sets the
EventContext of this event. |
void |
setPayload(EventPayload payload)
Sets the payload of this event.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the value of a property by name.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a property by name.
|
getTTL, hasExpiryAction, onExpiry
void setProperty(java.lang.String name, java.lang.Object value)
name
- name of the event property.value
- the Object
value to be set.
The type of value must be consistent with the type defined in the model.java.lang.NoSuchFieldException
- if there is no property in the event with the specified name.void setProperty(java.lang.String name, java.lang.String value)
name
- name of the event property.value
- the String
value to be set.
The type of value must be consistent with the type defined in the model.java.lang.NoSuchFieldException
- if there is no property in the event with the specified name.java.lang.Object getProperty(java.lang.String name)
name
- name of the event property.java.lang.NoSuchFieldException
- if there is no property in the event with the specified name.java.lang.String[] getPropertyNames()
EventPayload getPayload()
null
.java.lang.String getPayloadAsString()
String
representation of the payload of this event.String
representation of the payload of this event, if any, else null
.void setPayload(EventPayload payload)
payload
- the EventPayload
to set.EventContext getContext()
EventContext
of this event.EventContext
of this event.void setContext(EventContext ctx)
EventContext
of this event.ctx
- the EventContext
to set.java.lang.String getDestinationURI()
com.tibco.xml.data.primitive.ExpandedName getExpandedName()
ExpandedName
of this event.ExpandedName
of this event.