public class Event extends Object
Constructor and Description |
---|
Event(EventPublisher publisher,
String eventType,
Target target) |
Event(EventPublisher publisher,
String eventType,
Target target,
Map<String,String> parameters)
Constructs an
Event with the given data. |
Modifier and Type | Method and Description |
---|---|
String |
getEventType() |
Map<String,String> |
getParameters()
Gets the parameters of the event.
|
EventPublisher |
getPublisher() |
Target |
getTarget() |
void |
setEventType(String eventType) |
void |
setParameters(Map<String,String> parameters)
Sets the parameters of the event.
|
void |
setPublisher(EventPublisher publisher) |
void |
setTarget(Target target) |
public Event(EventPublisher publisher, String eventType, Target target)
public Event(EventPublisher publisher, String eventType, Target target, Map<String,String> parameters)
Event
with the given data.publisher
- the publisher of the events.eventType
- the type of event.target
- the target, might be null
.parameters
- the parameters of the event.NullPointerException
- (since 2.8.0) if the given parameters are null
.public EventPublisher getPublisher()
public String getEventType()
public Target getTarget()
public Map<String,String> getParameters()
null
(since 2.8.0).public void setPublisher(EventPublisher publisher)
public void setEventType(String eventType)
public void setTarget(Target target)
public void setParameters(Map<String,String> parameters)
parameters
- the parameters for the event.NullPointerException
- (since 2.8.0) if the given parameters are null
.