Enum Class MessageBundle

java.lang.Object
java.lang.Enum<MessageBundle>
com.emc.documentum.rest.config.MessageBundle
All Implemented Interfaces:
Serializable, Comparable<MessageBundle>, Constable

public enum MessageBundle extends Enum<MessageBundle>
The message bundle which loads all available properties files from 'classpath*:com/emc/documentum/rest/messages/rest-*messages*.properties'
  • Enum Constant Details

    • INSTANCE

      public static final MessageBundle INSTANCE
      The singleton instance of the message bundle.
  • Method Details

    • values

      public static MessageBundle[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MessageBundle valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • reload

      public void reload()
    • get

      public String get(String code, Object... args)
      Return the property value associated with the given code, and optional arguments
      Parameters:
      code - the message code
      args - the message arguments
      Returns:
      the property value
      See Also:
    • get

      public String get(String code, Locale locale, Object... args)
      Return the property value associated with the given code, locale, and optional arguments
      Parameters:
      code - the message code
      locale - the locale of the message
      args - the message arguments
      Returns:
      the property value
      See Also: