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 void
put(Object obj)
Puts an object into this scope.Object
put(String name, Object obj)
Puts a named object into this scope.void
putAll(Iterable<?> objs)
Puts a collection of objects into this scope.void
putAll(Map<String,?> objs)
Puts a collection of named objects into this scope.boolean
remove(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
obj
in 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:
true
if an object matching the identity ofobj
was removed
-
-