Class AttributeMonitor<Atom>

  • Direct Known Subclasses:
    DefaultAttributeMonitor, LightweightAttributeMonitor

    public abstract class AttributeMonitor<Atom>
    extends java.lang.Object
    The class defines the operations that are required to observe the EMF attribute changes on atom objects.
    • Constructor Detail

      • AttributeMonitor

        public AttributeMonitor()
    • Method Detail

      • registerFor

        public abstract void registerFor​(Atom atom)
        Register the attribute monitor to watch feature values of object defined in the given atom.
        Parameters:
        atom -
      • unregisterForAll

        public abstract void unregisterForAll()
        Remove the attribute monitor from watching registered atoms.
      • unregisterFor

        public abstract void unregisterFor​(Atom atom)
        Remove the attribute monitor from watching the given atom.
        Parameters:
        atom -
      • notifyListeners

        protected void notifyListeners​(Atom atom)
        Sends notification to listeners when the given atom is updated.
        Parameters:
        match -
      • dispose

        public void dispose()
        Disposes of the attribute monitor by unregistering from each atom. TODO should we clear the listener list?