com.sun.faces.config.beans
Class ComponentBean

java.lang.Object
  extended by com.sun.faces.config.beans.FeatureBean
      extended by com.sun.faces.config.beans.ComponentBean
All Implemented Interfaces:
AttributeHolder, PropertyHolder

public class ComponentBean
extends FeatureBean
implements AttributeHolder, PropertyHolder

Configuration bean for <attribute> element.


Constructor Summary
ComponentBean()
           
 
Method Summary
 void addAttribute(AttributeBean descriptor)
          Add the specified attribute descriptor, replacing any existing descriptor for this attribute name.
 void addProperty(PropertyBean descriptor)
          Add the specified property descriptor, replacing any existing descriptor for this property 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.
 java.lang.String getBaseComponentType()
           
 java.lang.String getComponentClass()
           
 java.lang.String getComponentFamily()
           
 java.lang.String getComponentType()
           
 PropertyBean[] getProperties()
          Return the descriptors of all properties for which descriptors have been registered, or an empty array if none have been registered.
 PropertyBean getProperty(java.lang.String name)
          Return the property descriptor for the specified property name, if any; otherwise, return null.
 java.lang.String getRendererType()
           
 void removeAttribute(AttributeBean descriptor)
          Deregister the specified attribute descriptor, if it is registered.
 void removeProperty(PropertyBean descriptor)
          Deregister the specified property descriptor, if it is registered.
 void setBaseComponentType(java.lang.String baseComponentType)
           
 void setComponentClass(java.lang.String componentClass)
           
 void setComponentFamily(java.lang.String componentFamily)
           
 void setComponentType(java.lang.String componentType)
           
 void setRendererType(java.lang.String rendererType)
           
 
Methods inherited from class com.sun.faces.config.beans.FeatureBean
addDescription, addDisplayName, addIcon, getDescription, getDescriptions, getDisplayName, getDisplayNames, getIcon, getIcons, removeDescription, removeDisplayName, removeIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentBean

public ComponentBean()
Method Detail

getComponentClass

public java.lang.String getComponentClass()

setComponentClass

public void setComponentClass(java.lang.String componentClass)

getComponentType

public java.lang.String getComponentType()

setComponentType

public void setComponentType(java.lang.String componentType)

getBaseComponentType

public java.lang.String getBaseComponentType()

setBaseComponentType

public void setBaseComponentType(java.lang.String baseComponentType)

getComponentFamily

public java.lang.String getComponentFamily()

setComponentFamily

public void setComponentFamily(java.lang.String componentFamily)

getRendererType

public java.lang.String getRendererType()

setRendererType

public void setRendererType(java.lang.String rendererType)

addAttribute

public void addAttribute(AttributeBean descriptor)
Description copied from interface: AttributeHolder

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

Specified by:
addAttribute in interface AttributeHolder
Parameters:
descriptor - Descriptor to be added

getAttribute

public AttributeBean getAttribute(java.lang.String name)
Description copied from interface: AttributeHolder

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

Specified by:
getAttribute in interface AttributeHolder
Parameters:
name - Name of the attribute for which to retrieve a descriptor

getAttributes

public AttributeBean[] getAttributes()
Description copied from interface: AttributeHolder

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

Specified by:
getAttributes in interface AttributeHolder

removeAttribute

public void removeAttribute(AttributeBean descriptor)
Description copied from interface: AttributeHolder

Deregister the specified attribute descriptor, if it is registered.

Specified by:
removeAttribute in interface AttributeHolder
Parameters:
descriptor - Descriptor to be removed

addProperty

public void addProperty(PropertyBean descriptor)
Description copied from interface: PropertyHolder

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

Specified by:
addProperty in interface PropertyHolder
Parameters:
descriptor - Descriptor to be added

getProperty

public PropertyBean getProperty(java.lang.String name)
Description copied from interface: PropertyHolder

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

Specified by:
getProperty in interface PropertyHolder
Parameters:
name - Name of the property for which to retrieve a descriptor

getProperties

public PropertyBean[] getProperties()
Description copied from interface: PropertyHolder

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

Specified by:
getProperties in interface PropertyHolder

removeProperty

public void removeProperty(PropertyBean descriptor)
Description copied from interface: PropertyHolder

Deregister the specified property descriptor, if it is registered.

Specified by:
removeProperty in interface PropertyHolder
Parameters:
descriptor - Descriptor to be removed


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