org.jfree.xml.attributehandlers

Class ShortAttributeHandler

public class ShortAttributeHandler extends Object implements AttributeHandler

A class that handles the conversion of Short attributes to and from an appropriate String representation.
Constructor Summary
ShortAttributeHandler()
Creates a new attribute handler.
Method Summary
StringtoAttributeValue(Object o)
Converts the attribute to a string.
ObjecttoPropertyValue(String s)
Converts a string to a Short.

Constructor Detail

ShortAttributeHandler

public ShortAttributeHandler()
Creates a new attribute handler.

Method Detail

toAttributeValue

public String toAttributeValue(Object o)
Converts the attribute to a string.

Parameters: o the attribute (Short expected).

Returns: A string representing the Short value.

toPropertyValue

public Object toPropertyValue(String s)
Converts a string to a Short.

Parameters: s the string.

Returns: a Short.