org.jconfig.utils.editors
Class CharConverter

java.lang.Object
  |
  +--org.jconfig.utils.editors.CharConverter
All Implemented Interfaces:
TypeConverter

public class CharConverter
extends java.lang.Object
implements TypeConverter

The CharConverter will convert the given text into a Character object. It simply takes the first char of the text and returns this as Character.

Author:
Andreas Mecky andreasmecky@yahoo.de, Terry Dye terrydye@yahoo.com

Constructor Summary
CharConverter()
           
 
Method Summary
 java.lang.Object getObject(java.lang.String value)
          Converts the given String value to an object that can be passed to a set method using reflection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharConverter

public CharConverter()
Method Detail

getObject

public java.lang.Object getObject(java.lang.String value)
Description copied from interface: TypeConverter
Converts the given String value to an object that can be passed to a set method using reflection
Specified by:
getObject in interface TypeConverter
Following copied from interface: org.jconfig.utils.editors.TypeConverter
Parameters:
value - the value as String
Returns:
the object


Copyright © 2001-2003 Andreas Mecky, Terry Dye. All Rights Reserved.