|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.common.converter.SimpleListConverter
public class SimpleListConverter
Converter for List
objects.
The format consists of one String
representing the delimiter for the list items.
It is thread-safe.
Constructor Summary | |
---|---|
protected |
SimpleListConverter(SimpleTypeConverterConfiguration configuration)
Constructs a new SimpleListConverter . |
Method Summary | |
---|---|
static SimpleListConverter |
create(SimpleTypeConverterConfiguration configuration)
Creates a SimpleListConverter . |
Object |
fromString(String value)
Converts the given String object into an object with the simple data type this converter is
intended for. |
protected String[] |
getDefaultFormat()
Returns the default format which is used when no format is given. |
protected Class<? extends Collection> |
getImplementor(Class<?> aCollectionInterface)
Returns a class implementing the given interface. |
String |
toString(Object value)
Converts the given value to a String object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SimpleListConverter(SimpleTypeConverterConfiguration configuration)
SimpleListConverter
.getDefaultFormat()
) is used.
configuration
- the configuration
ConversionException
- if the given format is not valid.Method Detail |
---|
public static SimpleListConverter create(SimpleTypeConverterConfiguration configuration)
SimpleListConverter
.getDefaultFormat()
) is used.
configuration
- the configuration
ConversionException
- if the given format is not valid.public final Object fromString(String value)
String
object into an object with the simple data type this converter is
intended for.
fromString
in interface SimpleTypeConverter
value
- the String
object to convert
public final String toString(Object value)
String
object.
toString
in interface SimpleTypeConverter
value
- the value to convert
protected String[] getDefaultFormat()
protected Class<? extends Collection> getImplementor(Class<?> aCollectionInterface)
aCollectionInterface
- a Collection
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |