Enum Class Messages

java.lang.Object
java.lang.Enum<Messages>
com.iizix.server.Messages
All Implemented Interfaces:
IEnumLocaleString, Serializable, Comparable<Messages>, Constable

public enum Messages extends Enum<Messages> implements IEnumLocaleString
Class to handle localized messages for the server. The prefix of the text IDs are "srv.".
Author:
Christopher Mindus
  • Enum Constant Details

    • ClientAppSessionDisposed

      public static final Messages ClientAppSessionDisposed
      App session is disposed of
    • ClientUnsupportedDevice

      public static final Messages ClientUnsupportedDevice
      Unsupported device configuration
  • Field Details

    • id

      public final String id
      The ID for the item to use when looking up the item in a text table.
    • fallback

      public final String fallback
      The fallback text.
  • Method Details

    • values

      public static Messages[] 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 Messages 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
    • getID

      public String getID()
      Gets the text ID.
      Specified by:
      getID in interface IEnumLocaleString
      Returns:
      The text ID string.
    • getFallback

      public String getFallback()
      Gets the fallback String.
      Specified by:
      getFallback in interface IEnumLocaleString
      Returns:
      The fallback string.