org.eobjects.metamodel.convert
Interface TypeConverter<P,V>

Type Parameters:
P - the physical type of value
V - the virtual type of value
All Known Implementing Classes:
StringToBooleanConverter, StringToDateConverter, StringToDoubleConverter, StringToIntegerConverter

public interface TypeConverter<P,V>

Defines an interface for converting values from and to their physical materializations and their virtual representations.

Author:
Kasper Sørensen, Ankit Kumar
See Also:
ConvertedDataContext

Method Summary
 P toPhysicalValue(V virtualValue)
          Converts a virtual representation of a value into it's physical value.
 V toVirtualValue(P physicalValue)
          Converts a physical value into it's virtual representation.
 

Method Detail

toPhysicalValue

P toPhysicalValue(V virtualValue)
Converts a virtual representation of a value into it's physical value.

Parameters:
virtualValue - the virtual representation
Returns:
the physical value

toVirtualValue

V toVirtualValue(P physicalValue)
Converts a physical value into it's virtual representation.

Parameters:
physicalValue - the physical value
Returns:
the virtual representation


Copyright © 2007-2013. All Rights Reserved.