Class OpenMetadataElementStub

java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElementStub

public class OpenMetadataElementStub extends ElementControlHeader
ElementStub is used to identify an element.
  • Constructor Details

    • OpenMetadataElementStub

      public OpenMetadataElementStub()
      Default constructor
    • OpenMetadataElementStub

      public OpenMetadataElementStub(OpenMetadataElementStub template)
      Copy/clone constructor. Note, this is a deep copy
      Parameters:
      template - object to copy
    • OpenMetadataElementStub

      public OpenMetadataElementStub(ElementControlHeader template)
      Copy/clone constructor.
      Parameters:
      template - element to copy
  • Method Details

    • getGUID

      public String getGUID()
      Return the unique id for the metadata element.
      Returns:
      String unique identifier
    • setGUID

      public void setGUID(String guid)
      Set up the unique id for the metadata element.
      Parameters:
      guid - String unique identifier
    • getClassifications

      public List<AttachedClassification> getClassifications()
      Return the list of classifications associated with the metadata element.
      Returns:
      Classifications list of classifications
    • setClassifications

      public void setClassifications(List<AttachedClassification> classifications)
      Set up the list of classifications associated with the metadata element.
      Parameters:
      classifications - list of classifications
    • getUniqueName

      public String getUniqueName()
      Return the unique name - if known
      Returns:
      string name
    • setUniqueName

      public void setUniqueName(String uniqueName)
      Set up unique name - if known
      Parameters:
      uniqueName - string name
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class ElementControlHeader
      Returns:
      list of properties and their values.
    • equals

      public boolean equals(Object objectToCompare)
      Equals method that returns true if containing properties are the same.
      Overrides:
      equals in class ElementControlHeader
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class ElementControlHeader
      Returns:
      int