Package org.openxava.formatters
Interface IMetaPropertyFormatter
- All Known Implementing Classes:
BooleanListFormatter,EnumListFormatter,MoneyFormatter
public interface IMetaPropertyFormatter
For convert to String (used in HTML page) to Object (used in java side),
and vice versa using MetaProperty info.
It's like IFormatter but the format and parse method have a MetaProperty argument, so you can use label, size, scale and other MetaProperty data to do the formatting.
- Since:
- 5.9
- Author:
- Javier Paniza
-
Method Summary
Modifier and TypeMethodDescriptionformat(javax.servlet.http.HttpServletRequest request, MetaProperty metaProperty, Object object) From a object return aStringto render in HTML.parse(javax.servlet.http.HttpServletRequest request, MetaProperty metaProperty, String string) From aStringobtained from a HTTP request return a java object.
-
Method Details
-
format
String format(javax.servlet.http.HttpServletRequest request, MetaProperty metaProperty, Object object) throws Exception From a object return aStringto render in HTML.- Throws:
Exception
-
parse
Object parse(javax.servlet.http.HttpServletRequest request, MetaProperty metaProperty, String string) throws Exception From aStringobtained from a HTTP request return a java object.- Throws:
Exception
-