Class EmptyUserParametersHolder
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.EmptyUserParametersHolder
-
- All Implemented Interfaces:
ReadOnlyUserParameters,UserParametersHolder
public class EmptyUserParametersHolder extends Object implements UserParametersHolder
Created by Eugene Petrenko (eugene.petrenko@gmail.com) Date: 03.02.12 15:17
-
-
Constructor Summary
Constructors Constructor Description EmptyUserParametersHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameter(Parameter param)Adds parameter.ParametergetParameter(String paramName)Map<String,String>getParameters()Returns map of build and configuration parameters.Collection<Parameter>getParametersCollection()Returns build and configuration parameters in single collection.StringgetParameterValue(String paramName)voidremoveParameter(String paramName)Removes parameter.
-
-
-
Method Detail
-
addParameter
public void addParameter(@NotNull Parameter param)Description copied from interface:UserParametersHolderAdds parameter.- Specified by:
addParameterin interfaceUserParametersHolder- Parameters:
param- build or config parameter, the type is determined by parameter prefix
-
removeParameter
public void removeParameter(@NotNull String paramName)Description copied from interface:UserParametersHolderRemoves parameter.- Specified by:
removeParameterin interfaceUserParametersHolder- Parameters:
paramName- build or config parameter name, the type is determined by parameter prefix
-
getParametersCollection
@NotNull public Collection<Parameter> getParametersCollection()
Description copied from interface:ReadOnlyUserParametersReturns build and configuration parameters in single collection.- Specified by:
getParametersCollectionin interfaceReadOnlyUserParameters- Returns:
- see above
-
getParameter
@Nullable public Parameter getParameter(@NotNull String paramName)
- Specified by:
getParameterin interfaceReadOnlyUserParameters
-
getParameters
@NotNull public Map<String,String> getParameters()
Description copied from interface:ReadOnlyUserParametersReturns map of build and configuration parameters.- Specified by:
getParametersin interfaceReadOnlyUserParameters- Returns:
- build and configuration parameters map
-
getParameterValue
@Nullable public String getParameterValue(@NotNull String paramName)
- Specified by:
getParameterValuein interfaceReadOnlyUserParameters- Parameters:
paramName- parameter name- Returns:
- value of the parameter with given name or null if there is no such parameter
-
-