uk.org.ogsadai.tuple
Class TupleTypesConverter

java.lang.Object
  extended by uk.org.ogsadai.tuple.TupleTypesConverter

public class TupleTypesConverter
extends java.lang.Object

Class providing static methods for converting tuple types.

Author:
The OGSA-DAI Project Team

Constructor Summary
TupleTypesConverter()
           
 
Method Summary
static java.lang.Object convertFromString(java.lang.String data, int dataType)
          Converts String object to an object of requested data type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleTypesConverter

public TupleTypesConverter()
Method Detail

convertFromString

public static java.lang.Object convertFromString(java.lang.String data,
                                                 int dataType)
                                          throws UnsupportedTupleTypeConversion,
                                                 TupleTypeConversionException
Converts String object to an object of requested data type.

Parameters:
data - String data.
dataType - Tuple data type.
Returns:
Converted object reference.
Throws:
UnsupportedTupleTypeConversion - When requested conversion is unsupported.
TupleTypeConversionException - When there was a problem when performing conversion.