AttributeHandlerpublic class FloatAttributeHandler extends java.lang.Object implements AttributeHandler
Float attributes to and from an appropriate
String representation.| Constructor | Description |
|---|---|
FloatAttributeHandler() |
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
Float. |
public FloatAttributeHandler()
public java.lang.String toAttributeValue(java.lang.Object o)
toAttributeValue in interface AttributeHandlero - the attribute (Float expected).Float value.public java.lang.Object toPropertyValue(java.lang.String s)
Float.toPropertyValue in interface AttributeHandlers - the string.Float.