ca.nengo.util
Class VisiblyMutableUtils

java.lang.Object
  extended by ca.nengo.util.VisiblyMutableUtils

public class VisiblyMutableUtils
extends java.lang.Object

Utility methods for VisiblyMutable objects.

Author:
Bryan Tripp

Constructor Summary
VisiblyMutableUtils()
           
 
Method Summary
static void changed(VisiblyMutable vm, java.util.List<VisiblyMutable.Listener> listeners)
          Notifies listeners of a change to the given VisiblyMutable object.
static void nameChanged(VisiblyMutable vm, java.lang.String oldName, java.lang.String newName, java.util.List<VisiblyMutable.Listener> listeners)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisiblyMutableUtils

public VisiblyMutableUtils()
Method Detail

changed

public static void changed(VisiblyMutable vm,
                           java.util.List<VisiblyMutable.Listener> listeners)
Notifies listeners of a change to the given VisiblyMutable object.

Parameters:
vm - The changed VisiblyMutable object
listeners - List of things listening for changes

nameChanged

public static void nameChanged(VisiblyMutable vm,
                               java.lang.String oldName,
                               java.lang.String newName,
                               java.util.List<VisiblyMutable.Listener> listeners)
                        throws StructuralException
Parameters:
vm - The changed VisiblyMutable object
oldName - The old (existing) name of the VisiblyMutable
newName - The new (replacement) name of the VisiblyMutable
listeners - List of things listening for changes
Throws:
StructuralException - if the new name is invalid