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 interface
Wrapper interface forITimeMLEvent.EventClass
andITimeMLTimex.TimexType
. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a field-by-field of the Node.boolean
Compares the given object to another of the same type.int
getId()
Returns the integer part of the node ID.getIdStr()
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
int getId()Returns the integer part of the node ID. Each event has to be identified by a unique ID number.- Returns:
- Integer part of the node ID. May not be 0 or negative.
- 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
-
getIdStr
String getIdStr()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
-
equals
Compares the given object to another of the same type.- Overrides:
equals
in 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
-