Class L10NMessage

java.lang.Object
com.easydesk.localization.L10NMessage
All Implemented Interfaces:
LocalizableMessage, Serializable

public class L10NMessage extends Object implements LocalizableMessage, Serializable
DOCUMENT ME!
Version:
$id: L10NMessage.java $Revision$, 11-29-21 8:30:13 AM KST
Author:
YounghoCho
See Also:
  • Constructor Details

    • L10NMessage

      public L10NMessage(LocalizableKey theKey)
      Constructor always needs the L10N key for creation.
      Parameters:
      theKey -
    • L10NMessage

      public L10NMessage(LocalizableKey theKey, Object... theParameters)
      Constructor with parameters. theParameters is an array of objects and may contain Exceptions and L10NInstances.
      Parameters:
      theKey -
      theParameters -
  • Method Details

    • getL10NKey

      public LocalizableKey getL10NKey()
      DOCUMENT ME!
      Specified by:
      getL10NKey in interface LocalizableMessage
      Returns:
      DOCUMENT ME!
    • getParameters

      public Object[] getParameters()
      Specified by:
      getParameters in interface LocalizableMessage
      Returns:
      L10N Parameters
    • setParameters

      public void setParameters(Object[] parameters)
      Parameters:
      parameters - array
    • toString

      public String toString()
      json representation string
      Overrides:
      toString in class Object
      Returns:
      json String
    • toJSONObject

      public org.json.JSONObject toJSONObject()
      print as json name1: value1, name2: value2, . . .
      Specified by:
      toJSONObject in interface LocalizableMessage
      Returns:
      json type property string
    • getL10NMessage

      public static final L10NMessage getL10NMessage(LocalizableKey enuKey, Object... param)
      utility method
      Parameters:
      enuKey -
      param -
      Returns: