public class AttributeMapEvent extends BaseEvent
Note: this class has a natural ordering that is inconsistent with equals.
clonePolicy, DEFAULT_PRIORITY, id, name, time| Constructor and Description |
|---|
AttributeMapEvent(String name,
org.openksavi.sponge.event.EventClonePolicy clonePolicy)
Creates a new event that has no ID and time set (both are 0).
|
| Modifier and Type | Method and Description |
|---|---|
AttributeMapEvent |
clone()
Clones this event.
|
Object |
get(String name)
Returns attribute value.
|
Map<String,Object> |
getAll()
Returns attribute map.
|
boolean |
has(String name)
Checks whether this event has an attribute with the specified name.
|
org.openksavi.sponge.event.Event |
set(String name,
Object value)
Sets attribute value.
|
equalsByAttributes, equalsById, get, getId, getName, getPriority, getTime, setId, setTime, toString, valudateAttributepublic AttributeMapEvent(String name, org.openksavi.sponge.event.EventClonePolicy clonePolicy)
name - an event name.clonePolicy - an event clone policy.public Object get(String name)
name - attribute name.public org.openksavi.sponge.event.Event set(String name, Object value)
name - attribute name.value - attribute value.public boolean has(String name)
name - attribute name.true if there is such attribute.public AttributeMapEvent clone()
Copyright © 2016–2017 Softelnet. All rights reserved.