Package edu.fiu.jtlex.timeml.data
Interface ITimeMLEvent
- All Known Implementing Classes:
TimeMLEvent
public interface ITimeMLEvent
Represents the EVENT tag.
We consider "events" a cover term for situations that happen or occur. Events can be punctual (1-2) or last for a period of time (3-4). We also consider as events those predicates describing states or circumstances in which something obtains or holds true (5). Not all stative predicates will be marked up, however.
- Ferdinand Magellan, a Portuguese explorer, first reached the islands in search of spices.
- A fresh flow of lava, gas and debris erupted there Saturday.
- 11,024 people, including local Aeta aborigines, were evacuated to 18 disaster relief centers.
- We are expecting a major eruption, he said in a telephone interview early today.
- Israel has been scrambling to buy more masks abroad, after a shortage of several hundred thousand gas masks.
- Since:
- jTLEX 1.0
- Author:
- arada002
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAn enum that represents the seven different event classes an object may belong to. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a field-by-field copy of the event.booleanChecks if this event equals an object.Returns the event class to which the object belongs.getID()Returns the full string representation of the eventID.Returns the String IDs of the instances related to the Event.getStem()Returns the stem of the event.inthashCode()Generates a hash code for the event.voidsetInstance(String instanceID) Sets the related Instance for the event.toJson()Returns the JSON (RFC 8259) representation of the event.toString()Returns the String Representation of the Event.
-
Method Details
-
getID
String getID()Returns the full string representation of the eventID. Each event has to be identified by a unique ID number and String.- Returns:
- Full string representation of the eventID. May not return
null. - Since:
- jTLEX 1.0
-
getStem
String getStem()Returns the stem of the event.- Returns:
- the stem of the event. May return
nullif stem is not included in annotation - Since:
- jTLEX 1.0
-
getEventClass
ITimeMLEvent.EventClass getEventClass()Returns the event class to which the object belongs.- Returns:
- the event class to which the object belongs.
May not return
null. - Since:
- jTLEX 1.0
-
toString
String toString()Returns the String Representation of the Event. -
setInstance
Sets the related Instance for the event. May be null.- Parameters:
instanceID- the string ID of theITimeMLInstanceto connect to the event.- Since:
- jTLEX 1.0
-
getInstances
Returns the String IDs of the instances related to the Event. May be null- Returns:
- the String ID of the Instances related to the event.
- Since:
- jTLEX 1.0
-
toJson
String toJson()Returns the JSON (RFC 8259) representation of the event.- Returns:
- the JSON (RFC 8259) representation of the event.
- Since:
- jTLEX 1.0
-
clone
ITimeMLEvent clone()Returns a field-by-field copy of the event.- Returns:
- a field-by-field copy of the event.
- Since:
- jTLEX 1.0
-
hashCode
int hashCode()Generates a hash code for the event. -
equals
Checks if this event equals an object.- Overrides:
equalsin classObject- Parameters:
o- The object to compare against.- Returns:
- True if both events are equal, i.e. same ID and eventClass, or else false.
- Throws:
NullPointerException- If the object to compare against is false.- Since:
- jTLEX 1.0
-