public final class Tag extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addContainedTag(Tag tag)
Loops are not checked here.
|
void |
addContainingTag(Tag tag)
Loops are not checked here.
|
boolean |
equals(Object obj) |
String |
getColor()
A color by which this tag should typically be represented in the UI elements like tags, boxes, chart lines, graph nodes, etc.
|
Set<Tag> |
getContainedTags()
Which tags are designated by this tag; for instance, "java-ee" designates "ejb" and "jms".
|
String |
getName()
Tag name (ID), preferably kebab-style, e.g "java-ee-6".
|
Map<String,String> |
getOrCreateTraits() |
Set<Tag> |
getParentTags()
Which tags are designated by this tag; for instance, "seam" is designated by "web" and "framework:".
|
String |
getTitle()
Human readable title of technology this tag represents, e.g "Java EE 6".
|
String |
getTitleOrName() |
Map<String,String> |
getTraits()
Returns the traits map, or null if it was not yet initialized.
|
int |
hashCode() |
boolean |
isPrime()
A "prime" tag is one which is an important group of subtags, suitable for showing in aggregated reports.
|
boolean |
isPseudo()
Pseudo tags serve as grouping for contained tags, but are not suitable to be a root tag.
|
boolean |
isRoot()
A root tag is that which was a root in the XML definition files.
|
static String |
normalizeName(String name) |
void |
setColor(String color) |
void |
setIsPrime(boolean isPrime) |
void |
setIsRoot(boolean isRoot) |
void |
setPseudo(boolean isPseudo) |
void |
setTitle(String title) |
String |
toString() |
public String getName()
public Set<Tag> getContainedTags()
public Set<Tag> getParentTags()
public void addContainedTag(Tag tag)
public void addContainingTag(Tag tag)
public boolean isRoot()
public void setIsRoot(boolean isRoot)
public boolean isPrime()
public void setIsPrime(boolean isPrime)
public boolean isPseudo()
public void setPseudo(boolean isPseudo)
public String getColor()
public void setColor(String color)
public String getTitle()
public void setTitle(String title)
public String getTitleOrName()
public Map<String,String> getTraits()
Copyright © 2021 JBoss by Red Hat. All rights reserved.