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.

  • Constructor Details

    • I18nJsonator

      public I18nJsonator(I18NBean i18NBean)
  • Method Details

    • 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