Interface HasMutableTags
- All Superinterfaces:
HasTags
- All Known Subinterfaces:
MutableEntityExtended,MutableExternalEntity
- All Known Implementing Classes:
MutableEntityExtendedImp,MutableExternalEntityImp
The interface defines a mixin and abstracts an entity with tags.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd the tag to the collection of tags.default voidvoidclear()default voidSet the tags using the canonical string representation.booleanRemove the tag from the collection of tags.default voidremoveTagNamed(@NotNull String tag) Remove the tag with the given tag identification containing optional namespace and tag name.voidtags(@NotNull Collection<Tag> tags) Set the new collection of tags for the entity.default voidReplace or inserts the given tag.default booleanReplace or insert the given tag.Methods inherited from interface net.tangly.core.HasTags
containsTag, containsTag, findBy, findBy, findByNamespace, rawTags, tags, value, value
-
Method Details
-
tags
Set the new collection of tags for the entity.- Parameters:
tags- new collection of tags- See Also:
-
remove
Remove the tag from the collection of tags.- Parameters:
tag- tag to remove- Returns:
trueif this collection contained the specified element- See Also:
-
add
Add the tag to the collection of tags.- Parameters:
tag- tag to be added- Returns:
trueif this collection did not already contain the specified element- See Also:
-
clear
void clear() -
addTags
-
update
Replace or insert the given tag. Tag equivalence is detected with optional namespace and tag name.- Parameters:
tag- tag to replace or insert
-
update
-
removeTagNamed
Remove the tag with the given tag identification containing optional namespace and tag name.- Parameters:
tag- tag identification of the tag to be removed
-
rawTags
Set the tags using the canonical string representation.- Parameters:
rawTags- canonical representation of the tag collection- See Also:
-