jetbrains.buildServer.parameters.impl
Class ParametersInOutList

java.lang.Object
  extended by jetbrains.buildServer.parameters.impl.ParametersInOutList

public class ParametersInOutList
extends java.lang.Object

List of ParametersInOuts with utility methods. User: Yegor.Yarko Date: 06.06.2008


Constructor Summary
ParametersInOutList()
           
 
Method Summary
 void addParameters(ParametersInOut parametersInOut)
           
 void resolveParameters(ParameterResolver resolver, java.lang.String resultName)
          Resolves parameters using supplied resolver.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParametersInOutList

public ParametersInOutList()
Method Detail

addParameters

public void addParameters(@NotNull
                          ParametersInOut parametersInOut)

resolveParameters

public void resolveParameters(@NotNull
                              ParameterResolver resolver,
                              @Nullable
                              java.lang.String resultName)
Resolves parameters using supplied resolver.

A parameter is resolved by the supplied resolver using already resolved parameters of parametersList as a dictionary.

All parameters that can be fully resolved (processor reports they as fully resolved), are moved into corresponding fully resolved set in the parametersList. All parameters that can be only partly resolved are moved into corresponding fully resolved set in the parametersList in the maximum possible resolved form.

The resolution process ensures that no more unresolved parameter from the parametersList can be resolved. The parameters that cannot be resolved (e.g. unknown reference or a loop) are left in the original maps in the maximum possible resolved form.

If several elements of parametersList have the same unresolved parameter, the precedence is undefined.

Parameters:
resolver - the resolver to use in the resolution process.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object