org.opends.server.admin
Class Tag

java.lang.Object
  extended by org.opends.server.admin.Tag
All Implemented Interfaces:
java.lang.Comparable<Tag>

public final class Tag
extends java.lang.Object
implements java.lang.Comparable<Tag>

An interface for querying the properties of a tag.

Tags are used to group related managed objects together into categories.


Method Summary
 int compareTo(Tag o)
          
static void define(java.lang.String name)
          Defines a new tag with the specified name.
 boolean equals(java.lang.Object obj)
          
 java.lang.String getName()
          Gets the name of this tag.
 Message getSynopsis()
          Gets the synopsis of this tag in the default locale.
 Message getSynopsis(java.util.Locale locale)
          Gets the synopsis of this tag in the specified locale.
 int hashCode()
          
 java.lang.String toString()
          
static Tag valueOf(java.lang.String name)
          Returns the tag associated with the specified name.
static java.util.Collection<Tag> values()
          Returns an unmodifiable collection view of the set of registered tags.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

define

public static void define(java.lang.String name)
Defines a new tag with the specified name.

Parameters:
name - The name of the new tag.

valueOf

public static Tag valueOf(java.lang.String name)
                   throws java.lang.IllegalArgumentException
Returns the tag associated with the specified name.

Parameters:
name - The name of the tag.
Returns:
Returns the tag associated with the specified name.
Throws:
java.lang.IllegalArgumentException - If the tag name was not recognized.

values

public static java.util.Collection<Tag> values()
Returns an unmodifiable collection view of the set of registered tags.

Returns:
Returns an unmodifiable collection view of the set of registered tags.

compareTo

public final int compareTo(Tag o)

Specified by:
compareTo in interface java.lang.Comparable<Tag>

equals

public final boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

getName

public final java.lang.String getName()
Gets the name of this tag.

Returns:
Returns the name of this tag.

getSynopsis

public final Message getSynopsis()
Gets the synopsis of this tag in the default locale.

Returns:
Returns the synopsis of this tag in the default locale.

getSynopsis

public final Message getSynopsis(java.util.Locale locale)
Gets the synopsis of this tag in the specified locale.

Parameters:
locale - The locale.
Returns:
Returns the synopsis of this tag in the specified locale.

hashCode

public final int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public final java.lang.String toString()

Overrides:
toString in class java.lang.Object