com.googlecode.sarasvati.env
Class DateAttributeConverter

java.lang.Object
  extended by com.googlecode.sarasvati.env.DateAttributeConverter
All Implemented Interfaces:
AttributeConverter

public class DateAttributeConverter
extends Object
implements AttributeConverter


Constructor Summary
DateAttributeConverter()
           
 
Method Summary
 String objectToString(Object object)
          Converts the given object into string format.
 Object stringToObject(String string, Class<?> type)
          Converts the given string into an object of the given type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateAttributeConverter

public DateAttributeConverter()
Method Detail

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 object
type - The type to transform the string into
Returns:
The object produced from the string