Class HidingContextVariables
- java.lang.Object
-
- jetbrains.buildServer.parameters.impl.HidingContextVariables
-
- All Implemented Interfaces:
ContextVariables
public class HidingContextVariables extends java.lang.Object implements ContextVariables
- Author:
- Yegor.Yarko Date: 30.08.2008
-
-
Constructor Summary
Constructors Constructor Description HidingContextVariables(ContextVariables provider, java.util.Collection<java.lang.String> allowedNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String name)
java.util.Map<java.lang.String,java.lang.Object>
getAll()
void
setAllowedNames(java.util.Collection<java.lang.String> allowedNames)
int
size()
Returns the number of variables in this variables provider.
-
-
-
Constructor Detail
-
HidingContextVariables
public HidingContextVariables(@NotNull ContextVariables provider, @Nullable java.util.Collection<java.lang.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 java.lang.Object get(@NotNull java.lang.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 java.util.Map<java.lang.String,java.lang.Object> getAll()
- Specified by:
getAll
in interfaceContextVariables
- Returns:
- a copy of all the variables available through this provider
-
setAllowedNames
public void setAllowedNames(@Nullable java.util.Collection<java.lang.String> allowedNames)
-
-