org.vizzini.util
Class StringConverter

java.lang.Object
  extended by org.vizzini.util.StringConverter

public class StringConverter
extends Object

Provides conversions from String s to a given type, and from a given Object to a String.

Since:
v0.2
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
static Class[] STRING_CLASS_ARRAY
          String class array.
 
Method Summary
 String convert(Object value)
          Convert the given object to a String.
 Object convert(String value, Class parameterType)
          Convert the given string to the given type.
static StringConverter getInstance()
          Return the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_CLASS_ARRAY

public static final Class[] STRING_CLASS_ARRAY
String class array.

Method Detail

getInstance

public static final StringConverter getInstance()
Return the singleton instance.

Since:
v0.2

convert

public String convert(Object value)
Convert the given object to a String.

Since:
v0.2

convert

public Object convert(String value,
                      Class parameterType)
Convert the given string to the given type.

Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02