org.eobjects.metamodel.convert
Class StringToDoubleConverter

java.lang.Object
  extended by org.eobjects.metamodel.convert.StringToDoubleConverter
All Implemented Interfaces:
TypeConverter<String,Double>

public class StringToDoubleConverter
extends Object
implements TypeConverter<String,Double>

A TypeConverter that converts String values (on the physical layer) to interpreted Doubles.

Author:
Kasper Sørensen, Ankit Kumar

Constructor Summary
StringToDoubleConverter()
           
 
Method Summary
 String toPhysicalValue(Double virtualValue)
          Converts a virtual representation of a value into it's physical value.
 Double toVirtualValue(String physicalValue)
          Converts a physical value into it's virtual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringToDoubleConverter

public StringToDoubleConverter()
Method Detail

toPhysicalValue

public String toPhysicalValue(Double virtualValue)
Converts a virtual representation of a value into it's physical value.

Specified by:
toPhysicalValue in interface TypeConverter<String,Double>
Parameters:
virtualValue - the virtual representation
Returns:
the physical value

toVirtualValue

public Double toVirtualValue(String physicalValue)
Converts a physical value into it's virtual representation.

Specified by:
toVirtualValue in interface TypeConverter<String,Double>
Parameters:
physicalValue - the physical value
Returns:
the virtual representation


Copyright © 2007-2013. All Rights Reserved.