Package jetbrains.buildServer.parameters
Class ParameterBasedValueResolver
- java.lang.Object
-
- jetbrains.buildServer.parameters.ParameterBasedValueResolver
-
- All Implemented Interfaces:
ValueResolver
public class ParameterBasedValueResolver extends java.lang.Object implements ValueResolver
A value resolved that is based on parameter resolver- Author:
- Yegor.Yarko Date: 25.08.2008
-
-
Constructor Summary
Constructors Constructor Description ParameterBasedValueResolver(ParameterResolver resolver, ParametersProvider dictionary)
Creates a value resolver that is based on resolver and used dictionary during value resolution
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<ProcessingResult>
doResolve(java.util.List<java.lang.String> toResolve, ParametersProvider dictionary)
ProcessingResult
resolve(java.lang.String value)
java.util.Map<java.lang.String,java.lang.String>
resolve(java.util.Map<java.lang.String,java.lang.String> unresolved)
Resolves values of the map at once.java.util.Map<java.lang.String,ProcessingResult>
resolveWithDetails(java.util.Map<java.lang.String,java.lang.String> unresolved)
Resolves values of the map, returns result with resolving details.
-
-
-
Constructor Detail
-
ParameterBasedValueResolver
public ParameterBasedValueResolver(@NotNull ParameterResolver resolver, @NotNull ParametersProvider dictionary)
Creates a value resolver that is based on resolver and used dictionary during value resolution- Parameters:
resolver
- a resolver to use for value resolutiondictionary
- a dictionary to use for value resolution
-
-
Method Detail
-
resolve
@NotNull public ProcessingResult resolve(@NotNull java.lang.String value)
- Specified by:
resolve
in interfaceValueResolver
- Parameters:
value
- value to be resolved- Returns:
- the processing result
-
resolve
@NotNull public java.util.Map<java.lang.String,java.lang.String> resolve(@NotNull java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,ProcessingResult> resolveWithDetails(@NotNull java.util.Map<java.lang.String,java.lang.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
-
doResolve
@NotNull protected java.util.List<ProcessingResult> doResolve(@NotNull java.util.List<java.lang.String> toResolve, @NotNull ParametersProvider dictionary)
-
-