org.eobjects.metamodel.convert
Class StringToBooleanConverter

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

public class StringToBooleanConverter
extends Object
implements TypeConverter<String,Boolean>

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

Author:
Kasper Sørensen, Ankit Kumar

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

StringToBooleanConverter

public StringToBooleanConverter()
Method Detail

toPhysicalValue

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

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

toVirtualValue

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

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


Copyright © 2007-2013. All Rights Reserved.