org.objectweb.jac.aspects.persistence
Class ColorStringConverter

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

public class ColorStringConverter
extends Object
implements StringConverter

String converter for java.awt.Color.


Constructor Summary
ColorStringConverter()
           
 
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

ColorStringConverter

public ColorStringConverter()
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