org.jfree.xml.attributehandlers

Class StringAttributeHandler

Implemented Interfaces:
AttributeHandler

public class StringAttributeHandler
extends java.lang.Object
implements AttributeHandler

A String attribute handler.

Constructor Summary

StringAttributeHandler()
Creates a new attribute handler.

Method Summary

String
toAttributeValue(Object o)
Converts the attribute to a string.
Object
toPropertyValue(String s)
Converts a copy of the string.

Constructor Details

StringAttributeHandler

public StringAttributeHandler()
Creates a new attribute handler.

Method Details

toAttributeValue

public String toAttributeValue(Object o)
Converts the attribute to a string.
Specified by:
toAttributeValue in interface AttributeHandler
Parameters:
o - the attribute (String expected).
Returns:
A string.

toPropertyValue

public Object toPropertyValue(String s)
Converts a copy of the string.
Specified by:
toPropertyValue in interface AttributeHandler
Parameters:
s - the string.
Returns:
a Short.