org.datanucleus.store.types
Class ColorStringConverter

java.lang.Object
  extended by org.datanucleus.store.types.ColorStringConverter
All Implemented Interfaces:
ObjectStringConverter

public class ColorStringConverter
extends java.lang.Object
implements ObjectStringConverter

Class to handle the conversion between java.awt.Color (RGBA) and a String form.


Field Summary
 
Fields inherited from interface org.datanucleus.store.types.ObjectStringConverter
LOCALISER
 
Constructor Summary
ColorStringConverter()
           
 
Method Summary
 java.lang.Object toObject(java.lang.String str)
          Method to convert from String back to the object.
 java.lang.String toString(java.lang.Object obj)
          Method to convert from the object to its String form
 
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

toObject

public java.lang.Object toObject(java.lang.String str)
Description copied from interface: ObjectStringConverter
Method to convert from String back to the object.

Specified by:
toObject in interface ObjectStringConverter
Parameters:
str - The string
Returns:
The object

toString

public java.lang.String toString(java.lang.Object obj)
Description copied from interface: ObjectStringConverter
Method to convert from the object to its String form

Specified by:
toString in interface ObjectStringConverter
Parameters:
obj - The object
Returns:
String form


Copyright © 2011. All Rights Reserved.