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