Class ModelPropertyChangeListeners


  • public class ModelPropertyChangeListeners
    extends java.lang.Object
    API For adding/removing notifying uml property change listeners.
    • Constructor Detail

      • ModelPropertyChangeListeners

        ModelPropertyChangeListeners​(AbstractRepository abstractRepository)
    • Method Detail

      • getRepository

        AbstractRepository getRepository()
        Gets the repository which events the listener listens of
        Returns:
        the repository
      • notifyListeners

        public void notifyListeners​(java.beans.PropertyChangeEvent event)
      • notifyListeners

        private static void notifyListeners​(java.beans.PropertyChangeListener[] listeners,
                                            java.beans.PropertyChangeEvent event)
      • getAllListeners

        public java.util.Collection<java.beans.PropertyChangeListener> getAllListeners()
        Gets all registered listeners
        Returns:
        collection of registered listeners
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener,
                                              @CheckForNull
                                              javax.jmi.reflect.RefObject attachTo,
                                              @CheckForNull
                                              java.lang.String propertyName)
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener,
                                                 @CheckForNull
                                                 javax.jmi.reflect.RefObject removeFrom,
                                                 @CheckForNull
                                                 java.lang.String propertyName)
        Parameters:
        listener - listener
        removeFrom - element which events listener do not want to listen. In case null remove listeners all events from repository
        propertyName - name of the property
      • removeAllPropertyChangeListeners

        public void removeAllPropertyChangeListeners​(javax.jmi.reflect.RefObject removeFrom)
      • removeListener

        public void removeListener​(java.beans.PropertyChangeListener listener)