org.apache.struts.faces.util
Class SupportedComponent

java.lang.Object
  |
  +--org.apache.struts.faces.util.SupportedComponent

public class SupportedComponent
extends java.lang.Object

Utility class representing a component type that is supported by a Renderer implementation in the Struts-Faces Integration Library.

Version:
$Revision: 1.1 $ $Date: 2003/03/07 03:22:45 $
Author:
Craig R. McClanahan

Field Summary
private  java.lang.String componentType
          The component type of the supported component represented by this instance.
private  java.lang.String description
          The help text describing this supported component.
private  java.util.HashMap descriptors
          The list of attribute descriptors for attributes supported for the component type represented by this instance.
 
Constructor Summary
SupportedComponent()
           
 
Method Summary
 void addAttributeDescriptor(javax.faces.component.AttributeDescriptor descriptor)
          Add a new attribute descriptor to those supported for this component type.
 javax.faces.component.AttributeDescriptor getAttributeDescriptor(java.lang.String name)
          Return the attribute descriptor for the specified attribute name if it is supported; otherwise, return null.
 java.util.Iterator getAttributeNames()
          Return an Iterator over the attribute names of all supported attributes for this component type.
 java.lang.String getComponentType()
           
 java.lang.String getDescription()
           
 void setComponentType(java.lang.String componentType)
           
 void setDescription(java.lang.String description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptors

private java.util.HashMap descriptors

The list of attribute descriptors for attributes supported for the component type represented by this instance.


componentType

private java.lang.String componentType

The component type of the supported component represented by this instance.


description

private java.lang.String description

The help text describing this supported component.

Constructor Detail

SupportedComponent

public SupportedComponent()
Method Detail

getComponentType

public java.lang.String getComponentType()

setComponentType

public void setComponentType(java.lang.String componentType)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

addAttributeDescriptor

public void addAttributeDescriptor(javax.faces.component.AttributeDescriptor descriptor)

Add a new attribute descriptor to those supported for this component type.

Parameters:
descriptor - The new attribute descriptor

getAttributeDescriptor

public javax.faces.component.AttributeDescriptor getAttributeDescriptor(java.lang.String name)

Return the attribute descriptor for the specified attribute name if it is supported; otherwise, return null.

Parameters:
name - Attribute name for which to retrieve a descriptor

getAttributeNames

public java.util.Iterator getAttributeNames()

Return an Iterator over the attribute names of all supported attributes for this component type.



Copyright ? 2003 - Apache Software Foundation