public abstract class AbstractTag extends Object implements Tag
Tag
interface.
Third-party implementations should extend this class instead of
directly implementing the interface to be future compatible.Constructor and Description |
---|
AbstractTag() |
Modifier and Type | Method and Description |
---|---|
Tag |
addChild(String pTagId,
String pName,
String pDescription)
Adds tag as a child of this tag in the same tag structure.
|
Tag |
addChildWithAliases(String pName,
String pDescription,
List<String> pAliases)
Adds tag as a child of this tag in the same tag structure.
|
Tag |
addChildWithAliases(String pTagId,
String pName,
String pDescription,
List<String> pAliases)
Adds tag as a child of this tag in the same tag structure.
|
boolean |
equals(Object pObject) |
int |
hashCode() |
String |
toPathString(String pDelimiter)
Traverses the ancestors of the tag until the root and returns a
string containing the names of those tags, separated by the specified
pDelimiter . |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAlias, addChild, delete, deleteAlias, update, update
getAliases, getChildren, getChildren, getChildrenCount, getDescription, getID, getIdentifier, getLastModified, getName, getParent, getTagStructure, getUUID
public Tag addChild(String pTagId, String pName, String pDescription) throws ClassificationException
Tag
addChild
in interface Tag
pTagId
- is the identifier of the tag to be created.pName
- the name of the new tag.pDescription
- the description of the new tag.ClassificationException
- if adding tag fails.public Tag addChildWithAliases(String pName, String pDescription, List<String> pAliases) throws ClassificationException
Tag
addChildWithAliases
in interface Tag
pName
- the name of the new tag.pDescription
- the description of the new tag.pAliases
- the list of aliases to be created with this tag.ClassificationException
- if adding tag fails.public Tag addChildWithAliases(String pTagId, String pName, String pDescription, List<String> pAliases) throws ClassificationException
Tag
addChildWithAliases
in interface Tag
pTagId
- is the identifier of the tag to be created.pName
- the name of the new tag.pDescription
- the description of the new tag.pAliases
- the list of aliases to be created with this tag.ClassificationException
- if adding tag fails.public String toPathString(String pDelimiter)
Tag
pDelimiter
. Returns the tag name if a tag has no parents.toPathString
in interface Tag
pDelimiter
- the string to insert between the parent tags if
there are more than one.© 1998- 2021 Escenic AS