com.sun.faces.config.beans
Interface AttributeHolder

All Known Implementing Classes:
ComponentBean, ConverterBean, RendererBean, ValidatorBean

public interface AttributeHolder

Interface denoting a configuration bean that stores a named collection of attributes.


Method Summary
 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.
 

Method Detail

addAttribute

void addAttribute(AttributeBean descriptor)

Add the specified attribute descriptor, replacing any existing descriptor for this attribute name.

Parameters:
descriptor - Descriptor to be added

getAttribute

AttributeBean getAttribute(java.lang.String name)

Return the attribute descriptor for the specified attribute name, if any; otherwise, return null.

Parameters:
name - Name of the attribute for which to retrieve a descriptor

getAttributes

AttributeBean[] getAttributes()

Return the descriptors of all attributes for which descriptors have been registered, or an empty array if none have been registered.


removeAttribute

void removeAttribute(AttributeBean descriptor)

Deregister the specified attribute descriptor, if it is registered.

Parameters:
descriptor - Descriptor to be removed


Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.