public final class JRebirthEventBase extends Object implements JRebirthEvent
| Modifier and Type | Field and Description |
|---|---|
private String |
eventData
The event data.
|
private JRebirthEventType |
eventType
The type of the event.
|
private int |
sequence
The sequence number.
|
private String |
source
The source class.
|
private String |
target
The target class.
|
| Constructor and Description |
|---|
JRebirthEventBase(int sequence,
JRebirthEventType eventType,
String source,
String target,
String... eventData)
Default Constructor with mandatory fields.
|
JRebirthEventBase(String eventSerialized)
Default Constructor used to parse a string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEventData() |
JRebirthEventType |
getEventType() |
int |
getSequence() |
String |
getSource() |
String |
getTarget() |
private void |
parseString(String eventSerialized)
Parse the serialized string.
|
void |
setEventData(String eventData) |
void |
setEventType(JRebirthEventType eventType) |
void |
setSequence(int sequence) |
void |
setSource(String source) |
void |
setTarget(String target) |
String |
toString() |
private int sequence
private JRebirthEventType eventType
private String source
private String target
private String eventData
public JRebirthEventBase(int sequence,
JRebirthEventType eventType,
String source,
String target,
String... eventData)
sequence - the sequence numbereventType - the type of the eventsource - the source class of the eventtarget - the target of the eventeventData - the data of the eventpublic JRebirthEventBase(String eventSerialized)
eventSerialized - the serialized eventpublic int getSequence()
getSequence in interface JRebirthEventpublic void setSequence(int sequence)
setSequence in interface JRebirthEventsequence - The sequence to set.public JRebirthEventType getEventType()
getEventType in interface JRebirthEventpublic void setEventType(JRebirthEventType eventType)
setEventType in interface JRebirthEventeventType - The eventType to set.public String getSource()
getSource in interface JRebirthEventpublic void setSource(String source)
setSource in interface JRebirthEventsource - The source class to set.public String getTarget()
getTarget in interface JRebirthEventpublic void setTarget(String target)
setTarget in interface JRebirthEventtarget - The data to set.public String getEventData()
getEventData in interface JRebirthEventpublic void setEventData(String eventData)
setEventData in interface JRebirthEventeventData - The data to set.private void parseString(String eventSerialized)
eventSerialized - the serialized stringCopyright © 2011–2014 JRebirth OSS. All rights reserved.