| java.lang.Object org.apache.commons.betwixt.strategy.ObjectStringConverter org.apache.commons.betwixt.strategy.ConvertUtilsObjectStringConverter
All known Subclasses: org.apache.commons.betwixt.strategy.DefaultObjectStringConverter,
ConvertUtilsObjectStringConverter | public class ConvertUtilsObjectStringConverter extends ObjectStringConverter (Code) | | String <-> object conversion strategy that delegates to ConvertUtils.
author: Robert Burrell Donkin since: 0.5 |
objectToString | public String objectToString(Object object, Class type, String flavour, Context context)(Code) | | Converts an object to a string representation using ConvertUtils.
Parameters: object - the object to be converted, possibly null Parameters: type - the property class of the object, not null Parameters: flavour - a string allow symantic differences in formatting to be communicated (ignored) Parameters: context - not null a String representation, not null |
stringToObject | public Object stringToObject(String value, Class type, String flavour, Context context)(Code) | | Converts an object to a string representation using ConvertUtils.
This implementation ignores null and empty string values (rather than converting them).
Parameters: value - the String to be converted, not null Parameters: type - the property class to be returned (if possible), not null Parameters: flavour - a string allow symantic differences in formatting to be communicated (ignored) Parameters: context - not null an Object converted from the String, not null |
Fields inherited from org.apache.commons.betwixt.strategy.ObjectStringConverter | final public static String FLAVOUR_OPTION_NAME(Code)(Java Doc)
|
Methods inherited from org.apache.commons.betwixt.strategy.ObjectStringConverter | public String objectToString(Object object, Class type, String flavour, Context context)(Code)(Java Doc) public String objectToString(Object object, Class type, Context context)(Code)(Java Doc) public Object stringToObject(String value, Class type, String flavour, Context context)(Code)(Java Doc) public Object stringToObject(String value, Class type, Context context)(Code)(Java Doc)
|
|
|