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
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a field-by-field of the Node.
    boolean
    Compares the given object to another of the same type.
    int
    Returns the integer part of the node ID.
    Returns the full string representation of the node ID.
    Return the integer that corresponds with the type.
    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

      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

      boolean equals(Object o)
      Compares the given object to another of the same type.
      Overrides:
      equals in class Object
      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