com.googlecode.sarasvati.env
Class DateAttributeConverter
java.lang.Object
com.googlecode.sarasvati.env.DateAttributeConverter
- All Implemented Interfaces:
- AttributeConverter
public class DateAttributeConverter
- extends Object
- implements AttributeConverter
DateAttributeConverter
public DateAttributeConverter()
objectToString
public String objectToString(Object object)
- Description copied from interface:
AttributeConverter
- Converts the given object into string format.
- Specified by:
objectToString
in interface AttributeConverter
- Parameters:
object
- The object to converter
- Returns:
- The object in string format
stringToObject
public Object stringToObject(String string,
Class<?> type)
- Description copied from interface:
AttributeConverter
- Converts the given string into an object of the given type.
- Specified by:
stringToObject
in interface AttributeConverter
- Parameters:
string
- The string to be converted into an objecttype
- The type to transform the string into
- Returns:
- The object produced from the string