org.debellor.rseslib
Class DataConverter

java.lang.Object
  extended by org.debellor.rseslib.DataConverter

public class DataConverter
extends java.lang.Object

Conversion of data structures between Rseslib and Debellor representation.

Author:
Marcin Wojnarski

Constructor Summary
DataConverter()
           
 
Method Summary
static DataObject attrFromRseslibValue(double v, DataType attrType)
           
static rseslib.structure.data.DoubleDataObject doubledataFrom(Sample sample, Sample.SampleType type, rseslib.structure.attribute.Header header)
           
static rseslib.structure.attribute.Header headerFrom(Sample.SampleType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataConverter

public DataConverter()
Method Detail

headerFrom

public static rseslib.structure.attribute.Header headerFrom(Sample.SampleType type)
                                                     throws RseslibConversionException
Throws:
RseslibConversionException

doubledataFrom

public static rseslib.structure.data.DoubleDataObject doubledataFrom(Sample sample,
                                                                     Sample.SampleType type,
                                                                     rseslib.structure.attribute.Header header)
                                                              throws DataCastException
Throws:
DataCastException

attrFromRseslibValue

public static DataObject attrFromRseslibValue(double v,
                                              DataType attrType)
                                       throws DataException
Throws:
DataException