com.atlassian.confluence.json.jsonator
Class I18nJsonator
java.lang.Object
com.atlassian.confluence.json.jsonator.I18nJsonator
- All Implemented Interfaces:
- Jsonator<Message>
public class I18nJsonator
- extends Object
- implements Jsonator<Message>
A Jsonator for i18n Message objects.
It returns the i18ned string, if found and the message key otherwise.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
I18nJsonator
public I18nJsonator(I18NBean i18NBean)
convert
public Json convert(Message m)
- Description copied from interface:
Jsonator
- Creates a
Json
representation of a given object
- Specified by:
convert
in interface Jsonator<Message>
- Parameters:
m
- the object to be serialized
- Returns:
- Json JSON representation of the given object