public class BooleanAttributeHandler extends java.lang.Object implements AttributeHandler
Boolean attributes to and from their
String representation.| Constructor and Description |
|---|
BooleanAttributeHandler()
Creates a new attribute handler.
|
| 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 BooleanAttributeHandler()
public java.lang.String toAttributeValue(java.lang.Object o)
toAttributeValue in interface AttributeHandlero - the attribute (Boolean expected).Boolean value.public java.lang.Object toPropertyValue(java.lang.String s)
Boolean.toPropertyValue in interface AttributeHandlers - the string.Boolean.