net.sf.spif.persistence
Class Converter

java.lang.Object
  |
  +--net.sf.spif.persistence.Converter

public class Converter
extends java.lang.Object

Ignore - public for testing only.

A class which is able to automatically convert from custom classes and strings.

This class also manages its own instances.

Version:
$Id: Converter.java,v 1.3 2003/02/13 22:13:44 bratseth Exp $
Author:
Jon S Bratseth

Method Summary
 java.lang.Object convertFromString(java.lang.String string)
           
 java.lang.String convertToString(java.lang.Object object)
           
static Converter get(java.lang.Class type)
          Returns a converter of a certain class, or null if we are not able to convert this to and from a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static Converter get(java.lang.Class type)
Returns a converter of a certain class, or null if we are not able to convert this to and from a string


convertToString

public java.lang.String convertToString(java.lang.Object object)

convertFromString

public java.lang.Object convertFromString(java.lang.String string)


Spif 1.01 (2003-04-03). http://spif.sf.net