public class StringToBoolean extends StringToObject
Boolean
instance.Constructor and Description |
---|
StringToBoolean()
Create a text boolean converter that parses standard true and false strings.
|
StringToBoolean(java.lang.String trueString,
java.lang.String falseString)
Create a text to boolean converter that takes specific string representations of true and false into account.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
toObject(java.lang.String string,
java.lang.Class targetClass) |
protected java.lang.String |
toString(java.lang.Object object) |
convertSourceToTargetClass, convertTargetToSourceClass, getSourceClass, getTargetClass
public StringToBoolean()
public StringToBoolean(java.lang.String trueString, java.lang.String falseString)
trueString
- special true string to usefalseString
- special false string to useprotected java.lang.Object toObject(java.lang.String string, java.lang.Class targetClass) throws java.lang.Exception
toObject
in class StringToObject
java.lang.Exception
protected java.lang.String toString(java.lang.Object object) throws java.lang.Exception
toString
in class StringToObject
java.lang.Exception