AI-generated Key Takeaways
-
DataEvent is a data interface for data events.
-
DataEvent defines two types of events: TYPE_CHANGED for added or changed data items and TYPE_DELETED for deleted data items.
-
The getDataItem method returns the data item modified in the event, with only the URI populated for TYPE_DELETED events.
-
The getType method returns the type of the DataEvent.
Data interface for data events.
Constant Summary
| int | TYPE_CHANGED | Indicates that the enclosing DataEvent
was triggered by a data item being added or changed. |
| int | TYPE_DELETED | Indicates that the enclosing DataEvent
was triggered by a data item being deleted. |
Public Method Summary
| abstract DataItem | |
| abstract int |
Inherited Method Summary
Constants
public static final int TYPE_CHANGED
Indicates that the enclosing DataEvent
was triggered by a data item being added or changed.
public static final int TYPE_DELETED
Indicates that the enclosing DataEvent
was triggered by a data item being deleted.
Public Methods
public abstract DataItem getDataItem ()
Returns the data item modified in this event. An event of TYPE_DELETED
will only have its URI
populated.
public abstract int getType ()
Returns the type of event this is. One of TYPE_CHANGED
, TYPE_DELETED
.

