public interface Tag
Modifier and Type | Field and Description |
---|---|
static Pattern |
NAME_PATTERN
The pattern a tag name has to respect.
|
Modifier and Type | Method and Description |
---|---|
void |
addTag(Tag tag)
Add a new child tag.
|
I18nizableText |
getDescription()
Retrieves the description.
|
String |
getId()
Get the tag unique id.
|
String |
getName()
Get the tag name.
|
<T extends Tag> |
getParent()
Get the parent tag
|
String |
getParentName()
Get the parent name.
|
<T extends Tag> |
getTag(String tagId)
Try to get a child tag by its id
|
Map<String,? extends Tag> |
getTags()
Retrieves the Set of child tags
|
I18nizableText |
getTitle()
Retrieves the title.
|
boolean |
hasTag(String tagId)
Determines if a tag exists
|
void |
setTags(Map<String,? extends Tag> tags)
Set the child tags
|
static final Pattern NAME_PATTERN
String getParentName()
<T extends Tag> T getParent()
T
- the tag classI18nizableText getTitle()
AmetysRepositoryException
- if an error occurs.I18nizableText getDescription()
void setTags(Map<String,? extends Tag> tags)
tags
- The Map of Tag to setMap<String,? extends Tag> getTags()
<T extends Tag> T getTag(String tagId)
T
- the tag classtagId
- The id of the child tag