Package com.iizix.server
Enum Class 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
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionApp ID is empty.App ID contains an invalid character, only A-Z, a-z, 0-9, .App ID invalid first character, must be A-Z or a-z.App ID is too long, maximum 64 characters is allowed.Field Summary
Method Summary
Modifier and TypeMethodDescriptionGets the fallback String.getID()
Gets the text ID.static IServer.InvalidAppID
Returns the enum constant of this class with the specified name.static IServer.InvalidAppID[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.iizix.text.IEnumLocaleString
asString, asString, asString
Enum Constant Details
EMPTY
App ID is empty.TOO_LONG
App ID is too long, maximum 64 characters is allowed.INVALID_FIRST_CHAR
App ID invalid first character, must be A-Z or a-z.INVALID_CHAR
App ID contains an invalid character, only A-Z, a-z, 0-9, . (dot), and _ (underscore) are allowed.
Field Details
englishText
The English text fallback String.textID
The text ID for the message, starts with "propref.type.".
Method Details
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
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 nameNullPointerException
- if the argument is null
getID
Gets the text ID.- Specified by:
getID
in interfaceIEnumLocaleString
- Returns:
- The text ID string.
getFallback
Gets the fallback String.- Specified by:
getFallback
in interfaceIEnumLocaleString
- Returns:
- The fallback string.