|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.coerce.StringToBooleanConverter
public final class StringToBooleanConverter
Converts a String to a Boolean. Strings that do contain non-whitespace are considered true. As a special case, the string "false" evaluates to false (this allow boolean component parameters to be bound to "false" instead of "ognl:false" and still operate as expected).
Constructor Summary | |
---|---|
StringToBooleanConverter()
|
Method Summary | |
---|---|
java.lang.Object |
convertValue(java.lang.Object value)
Converts the value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringToBooleanConverter()
Method Detail |
---|
public java.lang.Object convertValue(java.lang.Object value)
TypeConverter
convertValue
in interface TypeConverter
value
- the value to be converted (which may be null)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |