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