Class TagDTO

java.lang.Object
org.apache.gravitino.dto.tag.TagDTO
All Implemented Interfaces:
Auditable, Tag

public class TagDTO extends Object implements Tag
Represents a Tag Data Transfer Object (DTO).
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface Tag
      Returns:
      The name of the tag.
    • comment

      public String comment()
      Specified by:
      comment in interface Tag
      Returns:
      The comment of the tag.
    • properties

      public Map<String,String> properties()
      Specified by:
      properties in interface Tag
      Returns:
      The properties of the tag.
    • auditInfo

      public AuditDTO auditInfo()
      Specified by:
      auditInfo in interface Auditable
      Returns:
      The audit information of the entity.
    • inherited

      public Optional<Boolean> inherited()
      Description copied from interface: Tag
      Check if the tag is inherited from a parent object or not. If the tag is inherited, it will return true, if it is owned by the object itself, it will return false.

      Note. The return value is optional, only when the tag is associated with an object, and called from the object, the return value will be present. Otherwise, it will be empty.

      Specified by:
      inherited in interface Tag
      Returns:
      True if the tag is inherited, false if it is owned by the object itself. Empty if the tag is not associated with any object.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • builder

      public static TagDTO.Builder builder()
      Returns:
      a new builder for constructing a Tag DTO.