|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.abstractics.utils.converter.ConverterCharacter
Converts the given object into a String via the toString()
method and then returns the first character of the String.
Constructor Summary | |
ConverterCharacter()
|
Method Summary | |
java.lang.Object |
convert(java.lang.Object obj,
java.util.Locale locale)
Returns the first character of the toString() method. |
java.lang.Class |
getClassToConvertTo()
Returns java.lang.Character |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConverterCharacter()
Method Detail |
public java.lang.Class getClassToConvertTo()
java.lang.Character
getClassToConvertTo
in interface ObjectConverter
com.abstractics.xmlpanel.utils.stringtoobject.ObjectConverter#getClassToConvertTo()
public java.lang.Object convert(java.lang.Object obj, java.util.Locale locale) throws ObjectConverterException
toString()
method.
convert
in interface ObjectConverter
obj
- Object to be converted. Guaranteed not to be null and not to
already be an instanceof the Class returned by
ObjectConverter.getClassToConvertTo()
. Those conditions are checked
before the converter is even called.locale
- The locale that is asking for the conversion. This may or may
not be necessary for the conversion.
ObjectConverter.getClassToConvertTo()
ObjectConverterException
- Throw this exception if the string cannot be converted, for
whatever reason.com.abstractics.xmlpanel.utils.stringtoobject.ObjectConverter#convert(Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |