Class ParametersCollection
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.AbstractParametersProvider
-
- jetbrains.buildServer.serverSide.impl.AbstractParametersCollection
-
- jetbrains.buildServer.serverSide.impl.ParametersCollection
-
- All Implemented Interfaces:
InternalParameters,ReadOnlyUserParameters,UserParametersHolder
public class ParametersCollection extends AbstractParametersCollection implements UserParametersHolder
- Since:
- 7.0
- Author:
- Eugene Petrenko (eugene.petrenko@gmail.com) Date: 08.09.11 16:35
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.impl.AbstractParametersProvider
ACCEPT_ALL_FILTER, BUILD_PARAM_FILTER, CONFIG_PARAM_FILTER
-
-
Constructor Summary
Constructors Constructor Description ParametersCollection()ParametersCollection(Collection<Parameter> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameter(Parameter parameter)Adds parameter.voidclear()booleancontainsKey(String key)ParameterfindParameter(String key)Set<String>getKeys()ParametergetParameter(String paramName)Collection<Parameter>getParametersCollection()Returns build and configuration parameters in single collection.StringgetParameterValue(String paramName)voidremoveParameter(String name)Removes parameter.-
Methods inherited from class jetbrains.buildServer.serverSide.impl.AbstractParametersCollection
addParameters, getBuildParametersCollection, getConfigParametersCollection
-
Methods inherited from class jetbrains.buildServer.serverSide.impl.AbstractParametersProvider
convertParameters, getBuildParameters, getConfigParameters, getParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.InternalParameters
getBooleanInternalParameter, getBooleanInternalParameterOrTrue, getInternalParameterValue
-
Methods inherited from interface jetbrains.buildServer.serverSide.ReadOnlyUserParameters
getParameters
-
-
-
-
Constructor Detail
-
ParametersCollection
public ParametersCollection()
-
ParametersCollection
public ParametersCollection(@NotNull Collection<Parameter> parameters)
-
-
Method Detail
-
addParameter
public void addParameter(@NotNull Parameter parameter)Description copied from interface:UserParametersHolderAdds parameter.- Specified by:
addParameterin interfaceUserParametersHolder- Specified by:
addParameterin classAbstractParametersCollection- Parameters:
parameter- build or config parameter, the type is determined by parameter prefix
-
removeParameter
public void removeParameter(@NotNull String name)Description copied from interface:UserParametersHolderRemoves parameter.- Specified by:
removeParameterin interfaceUserParametersHolder- Parameters:
name- build or config parameter name, the type is determined by parameter prefix
-
clear
public void clear()
-
getParametersCollection
@NotNull public Collection<Parameter> getParametersCollection()
Description copied from interface:ReadOnlyUserParametersReturns build and configuration parameters in single collection.- Specified by:
getParametersCollectionin interfaceReadOnlyUserParameters- Specified by:
getParametersCollectionin classAbstractParametersProvider- Returns:
- see above
-
getParameter
@Nullable public Parameter getParameter(@NotNull String paramName)
- Specified by:
getParameterin interfaceReadOnlyUserParameters
-
getParameterValue
@Nullable public String getParameterValue(@NotNull String paramName)
- Specified by:
getParameterValuein interfaceReadOnlyUserParameters- Specified by:
getParameterValuein classAbstractParametersProvider- Parameters:
paramName- parameter name- Returns:
- value of the parameter with given name or null if there is no such parameter
-
containsKey
public boolean containsKey(@NotNull String key)
-
-