org.jfree.xml.attributehandlers

Class LongAttributeHandler

public class LongAttributeHandler extends Object implements AttributeHandler

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

Constructor Detail

LongAttributeHandler

public LongAttributeHandler()
Creates a new attribute handler.

Method Detail

toAttributeValue

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

Parameters: o the attribute (Long expected).

Returns: A string representing the Long value.

toPropertyValue

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

Parameters: s the string.

Returns: a Long.