net.infonode.properties.propertymap
Class PropertyMapImpl.PropertyObjectMap

java.lang.Object
  extended by net.infonode.util.collection.notifymap.AbstractConstChangeNotifyMap
      extended by net.infonode.properties.propertymap.PropertyMapImpl.PropertyObjectMap
All Implemented Interfaces:
ConstCollection, ConstMap, ConstChangeNotifyMap, SignalListener
Enclosing class:
PropertyMapImpl

private class PropertyMapImpl.PropertyObjectMap
extends AbstractConstChangeNotifyMap
implements SignalListener


Field Summary
private  boolean listenerActive
           
 
Constructor Summary
PropertyMapImpl.PropertyObjectMap()
           
 
Method Summary
private  void addInheritedReferences()
           
 boolean checkListeners(java.util.Set visited)
           
 ConstMapIterator constIterator()
          Returns an iterator for this map.
 boolean containsKey(java.lang.Object key)
          Returns true if this map contains the key.
 boolean containsValue(java.lang.Object value)
          Returns true if this map contains the value.
protected  void fireEntriesChanged(ConstMap changes)
           
 java.lang.Object get(java.lang.Object key)
          Returns the value associated with the key.
 boolean isEmpty()
          Returns true if this collection is empty.
protected  void lastListenerRemoved()
           
protected  void listenerAdded()
           
private  void removeInheritedReferences()
           
 void signalEmitted(Signal signal, java.lang.Object object)
           
 void updateListeners()
           
 
Methods inherited from class net.infonode.util.collection.notifymap.AbstractConstChangeNotifyMap
fireEntryChanged, fireEntryRemoved, firstListenerAdded, getChangeSignal, getChangeSignalInternal, listenerRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerActive

private boolean listenerActive
Constructor Detail

PropertyMapImpl.PropertyObjectMap

PropertyMapImpl.PropertyObjectMap()
Method Detail

listenerAdded

protected void listenerAdded()
Overrides:
listenerAdded in class AbstractConstChangeNotifyMap

signalEmitted

public void signalEmitted(Signal signal,
                          java.lang.Object object)
Specified by:
signalEmitted in interface SignalListener

lastListenerRemoved

protected void lastListenerRemoved()
Overrides:
lastListenerRemoved in class AbstractConstChangeNotifyMap

checkListeners

public boolean checkListeners(java.util.Set visited)

updateListeners

public void updateListeners()

addInheritedReferences

private void addInheritedReferences()

removeInheritedReferences

private void removeInheritedReferences()

get

public java.lang.Object get(java.lang.Object key)
Description copied from interface: ConstMap
Returns the value associated with the key.

Specified by:
get in interface ConstMap
Parameters:
key - the key
Returns:
the value associated with the key, null if no value is associated with the key

containsKey

public boolean containsKey(java.lang.Object key)
Description copied from interface: ConstMap
Returns true if this map contains the key.

Specified by:
containsKey in interface ConstMap
Parameters:
key - the key
Returns:
true if this map contains the key

containsValue

public boolean containsValue(java.lang.Object value)
Description copied from interface: ConstMap
Returns true if this map contains the value.

Specified by:
containsValue in interface ConstMap
Parameters:
value - the value
Returns:
true if this map contains the value

isEmpty

public boolean isEmpty()
Description copied from interface: ConstCollection
Returns true if this collection is empty.

Specified by:
isEmpty in interface ConstCollection
Returns:
true if this collection is empty

constIterator

public ConstMapIterator constIterator()
Description copied from interface: ConstMap
Returns an iterator for this map.

Specified by:
constIterator in interface ConstMap
Returns:
an iterator for this map

fireEntriesChanged

protected void fireEntriesChanged(ConstMap changes)
Overrides:
fireEntriesChanged in class AbstractConstChangeNotifyMap