public interface AttributeHolder
Interface denoting a configuration bean that stores a named collection of attributes.
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(AttributeBean descriptor)
Add the specified attribute descriptor, replacing any existing
descriptor for this attribute name.
|
AttributeBean |
getAttribute(java.lang.String name)
Return the attribute descriptor for the specified attribute name,
if any; otherwise, return
null . |
AttributeBean[] |
getAttributes()
Return the descriptors of all attributes for which descriptors have
been registered, or an empty array if none have been registered.
|
void |
removeAttribute(AttributeBean descriptor)
Deregister the specified attribute descriptor, if it is registered.
|
void addAttribute(AttributeBean descriptor)
Add the specified attribute descriptor, replacing any existing descriptor for this attribute name.
descriptor
- Descriptor to be addedAttributeBean getAttribute(java.lang.String name)
Return the attribute descriptor for the specified attribute name,
if any; otherwise, return null
.
name
- Name of the attribute for which to retrieve a descriptorAttributeBean[] getAttributes()
Return the descriptors of all attributes for which descriptors have been registered, or an empty array if none have been registered.
void removeAttribute(AttributeBean descriptor)
Deregister the specified attribute descriptor, if it is registered.
descriptor
- Descriptor to be removedCopyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.