public static enum GpgConfig.GpgFormat extends java.lang.Enum<GpgConfig.GpgFormat> implements Config.ConfigEnum
Enum Constant and Description |
---|
OPENPGP
Value for openpgp
|
X509
Value for x509
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
configValue |
Modifier and Type | Method and Description |
---|---|
boolean |
matchConfigValue(java.lang.String s)
Checks if the given string matches with enum value.
|
java.lang.String |
toConfigValue()
Converts enumeration value into a string to be save in config.
|
static GpgConfig.GpgFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GpgConfig.GpgFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GpgConfig.GpgFormat OPENPGP
public static final GpgConfig.GpgFormat X509
public static GpgConfig.GpgFormat[] values()
for (GpgConfig.GpgFormat c : GpgConfig.GpgFormat.values()) System.out.println(c);
public static GpgConfig.GpgFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean matchConfigValue(java.lang.String s)
Config.ConfigEnum
matchConfigValue
in interface Config.ConfigEnum
s
- the string to matchpublic java.lang.String toConfigValue()
Config.ConfigEnum
toConfigValue
in interface Config.ConfigEnum