java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.metadataelements.LineageMappingElement

public class LineageMappingElement extends Object
LineageMappingElement contains the properties and header for a lineage mapping relationship retrieved from the metadata repository.
  • Constructor Details

    • LineageMappingElement

      public LineageMappingElement()
      Default constructor
    • LineageMappingElement

      public LineageMappingElement(LineageMappingElement template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getLineageMappingHeader

      public ElementHeader getLineageMappingHeader()
      Return the element header associated with the relationship.
      Returns:
      element header object
    • setLineageMappingHeader

      public void setLineageMappingHeader(ElementHeader lineageMappingHeader)
      Set up the element header associated with the relationship.
      Parameters:
      lineageMappingHeader - element header object
    • getLineageMappingProperties

      public LineageMappingProperties getLineageMappingProperties()
      Return the properties associated with the lineage mapping relationship.
      Returns:
      properties
    • setLineageMappingProperties

      public void setLineageMappingProperties(LineageMappingProperties lineageMappingProperties)
      Set up the properties associated with the relationship.
      Parameters:
      lineageMappingProperties - properties
    • getSourceElement

      public ElementHeader getSourceElement()
      Return the element header associated with end 1 of the relationship.
      Returns:
      element header object
    • setSourceElement

      public void setSourceElement(ElementHeader sourceElement)
      Set up the element header associated with end 1 of the relationship.
      Parameters:
      sourceElement - element header object
    • getTargetElement

      public ElementHeader getTargetElement()
      Return the element header associated with end 2 of the relationship.
      Returns:
      element header object
    • setTargetElement

      public void setTargetElement(ElementHeader targetElement)
      Set up the element header associated with end 2 of the relationship.
      Parameters:
      targetElement - element header object
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class Object
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class Object
      Returns:
      int hash code