public class EnvironmentScopeExtractor extends Object implements AttributeExtractor
Environment
objects as a scope.Constructor and Description |
---|
EnvironmentScopeExtractor(freemarker.core.Environment request)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Enumeration<String> |
getKeys()
The enumeration of the keys of the stored attributes.
|
Object |
getValue(String key)
Returns the value of the attribute with the given key.
|
void |
removeValue(String name)
Removes an attribute.
|
void |
setValue(String key,
Object value)
Sets a value for the given key.
|
public EnvironmentScopeExtractor(freemarker.core.Environment request)
request
- The environment.public void removeValue(String name)
HasRemovableKeys
removeValue
in interface HasRemovableKeys<Object>
name
- The key of the attribute to remove.public Enumeration<String> getKeys()
HasKeys
public Object getValue(String key)
HasKeys
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.