org.datanucleus.store.types
Class RectangleStringConverter

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

public class RectangleStringConverter
extends java.lang.Object
implements ObjectStringConverter

Class to handle the conversion between java.awt.Rectangle and a String form. The String form is

(x,y,width,height)


Field Summary
 
Fields inherited from interface org.datanucleus.store.types.ObjectStringConverter
LOCALISER
 
Constructor Summary
RectangleStringConverter()
           
 
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

RectangleStringConverter

public RectangleStringConverter()
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 © 2010. All Rights Reserved.