com.googlecode.sarasvati.env
Class CharacterAttributeConverter

java.lang.Object
  extended by com.googlecode.sarasvati.env.AbstractStringValueOfAttributeConverter
      extended by com.googlecode.sarasvati.env.CharacterAttributeConverter
All Implemented Interfaces:
AttributeConverter

public final class CharacterAttributeConverter
extends AbstractStringValueOfAttributeConverter

Attribute converter for String <--> Character

Author:
Paul Lorenz

Constructor Summary
CharacterAttributeConverter()
           
 
Method Summary
 Object stringToObject(String string, Class<?> object)
          Converts the given string to a Character
 
Methods inherited from class com.googlecode.sarasvati.env.AbstractStringValueOfAttributeConverter
objectToString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterAttributeConverter

public CharacterAttributeConverter()
Method Detail

stringToObject

public Object stringToObject(String string,
                             Class<?> object)
Converts the given string to a Character

Parameters:
string - The string to be converted into an object
object - The type to transform the string into
Returns:
The object produced from the string
See Also:
AttributeConverter.stringToObject(java.lang.String, java.lang.Class)