public static final class ConverterFactory.StringConverter extends Object implements BindingConverter<Object,String>
Modifier and Type | Method and Description |
---|---|
Object |
sourceValue(String targetValue)
Parses the given String encoding and returns the parsed object.
|
String |
targetValue(Object sourceValue)
Formats the source value and returns a String representation.
|
public String targetValue(Object sourceValue)
targetValue
in interface BindingConverter<Object,String>
sourceValue
- the source valuepublic Object sourceValue(String targetValue)
ParseException
s are re-thrown as IllegalArgumentException.sourceValue
in interface BindingConverter<Object,String>
targetValue
- the value to be converted and set as new subject valueCopyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.