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 void
addParameter(Parameter parameter)
Adds parameter.void
clear()
boolean
containsKey(String key)
Parameter
findParameter(String key)
Set<String>
getKeys()
Parameter
getParameter(String paramName)
Collection<Parameter>
getParametersCollection()
Returns build and configuration parameters in single collection.String
getParameterValue(String paramName)
void
removeParameter(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:UserParametersHolder
Adds parameter.- Specified by:
addParameter
in interfaceUserParametersHolder
- Specified by:
addParameter
in 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:UserParametersHolder
Removes parameter.- Specified by:
removeParameter
in 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:ReadOnlyUserParameters
Returns build and configuration parameters in single collection.- Specified by:
getParametersCollection
in interfaceReadOnlyUserParameters
- Specified by:
getParametersCollection
in classAbstractParametersProvider
- Returns:
- see above
-
getParameter
@Nullable public Parameter getParameter(@NotNull String paramName)
- Specified by:
getParameter
in interfaceReadOnlyUserParameters
-
getParameterValue
@Nullable public String getParameterValue(@NotNull String paramName)
- Specified by:
getParameterValue
in interfaceReadOnlyUserParameters
- Specified by:
getParameterValue
in 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)
-
-