Enum Class EnvironmentScope
- All Implemented Interfaces:
Serializable,Comparable<EnvironmentScope>,Constable,FriendlyEnum
Enumeration that represents the keys for the environment variables required to connect to a
WordPress site.
This enum implements the FriendlyEnum interface to enforce a user-friendly string
representation of the enum constants.
- Author:
- Yoham Gabriel @ YGBStudio
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWP_APP_PASSenvironment variable.wp.appPassproperty key.WP_FQDNenvironment variable.wp.fqdnproperty key.WP_USERenvironment variable.wp.userproperty key. -
Method Summary
Modifier and TypeMethodDescriptionvalue()Returns the value of the enum constant, which is the actual string to be used in the API.static EnvironmentScopeReturns the enum constant of this class with the specified name.static EnvironmentScope[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WP_USER_PROP
wp.userproperty key. -
WP_APPLICATION_PASS_PROP
wp.appPassproperty key. -
WP_FULLY_QUALIFIED_DOMAIN_NAME_PROP
wp.fqdnproperty key. -
WP_USER_ENV
WP_USERenvironment variable. -
WP_APPLICATION_PASS_ENV
WP_APP_PASSenvironment variable. -
WP_FULLY_QUALIFIED_DOMAIN_NAME_ENV
WP_FQDNenvironment variable.
-
-
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
-
value
Description copied from interface:FriendlyEnumReturns the value of the enum constant, which is the actual string to be used in the API.Example: If an enum constant is named
STATUS_PENDING, the value returned by this method would be"pending", which is the value provided in its constructor.- Specified by:
valuein interfaceFriendlyEnum- Returns:
- the value of the enum constant
-