org.eobjects.metamodel.convert
Class StringToDoubleConverter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringToDoubleConverter
public StringToDoubleConverter()
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.