java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.MetadataElementSummary
All Implemented Interfaces:
MetadataElement

public class MetadataElementSummary extends Object implements MetadataElement
Description of an open metadata element (entity instance) retrieved from the open metadata repositories.
  • Constructor Details

    • MetadataElementSummary

      public MetadataElementSummary()
      Default constructor used by subclasses
    • MetadataElementSummary

      public MetadataElementSummary(MetadataElementSummary 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
    • setProperties

      public void setProperties(Map<String,String> properties)
      Set up the properties for the element. If no stored properties are present then null is returned.
      Parameters:
      properties - properties for the classification
    • getProperties

      public Map<String,String> getProperties()
      Return a collection of the properties for the element. If no stored properties are present then null is returned.
      Returns:
      properties map
    • 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