Tag.java revision bccd35904bb6c244e7eae5b7ddb28e5c295e856b
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2008 Sun Microsystems, Inc.
*/
/**
* An interface for querying the properties of a tag.
* <p>
* Tags are used to group related managed objects together into categories.
*/
/** All the tags. */
/**
* Defines a new tag with the specified name.
*
* @param name
* The name of the new tag.
*/
// Register the tag.
}
/**
* Returns the tag associated with the specified name.
*
* @param name
* The name of the tag.
* @return Returns the tag associated with the specified name.
* @throws IllegalArgumentException
* If the tag name was not recognized.
*/
// Hack to force initialization of the tag definitions.
}
return tag;
}
/**
* Returns an unmodifiable collection view of the set of registered tags.
*
* @return Returns an unmodifiable collection view of the set of registered
* tags.
*/
// Hack to force initialization of the tag definitions.
}
/** The name of the tag. */
/** Private constructor. */
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
if (this == obj) {
return true;
}
}
return false;
}
/**
* Gets the name of this tag.
*
* @return Returns the name of this tag.
*/
return name;
}
/**
* Gets the synopsis of this tag in the default locale.
*
* @return Returns the synopsis of this tag in the default locale.
*/
public final LocalizableMessage getSynopsis() {
}
/**
* Gets the synopsis of this tag in the specified locale.
*
* @param locale
* The locale.
* @return Returns the synopsis of this tag in the specified locale.
*/
try {
} catch (MissingResourceException e) {
return null;
}
}
/** {@inheritDoc} */
public final int hashCode() {
}
/** {@inheritDoc} */
return name;
}
}