public interface Environment
Environment is a container of attributes that can be
added/changed, read, and removed.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empties the environment.
|
boolean |
containsAttribute(String name)
Checks if an attribute with given name exists.
|
Object |
getAttribute(String name)
Get the attribute of the given name to the given string value.
|
Iterable<String> |
getAttributeNames()
Returns an
Iterable of attribute names. |
Map<String,Object> |
getAttributesAsMap()
Returns the environment attributes as unmodifiable map.
|
void |
importEnvironment(Environment environment)
Copy all attributes from given environment into this environment.
|
void |
removeAttribute(String name)
Unsets any attribute with the given name.
|
void |
setAttribute(String name,
Object value)
Sets the attribute of the given name to the given value.
|
Object getAttribute(String name)
name - the name of the attribute to getvoid setAttribute(String name, Object value)
name - the name of the attribute to set; you can't use any of the ReservedVariables namesvalue - the value to set the attribute tovoid removeAttribute(String name)
name - the name of the attribute to removeIterable<String> getAttributeNames()
Iterable of attribute names.Iterable of attribute namesboolean containsAttribute(String name)
name - the name of the attribute to checkvoid importEnvironment(Environment environment)
env - the environment to copyMap<String,Object> getAttributesAsMap()
void clear()
Copyright © 2018. All rights reserved.