Class EntitySummary

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    EntityDetail, EntityProxy

    public class EntitySummary
    extends InstanceHeader
    EntitySummary provides the basic header attributes for an open metadata entity. This includes a summary of its type, its unique identifier (guid) last update date and a list of the classifications for the entity.
    See Also:
    Serialized Form
    • Constructor Detail

      • EntitySummary

        public EntitySummary()
        Default constructor creates an empty entity
      • EntitySummary

        public EntitySummary​(EntitySummary templateElement)
        Copy/clone constructor.
        Parameters:
        templateElement - template to copy.
    • Method Detail

      • getClassifications

        public List<Classification> getClassifications()
        Return a copy of the classifications for the entity. This is a list stored in a newly initialized iterator.
        Returns:
        Classifications list
      • setClassifications

        public void setClassifications​(List<Classification> classifications)
        Set up the classifications for an entity. This is stored as an iterator.
        Parameters:
        classifications - Classification list
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class InstanceHeader
        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 InstanceHeader
        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 InstanceHeader
        Returns:
        in hash code