Enum Class MessageKey

java.lang.Object
java.lang.Enum<MessageKey>
com.serinity.accesscontrol.flag.MessageKey
All Implemented Interfaces:
Serializable, Comparable<MessageKey>, Constable

public enum MessageKey extends Enum<MessageKey>
Key-Value messages manager (enum)

see `/i18n/*`


// Example uasage
final static String EXIT_VALUE = MessageKey.EXIT.getValue();
Since:
2026-01-30 MessageKey.java
Version:
1.0
Author:
@ZouariOmar (zouariomar20@gmail.com)
  • Enum Constant Details

    • GREETING

      public static final MessageKey GREETING
      Greeting message key.
    • LOGIN

      public static final MessageKey LOGIN
      Login message key.
    • EXIT

      public static final MessageKey EXIT
      Exit message key.
    • LANGUAGES

      public static final MessageKey LANGUAGES
      Languages list message key.
  • Method Details

    • values

      public static MessageKey[] 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 MessageKey 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
    • getValue

      public String getValue()
      Returns the i18n property key value.
      Returns:
      message key value