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