Class AnnotationIDEnt

java.lang.Object
org.knime.gateway.api.entity.AnnotationIDEnt

public final class AnnotationIDEnt extends Object
Represents a (workflow) annotation id as used by gateway entities and services. Equivalent to the core's WorkflowAnnotationID.
Author:
Martin Horn, KNIME GmbH, Konstanz, Germany
  • Constructor Details

    • AnnotationIDEnt

      public AnnotationIDEnt(NodeIDEnt nodeId, int index)
      Creates a new annotation id entity from a node id entity and an index.
      Parameters:
      nodeId - the node id of the workflow annotation is part of
      index -
    • AnnotationIDEnt

      public AnnotationIDEnt(org.knime.core.node.workflow.WorkflowAnnotationID id)
      Creates a new annotation id entity from a WorkflowAnnotationID.
      Parameters:
      id -
    • AnnotationIDEnt

      public AnnotationIDEnt(String s)
      Deserialization constructor.
      Parameters:
      s - string representation as returned by toString()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getNodeIDEnt

      public NodeIDEnt getNodeIDEnt()
      Returns:
      the id of the node the workflow annotation is part of
    • getIndex

      public int getIndex()
      Returns:
      its index in that workflow
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object