Code example for SimpleBindings

0
	public void setAttribute(String name, Object value, int scope) {
		getContext(scope).put(name, value);
	} 
 
	public Bindings getBindings(int scope) {
		return new SimpleBindings(getContext(scope));
	} 
 
	@SuppressWarnings("unchecked") 
	public void setBindings(Bindings bindings, int scope) {
		getContext(scope).putAll(bindings);
	} 
 
	public int getAttributesScope(String name) {
		if (getContext(GLOBAL_SCOPE).containsKey(name))
			return GLOBAL_SCOPE;
		return ENGINE_SCOPE;
	} 
 
	public List<Integer> getScopes() {