Package org.openxava.formatters
Class MoneyFormatter
- java.lang.Object
-
- org.openxava.formatters.MoneyFormatter
-
- All Implemented Interfaces:
IMetaPropertyFormatter
public class MoneyFormatter extends java.lang.Object implements IMetaPropertyFormatter
For MONEY and DINERO stereotypes.- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description MoneyFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(javax.servlet.http.HttpServletRequest request, MetaProperty metaProperty, java.lang.Object object)
From a object return aString
to render in HTML.java.lang.Object
parse(javax.servlet.http.HttpServletRequest request, MetaProperty metaProperty, java.lang.String string)
From aString
obtained from a HTTP request return a java object.
-
-
-
Method Detail
-
format
public java.lang.String format(javax.servlet.http.HttpServletRequest request, MetaProperty metaProperty, java.lang.Object object) throws java.lang.Exception
Description copied from interface:IMetaPropertyFormatter
From a object return aString
to render in HTML.- Specified by:
format
in interfaceIMetaPropertyFormatter
- Throws:
java.lang.Exception
-
parse
public java.lang.Object parse(javax.servlet.http.HttpServletRequest request, MetaProperty metaProperty, java.lang.String string) throws java.lang.Exception
Description copied from interface:IMetaPropertyFormatter
From aString
obtained from a HTTP request return a java object.- Specified by:
parse
in interfaceIMetaPropertyFormatter
- Throws:
java.lang.Exception
-
-