JIDE 3.5.15

com.jidesoft.converter
Interface ObjectConverter

All Known Implementing Classes:
ArrayConverter, BigDecimalConverter, BooleanConverter, ByteConverter, CalendarConverter, ColorConverter, CompareToConverter, CurrencyConverter, DateConverter, DefaultArrayConverter, DefaultObjectConverter, DimensionConverter, DoubleConverter, EnumConverter, FileConverter, FilterFactoryConverter, FloatConverter, FontConverter, FontNameConverter, HexColorConverter, InsetsConverter, IntegerConverter, LongConverter, MonthConverter, MonthNameConverter, MultilineStringConverter, MultipleEnumConverter, NaturalNumberConverter, NumberConverter, NumberFormatConverter, PasswordConverter, PercentConverter, PointConverter, QuarterNameConverter, RectangleConverter, RgbColorConverter, ShortConverter, StringArrayConverter, StringConverter, YearNameConverter

public interface ObjectConverter

An interface that can convert a object to a String and convert from String to object.


Method Summary
 Object fromString(String string, ConverterContext context)
          Converts from String to an object.
 boolean supportFromString(String string, ConverterContext context)
          If it supports fromString.
 boolean supportToString(Object object, ConverterContext context)
          If it supports toString method.
 String toString(Object object, ConverterContext context)
          Converts from object to String based on current locale.
 

Method Detail

toString

String toString(Object object,
                ConverterContext context)
Converts from object to String based on current locale.

Parameters:
object - object to be converted
context - converter context to be used
Returns:
the String

supportToString

boolean supportToString(Object object,
                        ConverterContext context)
If it supports toString method.

Parameters:
object - object to be converted
context - converter context to be used
Returns:
true if supports toString

fromString

Object fromString(String string,
                  ConverterContext context)
Converts from String to an object.

Parameters:
string - the string
context - context to be converted
Returns:
the object converted from string

supportFromString

boolean supportFromString(String string,
                          ConverterContext context)
If it supports fromString.

Parameters:
string - the string
context - context to be converted
Returns:
true if it supports

JIDE 3.5.15