Class ItemTagDto

java.lang.Object
org.ehrbase.api.dto.experimental.ItemTagDto

public final class ItemTagDto extends Object
  • Constructor Details

    • ItemTagDto

      public ItemTagDto()
    • ItemTagDto

      public ItemTagDto(UUID id, UUID ownerId, UUID target, ItemTagDto.ItemTagRMType targetType, String targetPath, String key, String value)
      Parameters:
      id - Identifier of the tag
      ownerId - Identifier of owner object, such as EHR.
      target - Identifier of target, which may be a VERSIONED_OBJECT<T> or a VERSION<T>.
      targetType - RM type of the tag
      targetPath - Optional archetype (i.e. AQL) or RM path within target, used to tag a fine-grained element.
      key - The tag key. May not be empty or contain leading or trailing whitespace.
      value - The value. If set, may not be empty.
  • Method Details

    • getId

      @Nullable public UUID getId()
    • setId

      public void setId(@Nullable UUID id)
    • getOwnerId

      @Nullable public UUID getOwnerId()
    • setOwnerId

      public void setOwnerId(@Nullable UUID ownerId)
    • getTarget

      @Nullable public UUID getTarget()
    • setTarget

      public void setTarget(@Nullable UUID target)
    • getTargetType

      @Nullable public ItemTagDto.ItemTagRMType getTargetType()
    • setTargetType

      public void setTargetType(@Nullable ItemTagDto.ItemTagRMType targetType)
    • getTargetPath

      @Nullable public String getTargetPath()
    • setTargetPath

      public void setTargetPath(@Nullable String targetPath)
    • getKey

      @Nonnull public String getKey()
    • setKey

      public void setKey(@Nonnull String key)
    • getValue

      @Nullable public String getValue()
    • setValue

      public void setValue(@Nullable String value)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object