org.jfree.xml.attributehandlers

Class IntegerAttributeHandler

public class IntegerAttributeHandler extends Object implements AttributeHandler

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

Constructor Detail

IntegerAttributeHandler

public IntegerAttributeHandler()
Creates a new attribute handler.

Method Detail

toAttributeValue

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

Parameters: o the attribute (Integer expected).

Returns: A string representing the integer value.

toPropertyValue

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

Parameters: s the string.

Returns: a Integer.