Class Annotation

  • All Implemented Interfaces:
    java.io.Serializable

    public class Annotation
    extends java.lang.Object
    implements java.io.Serializable
    An Annotation represents data of a certain type, for a given path, for a given point in time or range of time. There is little contract defined for types and data formats, though in general data is expected to be simple text, or a json document.
    See Also:
    Serialized Form
    • Constructor Detail

      • Annotation

        public Annotation()
    • Method Detail

      • newDelete

        public static Annotation newDelete​(java.io.Serializable storageId)
      • fromJson

        public static Annotation fromJson​(java.lang.String json)
      • fromJson

        public static Annotation fromJson​(com.inductiveautomation.ignition.common.gson.JsonElement json)
      • updatePath

        public void updatePath​(QualifiedPath path)
        Path can be mutated as we move from system to system.
      • getType

        public java.lang.String getType()
      • getRangeStart

        public java.util.Date getRangeStart()
      • getRangeEnd

        public java.util.Date getRangeEnd()
      • getData

        public java.lang.String getData()
      • getStorageId

        public java.io.Serializable getStorageId()
      • isDeleted

        public boolean isDeleted()
      • delete

        public void delete()
      • toJson

        public java.lang.String toJson()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object