public final class Tag extends Object implements Comparable<Tag>
Tags are used to group related managed objects together into categories.
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Tag o) |
static void |
define(String name)
Defines a new tag with the specified name.
|
boolean |
equals(Object obj) |
String |
getName()
Gets the name of this tag.
|
LocalizableMessage |
getSynopsis()
Gets the synopsis of this tag in the default locale.
|
LocalizableMessage |
getSynopsis(Locale locale)
Gets the synopsis of this tag in the specified locale.
|
int |
hashCode() |
String |
toString() |
static Tag |
valueOf(String name)
Returns the tag associated with the specified name.
|
static Collection<Tag> |
values()
Returns an unmodifiable collection view of the set of registered tags.
|
public static void define(String name)
name
- The name of the new tag.public static Tag valueOf(String name)
name
- The name of the tag.IllegalArgumentException
- If the tag name was not recognized.public static Collection<Tag> values()
public final int compareTo(Tag o)
compareTo
in interface Comparable<Tag>
public final String getName()
public final LocalizableMessage getSynopsis()
public final LocalizableMessage getSynopsis(Locale locale)
locale
- The locale.Copyright 2010-2020 ForgeRock AS.