public class BooleanValueConverter extends java.lang.Object implements ValueConverter
Boolean attributes to and from their
String representation.| Constructor and Description |
|---|
BooleanValueConverter()
Creates a new value converter.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toAttributeValue(java.lang.Object o)
Converts the attribute to a string.
|
java.lang.Object |
toPropertyValue(java.lang.String s)
Converts a string to a
Boolean. |
public BooleanValueConverter()
public java.lang.String toAttributeValue(java.lang.Object o)
toAttributeValue in interface ValueConvertero - the attribute (Boolean expected).Boolean value.public java.lang.Object toPropertyValue(java.lang.String s)
Boolean.toPropertyValue in interface ValueConverters - the string.Boolean.