java.lang.Object
org.odpi.openmetadata.viewservices.assetcatalog.beans.Edge

public class Edge extends Object
Edge describes a relationship in the lineage graph.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Edge(String from, String to)
    Construct a simple edge.
    Edge(String id, String from, String to, String label)
    Construct an edge.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return the identifier of hte element that the edge starts at.
    Return the identifier of the edge.
    Set up the label for the edge.
    Return the identifier of the element that the end ends at.
    Return the type of the edge.
    int
    Return hash code based on properties.
    void
    Set up the identifier of the element that the edge starts at.
    void
    Set up the identifier of the edge.
    void
    Return the label for the edge.
    void
    Set up the identifier of the element that the end ends at.
    void
    Set up the type of the edge.
    Standard toString method.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Edge

      public Edge(String from, String to)
      Construct a simple edge.
      Parameters:
      from - identifier of the starting element
      to - identifier of the destination
    • Edge

      public Edge(String id, String from, String to, String label)
      Construct an edge.
      Parameters:
      id - identifier of the edge
      from - identifier of the starting element
      to - identifier of the destination
      label - label for the edge
  • Method Details

    • getId

      public String getId()
      Return the identifier of the edge.
      Returns:
      guid
    • setId

      public void setId(String id)
      Set up the identifier of the edge.
      Parameters:
      id - guid
    • getFrom

      public String getFrom()
      Return the identifier of hte element that the edge starts at.
      Returns:
      guid
    • setFrom

      public void setFrom(String from)
      Set up the identifier of the element that the edge starts at.
      Parameters:
      from - guid
    • getTo

      public String getTo()
      Return the identifier of the element that the end ends at.
      Returns:
      guid
    • setTo

      public void setTo(String to)
      Set up the identifier of the element that the end ends at.
      Parameters:
      to - guid
    • getLabel

      public String getLabel()
      Set up the label for the edge.
      Returns:
      name
    • setLabel

      public void setLabel(String label)
      Return the label for the edge.
      Parameters:
      label - name
    • getType

      public String getType()
      Return the type of the edge.
      Returns:
      name
    • setType

      public void setType(String type)
      Set up the type of the edge.
      Parameters:
      type - name
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style