public class StringToBooleanConverter extends Object implements TypeConverter<String,Boolean>
TypeConverter
that converts String values (on the physical layer)
to interpreted Booleans.Constructor and Description |
---|
StringToBooleanConverter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public String toPhysicalValue(Boolean virtualValue)
toPhysicalValue
in interface TypeConverter<String,Boolean>
virtualValue
- the virtual representationpublic Boolean toVirtualValue(String physicalValue)
toVirtualValue
in interface TypeConverter<String,Boolean>
physicalValue
- the physical valueCopyright © 2007–2014 The Apache Software Foundation. All rights reserved.