org.jfree.xml.attributehandlers
Class StringAttributeHandler

java.lang.Object
  extended by org.jfree.xml.attributehandlers.StringAttributeHandler
All 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
 java.lang.String toAttributeValue(java.lang.Object o)
          Converts the attribute to a string.
 java.lang.Object toPropertyValue(java.lang.String s)
          Converts a copy of the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringAttributeHandler

public StringAttributeHandler()
Creates a new attribute handler.

Method Detail

toAttributeValue

public java.lang.String toAttributeValue(java.lang.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 java.lang.Object toPropertyValue(java.lang.String s)
Converts a copy of the string.

Specified by:
toPropertyValue in interface AttributeHandler
Parameters:
s - the string.
Returns:
a Short.