Package org.openxava.formatters
Class BooleanFormatter
- java.lang.Object
-
- org.openxava.formatters.BooleanFormatter
-
- All Implemented Interfaces:
IFormatter
public class BooleanFormatter extends java.lang.Object implements IFormatter
- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description BooleanFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(javax.servlet.http.HttpServletRequest request, java.lang.Object booleanValue)
From a object return aString
to render in HTML.boolean
isNullAsFalse()
java.lang.Object
parse(javax.servlet.http.HttpServletRequest request, java.lang.String string)
From aString
obtained from a HTTP request return a java object.void
setNullAsFalse(boolean nullAsFalse)
-
-
-
Method Detail
-
format
public java.lang.String format(javax.servlet.http.HttpServletRequest request, java.lang.Object booleanValue)
Description copied from interface:IFormatter
From a object return aString
to render in HTML.- Specified by:
format
in interfaceIFormatter
-
parse
public java.lang.Object parse(javax.servlet.http.HttpServletRequest request, java.lang.String string)
Description copied from interface:IFormatter
From aString
obtained from a HTTP request return a java object.- Specified by:
parse
in interfaceIFormatter
-
isNullAsFalse
public boolean isNullAsFalse()
-
setNullAsFalse
public void setNullAsFalse(boolean nullAsFalse)
-
-