Package edu.fiu.jtlex.timeml.graph
Interface ITimeMLNode
- All Known Subinterfaces:
ITimeMLInstance,ITimeMLTimex
- All Known Implementing Classes:
TimeMLInstance,TimeMLTimex
public interface ITimeMLNode
Super interface for Instances and Timexs.
- Since:
- jTLEX 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceWrapper interface forITimeMLEvent.EventClassandITimeMLTimex.TimexType. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a field-by-field of the Node.booleanCompares the given object to another of the same type.getID()Returns the full string representation of the node ID.getType()Return the integer that corresponds with the type.toJson()Returns the JSON (RFC 8259) representation of the Node.
-
Method Details
-
getID
String getID()Returns the full string representation of the node ID. Each event has to be identified by a unique ID number and String.- Returns:
- Full string representation of the node ID. May not return
null. - Since:
- jTLEX 1.0
-
getType
ITimeMLNode.IType getType()Return the integer that corresponds with the type. Each event can be categorized under three different types.- Returns:
- Enum that corresponds with the type of node.
- Since:
- jTLEX 1.0
-
equals
Compares the given object to another of the same type.- Overrides:
equalsin classObject- Returns:
- True if equals, false otherwise.
- Throws:
NullPointerException- if object to compare against is false- Since:
- jTLEX 1.0
-
toJson
String toJson()Returns the JSON (RFC 8259) representation of the Node.- Returns:
- the JSON (RFC 8259) representation of the Node.
- Since:
- jTLEX 1.0
-
clone
ITimeMLNode clone()Returns a field-by-field of the Node.- Returns:
- a field-by-field copy of the Node.
- Since:
- jTLEX 1.0
-