Class HidingContextVariables
- java.lang.Object
-
- jetbrains.buildServer.parameters.impl.HidingContextVariables
-
- All Implemented Interfaces:
ContextVariables
public class HidingContextVariables extends Object implements ContextVariables
- Author:
- Yegor.Yarko Date: 30.08.2008
-
-
Constructor Summary
Constructors Constructor Description HidingContextVariables(ContextVariables provider, Collection<String> allowedNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(String name)
Map<String,Object>
getAll()
void
setAllowedNames(Collection<String> allowedNames)
int
size()
Returns the number of variables in this variables provider.
-
-
-
Constructor Detail
-
HidingContextVariables
public HidingContextVariables(@NotNull ContextVariables provider, @Nullable Collection<String> allowedNames)
- Parameters:
provider
- the backing provider. It is not copied, a reference is kept.allowedNames
- the set of names to allow. If 'null' - all are allowed
-
-
Method Detail
-
get
@Nullable public Object get(@NotNull String name)
- Specified by:
get
in interfaceContextVariables
- Parameters:
name
- the name of the variable- Returns:
- the variable stored or null is the variable with the name cannot be found.
-
size
public int size()
Description copied from interface:ContextVariables
Returns the number of variables in this variables provider. This is the size of the map returned by getAll method.- Specified by:
size
in interfaceContextVariables
-
getAll
@NotNull public Map<String,Object> getAll()
- Specified by:
getAll
in interfaceContextVariables
- Returns:
- a copy of all the variables available through this provider
-
setAllowedNames
public void setAllowedNames(@Nullable Collection<String> allowedNames)
-
-