Package com.iizix.prop
Enum Class References.ReturnCode
- All Implemented Interfaces:
IEnumLocaleKString
,IEnumLocaleString
,Serializable
,Comparable<References.ReturnCode>
,Constable
- Enclosing class:
- References
public static enum References.ReturnCode extends Enum<References.ReturnCode> implements IEnumLocaleKString
Reference collection return code.
Text IDs used
references.rc.success = Success. references.rc.not_found = Reference "{1}" not found from "{2}", in "{3}" references.rc.circular = Circular reference "{1}" from "{2}" in "{3}" references.rc.crossover = Crossover to circular reference "{1}" from "{2}" in "{3}"
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Field Summary
Method Summary
Modifier and TypeMethodDescriptionGets the fallback String.getID()
Gets the text ID.Gets the fallback KString.boolean
Checks if the return code is success.static References.ReturnCode
Returns the enum constant of this class with the specified name.static References.ReturnCode[]
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.IEnumLocaleKString
asKString, asKString
Methods inherited from interface com.iizix.text.IEnumLocaleString
asString, asString, asString, name, ordinal, valuesList
Enum Constant Details
SUCCESS
Success.NOT_FOUND
Reference "target" not found from "source", type "reference-type".CIRCULAR
Circular reference in "target" from "source", type "reference-type".CROSSOVER
Crossover to circular reference "target" from "source", type "reference-type".
Field Details
englishMessage
The English text message fallback String.textID
The text ID for the message, starts with "references.rc.".
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
isSuccess
public boolean isSuccess()Checks if the return code is success.- Returns:
- True only when it is SUCCESS.
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.
getKStringFallback
Gets the fallback KString.- Specified by:
getKStringFallback
in interfaceIEnumLocaleKString
- Returns:
- The fallback KString.