Interface HasTags
- All Known Subinterfaces:
EntityExtended,ExternalEntity,HasMutableTags,MutableEntityExtended,MutableExternalEntity
- All Known Implementing Classes:
Comment,Document,EntityExtendedImp,ExternalEntityImp,MutableEntityExtendedImp,MutableExternalEntityImp
public interface HasTags
The interface defines a mixin and abstracts an entity with readable tags.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancontainsTag(@NotNull String tag) default booleancontainsTag(String namespace, @NotNull String name) True, if the tag with the given tag identification containing optional namespace and tag name could be found.Finds the tag with the given tag identification containing optional namespace and tag name.Searches for a tag with the given namespace and name.default Collection<Tag> findByNamespace(String namespace) default StringrawTags()Return the collection of tags as a canonical string representation.tags()Returns the collection of tags for the entity.Returns the value of the tag with the given qualified tag name.Returns the value of the tag with the given qualified tag name.
-
Field Details
-
TAGS
-
-
Method Details
-
tags
-
findBy
-
findBy
-
containsTag
-
containsTag
True, if the tag with the given tag identification containing optional namespace and tag name could be found.- Parameters:
namespace- optional namespace of the tagname- name of the tag- Returns:
- flag indicating if the tag is existing
-
value
-
value
-
findByNamespace
-
rawTags
Return the collection of tags as a canonical string representation.- Returns:
- text representation of the tag collection
-