com.googlecode.sarasvati.env
Class IntegerAttributeConverter

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

public final class IntegerAttributeConverter
extends AbstractStringValueOfAttributeConverter

Attribute converter for String <--> Integer

Author:
Paul Lorenz

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

IntegerAttributeConverter

public IntegerAttributeConverter()
Method Detail

stringToObject

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

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)