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