java.lang.Object
org.odpi.openmetadata.accessservices.assetcatalog.model.Element
org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship
All Implemented Interfaces:
Serializable

public class Relationship extends Element implements Serializable
The Relationship object holds properties that are used for displaying a relationship between two assets
See Also:
  • Constructor Details

    • Relationship

      public Relationship()
  • Method Details

    • getFromEntity

      public Element getFromEntity()
      Returns the start element for the relationship
      Returns:
      the start element for the relationship
    • getToEntity

      public Element getToEntity()
      Returns the destination element for the relationship
      Returns:
      the destination element for the relationship
    • setFromEntity

      public void setFromEntity(Element fromEntity)
      Setup the start element for the relationship
      Parameters:
      fromEntity - the start element for the relationship
    • setToEntity

      public void setToEntity(Element toEntity)
      Setup the destination element for the relationship
      Parameters:
      toEntity - the destination element for the relationship
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Element
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class Element
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Element
    • toString

      public String toString()
      Overrides:
      toString in class Element