public static enum GerritTriggerParameters.ParameterMode extends Enum<GerritTriggerParameters.ParameterMode>
GerritTriggerParameters.GERRIT_CHANGE_COMMIT_MESSAGE
and GerritTriggerParameters.GERRIT_CHANGE_SUBJECT
can be bulky
and not often used in the build. This allows the user to specify how those specific parameters should be added.
NONE
means that they are not added at all.Enum Constant and Description |
---|
BASE64
The parameter will be added as a
Base64EncodedStringParameterValue . |
NONE
The parameter will not be added.
|
PLAIN
The parameter will be added as a human readable
TextParameterValue . |
Modifier and Type | Method and Description |
---|---|
static String |
encodeBase64(String original)
Encodes the string as Base64.
|
String |
toString() |
static GerritTriggerParameters.ParameterMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GerritTriggerParameters.ParameterMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GerritTriggerParameters.ParameterMode PLAIN
TextParameterValue
.public static final GerritTriggerParameters.ParameterMode BASE64
Base64EncodedStringParameterValue
.public static final GerritTriggerParameters.ParameterMode NONE
public static GerritTriggerParameters.ParameterMode[] values()
for (GerritTriggerParameters.ParameterMode c : GerritTriggerParameters.ParameterMode.values()) System.out.println(c);
public static GerritTriggerParameters.ParameterMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String encodeBase64(String original) throws UnsupportedEncodingException
original
- the string to encodeUnsupportedEncodingException
- if sopublic String toString()
toString
in class Enum<GerritTriggerParameters.ParameterMode>
Copyright © 2016–2020. All rights reserved.