com.sun.faces.config.beans
Class ConverterBean

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

public class ConverterBean
extends FeatureBean
implements AttributeHolder, PropertyHolder

Configuration bean for <attribute> element.


Constructor Summary
ConverterBean()
           
 
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 getConverterClass()
           
 java.lang.Class getConverterForClass()
           
 java.lang.String getConverterId()
           
 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.
 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 setConverterClass(java.lang.String converterClass)
           
 void setConverterForClass(java.lang.Class converterForClass)
           
 void setConverterForClass(java.lang.String converterForClass)
           
 void setConverterId(java.lang.String converterId)
           
 
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

ConverterBean

public ConverterBean()
Method Detail

getConverterClass

public java.lang.String getConverterClass()

setConverterClass

public void setConverterClass(java.lang.String converterClass)

getConverterForClass

public java.lang.Class getConverterForClass()

setConverterForClass

public void setConverterForClass(java.lang.String converterForClass)

setConverterForClass

public void setConverterForClass(java.lang.Class converterForClass)

getConverterId

public java.lang.String getConverterId()

setConverterId

public void setConverterId(java.lang.String converterId)

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.