Package com.xebialabs.xlrelease.variable
Class VariableHelper$
java.lang.Object
com.xebialabs.xlrelease.variable.VariableHelper$
- All Implemented Interfaces:
VariableCollector
,VariableReplacementHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VariableHelper$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkVariable
(Variable variable) void
checkVariableIdsAreTheSame
(String requestVariableId, String bodyVariableId) void
checkVariables
(List<Variable> variables) cloneVariable
(Variable variable, String newKey) boolean
containsOnlyVariable
(String input) boolean
containsVariables
(String input) fillVariableValues
(List<Variable> target, List<Variable> source) filterOutBlankStringVariables
(Map<String, String> variables) filterOutBlankValues
(Map<String, ValueWithInterpolation> variables) formatVariableIfNeeded
(String variableName) getAllReleaseVariablesByKeys
(Release release) getExternalVariables
(List<Variable> variables) indexByKey
(List<Variable> variables) boolean
isCiPropertyVariable
(String variableName) Shows if a variable looks like a ${release.something}.boolean
isFolderVariable
(String variableName) boolean
isGlobalOrFolderVariable
(String variableName) boolean
isGlobalVariable
(String variableName) boolean
safeReplace
(String input, String key, String replacement) withoutVariableSyntax
(String variableKey) withVariableSyntax
(String variableName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.xebialabs.xlrelease.variable.VariableCollector
collectVariables, collectVariablesFromValue, collectVariablesInScope, getUsedExternalPasswordVariables, getUsedStringVariables, getUsedVariables, getUsedVariables$default$2
Methods inherited from interface com.xebialabs.xlrelease.variable.VariableReplacementHelper
freezeUnresolvedVariable, getPasswordVariableValuesAsStrings, getVariableValuesAsStrings, getVariableValuesAsStrings, replaceAll, replaceAll, replaceAllWithInterpolation, replaceAllWithInterpolation, resolveInterpolatableVariables
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
VariableHelper$
public VariableHelper$()
-
-
Method Details
-
VARIABLE_NAME_PATTERN
-
safeReplace
-
isCiPropertyVariable
Shows if a variable looks like a ${release.something}. Note that it will return "true" also for names like ${release.custom} for whichcom.xebialabs.xlrelease.domain.variables.reference.ReleasePropertyVariableKey.isReleasePropertyVariableKey()
would return "false". We discourage using such variables but they may exist in older installations.- Parameters:
variableName
- (undocumented)- Returns:
- (undocumented)
-
isGlobalVariable
-
isFolderVariable
-
isGlobalOrFolderVariable
-
containsVariables
-
formatVariableIfNeeded
-
containsOnlyVariable
-
withVariableSyntax
-
withoutVariableSyntax
-
checkVariable
-
checkVariables
-
getExternalVariables
-
indexByKey
-
checkVariableIdsAreTheSame
-
isGlobalVariableId
-
fillVariableValues
-
cloneVariable
-
filterOutBlankStringVariables
-
filterOutBlankValues
public Map<String,ValueWithInterpolation> filterOutBlankValues(Map<String, ValueWithInterpolation> variables) -
getAllReleaseVariablesByKeys
-
toString
-