All Implemented Interfaces:
Serializable

public class ClassificationEntityExtension extends InstanceElementHeader
ClassificationEntityExtension is used to represent a single classification for an entity. It includes the details of the classification and an entity proxy to define which entity it should be attached to. This version of classification is used in open metadata archives and events where the complete entity is either not available, or needs to be augmented.
See Also:
  • Field Details

    • CURRENT_CLASSIFICATION_EXT_HEADER_VERSION

      public static final long CURRENT_CLASSIFICATION_EXT_HEADER_VERSION
      See Also:
  • Constructor Details

    • ClassificationEntityExtension

      public ClassificationEntityExtension()
      Default constructor
    • ClassificationEntityExtension

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

    • getClassification

      public Classification getClassification()
      Return the classification for the entity.
      Returns:
      classification object
    • setClassification

      public void setClassification(Classification classification)
      Set up the classification for the entity.
      Parameters:
      classification - classification object
    • getEntityToClassify

      public EntityProxy getEntityToClassify()
      Return which entity to attach this classification to.
      Returns:
      entity proxy object
    • setEntityToClassify

      public void setEntityToClassify(EntityProxy entityToClassify)
      Set up which entity to attach this classification to.
      Parameters:
      entityToClassify - entity proxy object
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      JSON style description of variables.
    • equals

      public boolean equals(Object objectToCompare)
      Validate that an object is equal depending on their stored values.
      Overrides:
      equals in class RepositoryElementHeader
      Parameters:
      objectToCompare - object
      Returns:
      boolean result
    • hashCode

      public int hashCode()
      Return a hash code based on the values of this object.
      Overrides:
      hashCode in class RepositoryElementHeader
      Returns:
      in hash code