jcolibri.connector.plaintextutils
Class PlainTextTypeConverter

java.lang.Object
  extended by jcolibri.connector.plaintextutils.PlainTextTypeConverter

public class PlainTextTypeConverter
extends java.lang.Object

Converts data types between its textual representation and Java types. By default it only manages a few data types:

Even so, developers can store any class in the text file if the class implements the jcolibri.connectors.TypeAdaptor interface.

Version:
2.0
Author:
Juan Antonio Recio García
See Also:
TypeAdaptor

Constructor Summary
PlainTextTypeConverter()
           
 
Method Summary
static java.lang.Object convert(java.lang.String data, java.lang.Class type)
          Coverts a string representation of the data in an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextTypeConverter

public PlainTextTypeConverter()
Method Detail

convert

public static java.lang.Object convert(java.lang.String data,
                                       java.lang.Class type)
Coverts a string representation of the data in an object.

Parameters:
data - string representation of the data.
type - type of the data.
Returns:
the object trepresented by data and type.

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es