jetbrains.buildServer.parameters
Class ParameterBasedValueResolver

java.lang.Object
  extended by 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
ParameterBasedValueResolver(ParameterResolver resolver, ParametersProvider dictionary)
          Creates a value resolver that is based on resolver and used dictionary during value resolution
 
Method Summary
protected  java.util.List<ProcessingResult> doResolve(java.util.List<java.lang.String> toResolve, ParametersProvider dictionary)
           
 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.
 ProcessingResult resolve(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 resolution
dictionary - a dictionary to use for value resolution
Method Detail

resolve

@NotNull
public ProcessingResult resolve(@NotNull
                                        java.lang.String value)
Specified by:
resolve in interface ValueResolver
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.

Specified by:
resolve in interface ValueResolver
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)