java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
org.odpi.openmetadata.accessservices.assetconsumer.properties.MetadataElement

public class MetadataElement extends org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
Description of an open metadata element (entity instance) retrieved from the open metadata repositories.
  • Field Summary

    Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase

    CURRENT_AUDIT_HEADER_VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor used by subclasses
    Copy/clone constructor
    MetadataElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader template)
    Copy/clone constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return a collection of the properties for the element.
    int
    Create a hash code for this element type.
    void
    Set up the properties for the element.
    Standard toString method.

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader

    getClassifications, getGUID, setClassifications, setGUID

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader

    getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersions

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase

    getHeaderVersion, setHeaderVersion

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MetadataElement

      public MetadataElement()
      Default constructor used by subclasses
    • MetadataElement

      public MetadataElement(MetadataElement template)
      Copy/clone constructor
      Parameters:
      template - template to copy
    • MetadataElement

      public MetadataElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader template)
      Copy/clone constructor
      Parameters:
      template - template to copy
  • Method Details

    • setProperties

      public void setProperties(Map<String,Object> 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,Object> 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 org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
      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 org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
      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 org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
      Returns:
      int hash code