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

public class Edge extends Object
Edge describes a relationship in the lineage graph.
  • 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