com.googlecode.sarasvati.env
Class BooleanAttributeConverter
java.lang.Object
com.googlecode.sarasvati.env.AbstractStringValueOfAttributeConverter
com.googlecode.sarasvati.env.BooleanAttributeConverter
- All Implemented Interfaces:
- AttributeConverter
public final class BooleanAttributeConverter
- extends AbstractStringValueOfAttributeConverter
Attribute converter for String <--> Boolean
- Author:
- Paul Lorenz
BooleanAttributeConverter
public BooleanAttributeConverter()
stringToObject
public Object stringToObject(String string,
Class<?> object)
- Converts the given string to a Boolean
- Parameters:
string
- The string to be converted into an objectobject
- The type to transform the string into
- Returns:
- The object produced from the string
- See Also:
AttributeConverter.stringToObject(java.lang.String, java.lang.Class)