com.atlassian.confluence.json.jsonator
Class I18nJsonator

java.lang.Object
  extended by 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.


Constructor Summary
I18nJsonator(I18NBean i18NBean)
           
 
Method Summary
 Json convert(Message m)
          Creates a Json representation of a given object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18nJsonator

public I18nJsonator(I18NBean i18NBean)
Method Detail

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


Copyright © 2003-2011 Atlassian. All Rights Reserved.