public abstract class SentenceDataEvent
extends java.lang.Object
MutableSentenceData
objects.
Only the source of the change and the bare nature of the change
itself are encoded in this class. It is up to every implementation
to adjust the amount of stored information to the Grammar
being used.Modifier and Type | Field and Description |
---|---|
static int |
CHANGE_EVENT
Signals that the entire sentence data has been changed
|
static int |
INSERT_EVENT
Signals that one or more objects and/or fields have been added
|
static int |
REMOVE_EVENT
Signals that one or more objects and/or fields have been removed
|
protected MutableSentenceData |
source
The source of the changes represented by this event
|
protected int |
type
The type of the change being made
|
static int |
UPDATE_EVENT
Signals that one or more objects and/or fields have been updated
|
Modifier | Constructor and Description |
---|---|
protected |
SentenceDataEvent(MutableSentenceData source)
Constructs a new event for the given
source |
Modifier and Type | Method and Description |
---|---|
MutableSentenceData |
getSource()
Returns the source of this event
|
int |
getType()
|
protected void |
setType(int type) |
public static final int CHANGE_EVENT
public static final int INSERT_EVENT
public static final int REMOVE_EVENT
public static final int UPDATE_EVENT
protected final MutableSentenceData source
protected int type
protected SentenceDataEvent(MutableSentenceData source)
source
source
- the MutableSentenceData
object the
changes originate fromprotected void setType(int type)
public MutableSentenceData getSource()