Field Summary
Fields
Identifier of the code system (all values share the same).
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Gets the code system identifier.
Gets the code system name.
Gets the code value as a string.
Gets the display name defined by the language param.
Gets the Enum with a given code.
Gets the value set identifier.
static boolean
Checks if a given enum is part of this value set.
static boolean
Checks if a given code value is in this value set.
Returns the enum constant of this class with the specified name.
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 org.projecthusky.common.enums.ValueSetEnumInterface
getCD , getCD , getCE , getCE , getCode , getCode , getCodedString , getIpfCode , isContainedIn , isEqualTo , name
Field Details
VALUE_SET_NAME
public static final String VALUE_SET_NAME
Name of the value set.
See Also:
CODE_SYSTEM_ID
public static final String CODE_SYSTEM_ID
Identifier of the code system (all values share the same).
See Also:
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 name
NullPointerException
- if the argument is null
getDisplayName
Gets the display name defined by the language param.
Specified by:
getDisplayName
in interface TranslatedEnumInterface
Parameters:
languageCode
- The language code to get the display name for, null
to get the default display name.
Returns:
the display name in the desired language.
getEnum
Gets the Enum with a given code.
Parameters:
code
- The code value.
Returns:
the enum value found or null
.
isEnumOfValueSet
public static boolean isEnumOfValueSet (@Nullable String enumName)
Checks if a given enum is part of this value set.
Parameters:
enumName
- The name of the enum.
Returns:
true
if the name is found in this value set, false
otherwise.
isInValueSet
public static boolean isInValueSet (@Nullable String codeValue)
Checks if a given code value is in this value set.
Parameters:
codeValue
- The code value.
Returns:
true
if the value is found in this value set, false
otherwise.