public class WrappedBehaviourMap extends BehaviourMap
BehaviourMap that can have its own parent.
 The wrapped BehaviourMap should not have a parent!?| Constructor and Description | 
|---|
WrappedBehaviourMap(BehaviourMap behaviourMap)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Removes all bindings from this map.. 
 | 
Behaviour | 
get(String key)
Returns the binding for  
key, messaging the parent
 BehaviourMap if the binding is not locally defined. | 
Map<String,Behaviour> | 
getAllBindings()
Get all bindings defined in this map and its parents. 
 | 
BehaviourMap | 
getParent()
Gets this  
BehaviourMap's parent. | 
int | 
modCount()  | 
void | 
put(String key,
   Behaviour behaviour)
Adds a binding for  
key to behaviour. | 
void | 
remove(String key)
Removes the binding for  
key from this map. | 
void | 
setParent(BehaviourMap map)
Sets this  
BehaviourMap's parent. | 
keyspublic WrappedBehaviourMap(BehaviourMap behaviourMap)
public void setParent(BehaviourMap map)
BehaviourMapBehaviourMap's parent.setParent in class BehaviourMapmap - the map that is the parent of this onepublic BehaviourMap getParent()
BehaviourMapBehaviourMap's parent.getParent in class BehaviourMapnull if
         this map has no parentpublic void put(String key, Behaviour behaviour)
BehaviourMapkey to behaviour. If behaviour
 is null, this removes the current binding for key.put in class BehaviourMappublic Behaviour get(String key)
BehaviourMapkey, messaging the parent
 BehaviourMap if the binding is not locally defined.get in class BehaviourMappublic void remove(String key)
BehaviourMapkey from this map.remove in class BehaviourMappublic void clear()
BehaviourMapclear in class BehaviourMappublic Map<String,Behaviour> getAllBindings()
BehaviourMapBehaviourMap, i.e., it will not
 reflect changes to the BehaviourMap.getAllBindings in class BehaviourMappublic int modCount()
modCount in class BehaviourMapCopyright © 2015–2022 SciJava. All rights reserved.