org.jreform.types
Class StringType

java.lang.Object
  extended by org.jreform.types.StringType
All Implemented Interfaces:
InputDataType<String>

public final class StringType
extends Object
implements InputDataType<String>


Field Summary
private static StringType type
           
 
Constructor Summary
private StringType()
           
 
Method Summary
 Class<String> getInputDataClass()
          Returns class of input's data.
 String parseValue(String value)
          Parses the specified string into an object of this data type's class.
static InputDataType<String> stringType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

private static final StringType type
Constructor Detail

StringType

private StringType()
Method Detail

parseValue

public String parseValue(String value)
Description copied from interface: InputDataType
Parses the specified string into an object of this data type's class.

Specified by:
parseValue in interface InputDataType<String>

getInputDataClass

public Class<String> getInputDataClass()
Description copied from interface: InputDataType
Returns class of input's data.

Specified by:
getInputDataClass in interface InputDataType<String>

toString

public String toString()
Overrides:
toString in class Object

stringType

public static InputDataType<String> stringType()


Copyright © 2007-2008 jReform