Package io.micronaut.core.value
Enum Class PropertyCatalog
- All Implemented Interfaces:
Serializable
,Comparable<PropertyCatalog>
,Constable
The property catalog to use.
- Since:
- 4.7.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe catalog that contains normalized keys and also generated keys.The catalog that contains normalized keys.The catalog that contains the raw keys. -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyCatalog
Returns the enum constant of this class with the specified name.static PropertyCatalog[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RAW
The catalog that contains the raw keys. -
NORMALIZED
The catalog that contains normalized keys. A key is normalized into lower case hyphen separated form. For example an environment variableFOO_BAR
would be normalized tofoo.bar
. -
GENERATED
The catalog that contains normalized keys and also generated keys. A synthetic key can be generated from an environment variable such asFOO_BAR_BAZ
which will produce the following keys:foo.bar.baz
,foo.bar-baz
, andfoo-bar.baz
.
-
-
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
-