public abstract class WikiEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR
Indicates a exception or error state.
|
static int |
UNDEFINED
Indicates an undefined state.
|
source| Constructor and Description |
|---|
WikiEvent(Object src,
int type)
Constructs an instance of this event.
|
| Modifier and Type | Method and Description |
|---|---|
String |
eventName()
Returns a textual representation of an event type.
|
<T> T |
getSrc()
Convenience method that returns the typed object to which the event applied.
|
int |
getType()
Returns the type of this event.
|
String |
getTypeDescription()
Returns a String (human-readable) description of an event type.
|
long |
getWhen()
Returns the timestamp of when this WikiEvent occurred.
|
static boolean |
isValidType(int type)
Returns true if the int value is a valid WikiEvent type.
|
protected void |
setType(int type)
Sets the type of this event.
|
String |
toString()
Prints a String (human-readable) representation of this object.
|
getSourcepublic static final int ERROR
public static final int UNDEFINED
public <T> T getSrc()
public long getWhen()
protected void setType(int type)
type - the type of this WikiEvent.public int getType()
WikiEvent).public String getTypeDescription()
public static boolean isValidType(int type)
ERROR or UNDEFINED. This method is meant to
be subclassed as appropriate.type - The value to test.public String eventName()
public String toString()
toString in class EventObjectObject.toString()Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.