Class GetOnlyValueResolver
- java.lang.Object
-
- jetbrains.buildServer.serverSide.parameters.GetOnlyValueResolver
-
- All Implemented Interfaces:
ValueResolver
public class GetOnlyValueResolver extends Object implements ValueResolver
Value resolver for standard %param%s which calls only get() on the parameters provider.
-
-
Constructor Summary
Constructors Constructor Description GetOnlyValueResolver(ParametersProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessingResult
resolve(String str)
Map<String,String>
resolve(Map<String,String> unresolved)
Resolves values of the map at once.Map<String,ProcessingResult>
resolveWithDetails(Map<String,String> unresolved)
Resolves values of the map, returns result with resolving details.void
setUseOriginalWhenNoValFullyResolved(boolean useOriginalWhenNoValFullyResolved)
When set to true (default), %x% with parameters %x%=%y% will be resolved to %x%, this mimics behavior of ParametersInOutList.
-
-
-
Constructor Detail
-
GetOnlyValueResolver
public GetOnlyValueResolver(@NotNull ParametersProvider provider)
-
-
Method Detail
-
setUseOriginalWhenNoValFullyResolved
public void setUseOriginalWhenNoValFullyResolved(boolean useOriginalWhenNoValFullyResolved)
When set to true (default), %x% with parameters %x%=%y% will be resolved to %x%, this mimics behavior of ParametersInOutList. When set to false it will be resolved to %y%.
-
resolve
@NotNull public ProcessingResult resolve(@NotNull String str)
- Specified by:
resolve
in interfaceValueResolver
- Parameters:
str
- value to be resolved- Returns:
- the processing result
-
resolve
@NotNull public Map<String,String> resolve(@NotNull Map<String,String> unresolved)
Description copied from interface:ValueResolver
Resolves values of the map at once. Note: if map contains a parameter with null value then this parameter won't be returned in the resulting map.- Specified by:
resolve
in interfaceValueResolver
- Parameters:
unresolved
- map whose values to resolve- Returns:
- map with resolved values
-
resolveWithDetails
@NotNull public Map<String,ProcessingResult> resolveWithDetails(@NotNull Map<String,String> unresolved)
Description copied from interface:ValueResolver
Resolves values of the map, returns result with resolving details. Note: if map contains a parameter with null value then this parameter won't be returned in the resulting map.- Specified by:
resolveWithDetails
in interfaceValueResolver
- Parameters:
unresolved
- map whose values to resolve- Returns:
- map with resolved values
-
-