jetbrains.buildServer.parameters.impl
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
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
get
@Nullable
public java.lang.Object get(@NotNull
java.lang.String name)
- Specified by:
get in interface ContextVariables
- 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 interface ContextVariables
getAll
@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getAll()
- Specified by:
getAll in interface ContextVariables
- Returns:
- a copy of all the variables available through this provider
setAllowedNames
public void setAllowedNames(@Nullable
java.util.Collection<java.lang.String> allowedNames)