Class AttributedMetadataElement

java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AttributedMetadataElement
All Implemented Interfaces:
MetadataElement
Direct Known Subclasses:
CollectionElement, DataClassElement, DataFieldElement, DataStructureElement, GlossaryCategoryElement, GlossaryElement, GlossaryTermElement, ProjectElement, ToDoElement

public class AttributedMetadataElement extends Object implements MetadataElement
Description of an open metadata element (entity instance) retrieved from the open metadata repositories that is expected to have external references and other elements attached.
  • Constructor Details

    • AttributedMetadataElement

      public AttributedMetadataElement()
      Default constructor used by subclasses
    • AttributedMetadataElement

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

    • getElementHeader

      public ElementHeader getElementHeader()
      Return the element header associated with the properties.
      Specified by:
      getElementHeader in interface MetadataElement
      Returns:
      element header object
    • setElementHeader

      public void setElementHeader(ElementHeader elementHeader)
      Set up the element header associated with the properties.
      Specified by:
      setElementHeader in interface MetadataElement
      Parameters:
      elementHeader - element header object
    • setExternalReferences

      public void setExternalReferences(List<RelatedMetadataElementSummary> externalReferences)
      Set up the list of external references for this element
      Parameters:
      externalReferences - properties for the classification
    • getExternalReferences

      public List<RelatedMetadataElementSummary> getExternalReferences()
      Return the list of external references for this element.
      Returns:
      properties map
    • getOtherRelatedElements

      public List<RelatedMetadataElementSummary> getOtherRelatedElements()
      Return details of other related elements retrieved from the repository.
      Returns:
      list
    • setOtherRelatedElements

      public void setOtherRelatedElements(List<RelatedMetadataElementSummary> otherRelatedElements)
      Set up details of other related elements retrieved from the repository.
      Parameters:
      otherRelatedElements - list
    • getMermaidGraph

      public String getMermaidGraph()
      Return the mermaid representation of this data structure.
      Returns:
      string markdown
    • setMermaidGraph

      public void setMermaidGraph(String mermaidGraph)
      Set up the mermaid representation of this data structure.
      Parameters:
      mermaidGraph - markdown string
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • 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()
      Create a hash code for this element type.
      Overrides:
      hashCode in class Object
      Returns:
      int hash code