net.sf.chainedoptions.support
Class StringBeanConverter

java.lang.Object
  extended by net.sf.chainedoptions.AbstractBeanConverter
      extended by net.sf.chainedoptions.support.StringBeanConverter
All Implemented Interfaces:
BeanConverter

public class StringBeanConverter
extends AbstractBeanConverter

BeanConverter for String objects. Constructs LabelValueBeans with label and value as the supplied String.

Author:
Mattias Arthursson

Constructor Summary
StringBeanConverter()
           
 
Method Summary
protected  LabelValueBean convertBean(java.lang.Object object)
          Create a LabelValueBean with name and value as the supplied String.
 
Methods inherited from class net.sf.chainedoptions.AbstractBeanConverter
convert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBeanConverter

public StringBeanConverter()
Method Detail

convertBean

protected LabelValueBean convertBean(java.lang.Object object)
Create a LabelValueBean with name and value as the supplied String.

Specified by:
convertBean in class AbstractBeanConverter
Parameters:
object - String to convert.
Returns:
a new LabelValueBean
Throws:
java.lang.ClassCastException - if the supplied object is not a String.


Copyright ? 2005. All Rights Reserved.