Class EnvFlag
java.lang.Object
cn.lunadeer.dominion.api.dtos.flag.Flag
cn.lunadeer.dominion.api.dtos.flag.EnvFlag
Represents an environment flag in the Dominion system.
This class extends the Flag class and provides specific
configuration keys for environment-related flags.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration default key for this environment flag.Returns the configuration description key for this environment flag.Returns the configuration enable key for this environment flag.Returns the configuration key for the name of this flag.Methods inherited from class cn.lunadeer.dominion.api.dtos.flag.Flag
getDefaultValue, getDescription, getDescriptionKey, getDisplayName, getDisplayNameKey, getEnable, getFlagName, setDefaultValue, setDescription, setDisplayName, setEnable
-
Constructor Details
-
EnvFlag
public EnvFlag(@NotNull @NotNull String flag_name, @NotNull @NotNull String display_name, @NotNull @NotNull String description, @NotNull @NotNull Boolean default_value, @NotNull @NotNull Boolean enable) Constructs a new EnvFlag with the specified parameters.- Parameters:
flag_name
- the name of the flagdisplay_name
- the display name of the flagdescription
- the description of the flagdefault_value
- the default value of the flagenable
- the enable status of the flag
-
-
Method Details
-
getConfigurationDescKey
Returns the configuration description key for this environment flag.- Specified by:
getConfigurationDescKey
in classFlag
- Returns:
- the configuration description key
-
getConfigurationDefaultKey
Returns the configuration default key for this environment flag.- Specified by:
getConfigurationDefaultKey
in classFlag
- Returns:
- the configuration default key
-
getConfigurationEnableKey
Returns the configuration enable key for this environment flag.- Specified by:
getConfigurationEnableKey
in classFlag
- Returns:
- the configuration enable key
-
getConfigurationNameKey
Description copied from class:Flag
Returns the configuration key for the name of this flag.- Specified by:
getConfigurationNameKey
in classFlag
- Returns:
- the configuration key for the name
-