JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.persistence
Interface StringConverter

All Known Implementing Classes:
DateStringConverter, DimensionStringConverter, PointStringConverter, RectangleStringConverter, URLStringConverter

public interface StringConverter

The *StringConverter interface that converts Objects into String for stocking, and String into Objects


Method Summary
 String objectToString(Object obj)
          Returns a string representation of a field so that it can be stored.
 Object stringToObject(String str)
          Returns an object from a string, depending on the needed type.
 

Method Detail

objectToString

public String objectToString(Object obj)
Returns a string representation of a field so that it can be stored.

Parameters:
obj - a persistent or primitive object
Returns:
a ready to store string representation

stringToObject

public Object stringToObject(String str)
Returns an object from a string, depending on the needed type.

Parameters:
str - the value in a string format
Returns:
an object value deduced from the string representation and from the needed type

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli