Package org.soulwing.prospecto.api.scope
Interface MutableScope
- 
- All Superinterfaces:
 Scope
- All Known Subinterfaces:
 ViewContext
public interface MutableScope extends Scope
A mutableScope.- Author:
 - Carl Harris
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidput(Object obj)Puts an object into this scope.Objectput(String name, Object obj)Puts a named object into this scope.voidputAll(Iterable<?> objs)Puts a collection of objects into this scope.voidputAll(Map<String,?> objs)Puts a collection of named objects into this scope.booleanremove(Object obj)Removes an object from this scope. 
 - 
 
- 
- 
Method Detail
- 
put
void put(Object obj)
Puts an object into this scope.- Parameters:
 obj- the object to put
 
- 
put
Object put(String name, Object obj)
Puts a named object into this scope.- Parameters:
 name- name to assignobj- the object to put- Returns:
 - the object that was replaced by 
objin this scope 
 
- 
putAll
void putAll(Iterable<?> objs)
Puts a collection of objects into this scope.- Parameters:
 objs- the objects to put
 
- 
putAll
void putAll(Map<String,?> objs)
Puts a collection of named objects into this scope.- Parameters:
 objs- map of named objects to put
 
- 
remove
boolean remove(Object obj)
Removes an object from this scope.- Parameters:
 obj- the object to remove- Returns:
 trueif an object matching the identity ofobjwas removed
 
 - 
 
 -