Enum Class IServer.InvalidAppID

java.lang.Object
java.lang.Enum<IServer.InvalidAppID>
com.iizix.server.IServer.InvalidAppID
All Implemented Interfaces:
IEnumLocaleString, Serializable, Comparable<IServer.InvalidAppID>, Constable
Enclosing interface:
IServer

public static enum IServer.InvalidAppID extends Enum<IServer.InvalidAppID> implements IEnumLocaleString
Error enum used when validating an App ID with locale support.

The following text ID's are defined with their English texts:

  - server.appid.empty              = App ID is empty
  - server.appid.too_long           = App ID is too long, maximum 64 characters is allowed
  - server.appid.invalid_first_char = App ID invalid first character, must be A-Z or a-z
  - server.appid.invalid_char       = App ID contains an invalid character, only A-Z, a-z, 0-9, . (dot), and _ (underscore) are allowed
 

  • Enum Constant Details

    • EMPTY

      public static final IServer.InvalidAppID EMPTY
      App ID is empty.
    • TOO_LONG

      public static final IServer.InvalidAppID TOO_LONG
      App ID is too long, maximum 64 characters is allowed.
    • INVALID_FIRST_CHAR

      public static final IServer.InvalidAppID INVALID_FIRST_CHAR
      App ID invalid first character, must be A-Z or a-z.
    • INVALID_CHAR

      public static final IServer.InvalidAppID INVALID_CHAR
      App ID contains an invalid character, only A-Z, a-z, 0-9, . (dot), and _ (underscore) are allowed.
  • Field Details

    • englishText

      public final String englishText
      The English text fallback String.
    • textID

      public final String textID
      The text ID for the message, starts with "propref.type.".
  • Method Details

    • values

      public static IServer.InvalidAppID[] 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 IServer.InvalidAppID 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.