org.eobjects.metamodel.convert
Class StringToIntegerConverter

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

public class StringToIntegerConverter
extends Object
implements TypeConverter<String,Integer>

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

Author:
Kasper Sørensen, Ankit Kumar

Constructor Summary
StringToIntegerConverter()
           
 
Method Summary
 String toPhysicalValue(Integer virtualValue)
          Converts a virtual representation of a value into it's physical value.
 Integer 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

StringToIntegerConverter

public StringToIntegerConverter()
Method Detail

toPhysicalValue

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

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

toVirtualValue

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

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


Copyright © 2007-2013. All Rights Reserved.