org.objectweb.jac.aspects.persistence
Class RectangleStringConverter

java.lang.Object
  |
  +--org.objectweb.jac.aspects.persistence.RectangleStringConverter
All Implemented Interfaces:
StringConverter

public class RectangleStringConverter
extends Object
implements StringConverter

String converter for java.awt.Rectangle.


Constructor Summary
RectangleStringConverter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RectangleStringConverter

public RectangleStringConverter()
Method Detail

objectToString

public String objectToString(Object obj)
Description copied from interface: StringConverter
Returns a string representation of a field so that it can be stored.

Specified by:
objectToString in interface StringConverter
Parameters:
obj - a persistent or primitive object
Returns:
a ready to store string representation

stringToObject

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

Specified by:
stringToObject in interface StringConverter
Parameters:
str - the value in a string format
Returns:
an object value deduced from the string representation and from the needed type