com.googlecode.sarasvati.env
Class ShortAttributeConverter

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

public final class ShortAttributeConverter
extends AbstractStringValueOfAttributeConverter

Attribute converter for String <--> Short

Author:
Paul Lorenz

Constructor Summary
ShortAttributeConverter()
           
 
Method Summary
 Object stringToObject(String string, Class<?> object)
          Converts the given string to a Short
 
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

ShortAttributeConverter

public ShortAttributeConverter()
Method Detail

stringToObject

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

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)