org.springframework.binding.convert.converters
Class StringToBoolean

java.lang.Object
  extended by org.springframework.binding.convert.converters.StringToObject
      extended by org.springframework.binding.convert.converters.StringToBoolean
All Implemented Interfaces:
Converter, TwoWayConverter

public class StringToBoolean
extends StringToObject

Converts a textual representation of a boolean object to a Boolean instance.

Author:
Keith Donald

Constructor Summary
StringToBoolean()
          Create a text boolean converter that parses standard true and false strings.
StringToBoolean(String trueString, String falseString)
          Create a text to boolean converter that takes specific string representations of true and false into account.
 
Method Summary
 
Methods inherited from class org.springframework.binding.convert.converters.StringToObject
convertSourceToTargetClass, convertTargetToSourceClass, getSourceClass, getTargetClass
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringToBoolean

public StringToBoolean()
Create a text boolean converter that parses standard true and false strings.


StringToBoolean

public StringToBoolean(String trueString,
                       String falseString)
Create a text to boolean converter that takes specific string representations of true and false into account.

Parameters:
trueString - special true string to use
falseString - special false string to use