org.molgenis.omx.converters
Class TupleToCategoricalValueConverter

java.lang.Object
  extended by org.molgenis.omx.converters.TupleToCategoricalValueConverter
All Implemented Interfaces:
TupleToValueConverter<CategoricalValue,String>

public class TupleToCategoricalValueConverter
extends Object
implements TupleToValueConverter<CategoricalValue,String>


Constructor Summary
TupleToCategoricalValueConverter(Database database)
           
 
Method Summary
 CategoricalValue fromTuple(Tuple tuple, String colName, ObservableFeature feature)
          Converts a tuple column value to a value entity
 Cell<String> toCell(Value value)
          Returns the java type value contained by a value entity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleToCategoricalValueConverter

public TupleToCategoricalValueConverter(Database database)
Method Detail

fromTuple

public CategoricalValue fromTuple(Tuple tuple,
                                  String colName,
                                  ObservableFeature feature)
                           throws ValueConverterException
Description copied from interface: TupleToValueConverter
Converts a tuple column value to a value entity

Specified by:
fromTuple in interface TupleToValueConverter<CategoricalValue,String>
Throws:
ValueConverterException

toCell

public Cell<String> toCell(Value value)
Description copied from interface: TupleToValueConverter
Returns the java type value contained by a value entity

Specified by:
toCell in interface TupleToValueConverter<CategoricalValue,String>
Returns:


Copyright © 2013. All Rights Reserved.