java.lang.Object
org.tigris.subversion.svnclientadapter.utils.Messages

public class Messages extends Object
A helper class used for binding NLS supported message strings
  • Field Details

  • Constructor Details

    • Messages

      public Messages()
  • Method Details

    • bind

      public static String bind(String id, String binding)
      Lookup the message with the given ID in this catalog and bind its substitution locations with the given string.
      Parameters:
      id -
      binding -
      Returns:
      the message with substitutions applied
    • bind

      public static String bind(String id, String binding1, String binding2)
      Lookup the message with the given ID in this catalog and bind its substitution locations with the given strings.
      Parameters:
      id -
      binding1 -
      binding2 -
      Returns:
      the message with substitutions applied
    • bind

      public static String bind(String key)
      Gets a string from the resource bundle. We don't want to crash because of a missing String.
      Parameters:
      key -
      Returns:
      string from the resource bundle or the key if not found.
    • bind

      public static String bind(String key, Object[] args)
      Gets a string from the resource bundle and binds it with the given arguments. If the key is not found, return the key.
      Parameters:
      key -
      args -
      Returns:
      string with substitutions from the resource bundle or the key if not found.