public class

ConvertUtilsObjectStringConverter

extends ObjectStringConverter
java.lang.Object
   ↳ org.apache.commons.betwixt.strategy.ObjectStringConverter
     ↳ org.apache.commons.betwixt.strategy.ConvertUtilsObjectStringConverter
Known Direct Subclasses

Class Overview

String <-> object conversion strategy that delegates to ConvertUtils.

Summary

[Expand]
Inherited Constants
From class org.apache.commons.betwixt.strategy.ObjectStringConverter
Public Constructors
ConvertUtilsObjectStringConverter()
Public Methods
String objectToString(Object object, Class type, String flavour, Context context)
This method is deprecated. 0.7 use objectToString(Object, Class, Context) instead. The preferred way to support flavours is by setting the org.apache.commons.betwixt.FLAVOUR option. This can then be retrieved by calling getOptions()
Object stringToObject(String value, Class type, String flavour, Context context)
This method is deprecated. 0.7 use stringToObject(String, Class, Context) instead. The preferred way to support flavours is by setting the org.apache.commons.betwixt.FLAVOUR option. This can then be retrieved by calling getOptions()
[Expand]
Inherited Methods
From class org.apache.commons.betwixt.strategy.ObjectStringConverter
From class java.lang.Object

Public Constructors

public ConvertUtilsObjectStringConverter ()

Public Methods

public String objectToString (Object object, Class type, String flavour, Context context)

This method is deprecated.
0.7 use objectToString(Object, Class, Context) instead. The preferred way to support flavours is by setting the org.apache.commons.betwixt.FLAVOUR option. This can then be retrieved by calling getOptions()

Converts an object to a string representation using ConvertUtils.

Parameters
object the object to be converted, possibly null
type the property class of the object, not null
flavour a string allow symantic differences in formatting to be communicated (ignored)
context not null
Returns
  • a String representation, not null

public Object stringToObject (String value, Class type, String flavour, Context context)

This method is deprecated.
0.7 use stringToObject(String, Class, Context) instead. The preferred way to support flavours is by setting the org.apache.commons.betwixt.FLAVOUR option. This can then be retrieved by calling getOptions()

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
type the property class to be returned (if possible), not null
flavour a string allow symantic differences in formatting to be communicated (ignored)
context not null
Returns
  • an Object converted from the String, not null