com.googlecode.sarasvati.env
Class LongAttributeConverter

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

public final class LongAttributeConverter
extends AbstractStringValueOfAttributeConverter

Attribute converter for String <--> Long

Author:
Paul Lorenz

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

LongAttributeConverter

public LongAttributeConverter()
Method Detail

stringToObject

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

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)