public abstract class EntityActionEvent<E extends Entity,WB extends EntityModification.EntityModificationBuilder<E,?,?,WB>> extends EventObject
Base class for all entity events that are fired when an action on a entity has been executed or is about to be executed.
Modifier and Type | Class and Description |
---|---|
static class |
EntityActionEvent.Type
A type of entity action event.
|
Modifier and Type | Method and Description |
---|---|
long |
getCreationTimestamp()
The time when the event was triggered.
|
String |
getDescription()
The description of the event.
|
String |
getEventType()
The type of the event.
|
Object |
getSource()
The object that triggered this event.
|
boolean |
isCreationEvent()
Returns whether the event is a creation event, i.e. the event is of type
CREATED . |
boolean |
isDeletionEvent()
Returns whether the event is a deletion event, i.e. the event is of type
DELETED . |
String |
toString() |
public Object getSource()
The object that triggered this event.
getSource
in class EventObject
public String getEventType()
The type of the event.
public String getDescription()
The description of the event.
public long getCreationTimestamp()
The time when the event was triggered.
public boolean isCreationEvent()
Returns whether the event is a creation event, i.e. the event is of type CREATED
.
getEventType()
,
EntityActionEvent.Type.CREATED
public boolean isDeletionEvent()
Returns whether the event is a deletion event, i.e. the event is of type DELETED
.
getEventType()
,
EntityActionEvent.Type.DELETED
public String toString()
toString
in class EventObject
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.