ti.chimera.registry
Class NodeDeletionSubscriber.ScriptFunctionNodeDeletionSubscriber

java.lang.Object
  extended byti.chimera.registry.NodeDeletionSubscriber.ScriptFunctionNodeDeletionSubscriber
All Implemented Interfaces:
NodeDeletionSubscriber
Enclosing class:
NodeDeletionSubscriber

public static class NodeDeletionSubscriber.ScriptFunctionNodeDeletionSubscriber
extends java.lang.Object
implements NodeDeletionSubscriber

An implementation of the NodeDeletionSubscriber for script functions.


Nested Class Summary
 
Nested classes inherited from class ti.chimera.registry.NodeDeletionSubscriber
NodeDeletionSubscriber.ScriptFunctionNodeDeletionSubscriber
 
Constructor Summary
NodeDeletionSubscriber.ScriptFunctionNodeDeletionSubscriber(oscript.data.Value fxn)
          Class Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Overload equals() to be true if the wrapped fxns are equal, so add/remove from list, etc., works right.
 int hashCode()
          Overload hashCode() so add/remove from list, etc., works right.
 void nodeDeleted(Node node)
          delegate to the script function
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeDeletionSubscriber.ScriptFunctionNodeDeletionSubscriber

public NodeDeletionSubscriber.ScriptFunctionNodeDeletionSubscriber(oscript.data.Value fxn)
Class Constructor

Parameters:
fxn - the script function to call
Method Detail

nodeDeleted

public void nodeDeleted(Node node)
delegate to the script function

Specified by:
nodeDeleted in interface NodeDeletionSubscriber
Parameters:
node - the node deleted

equals

public boolean equals(java.lang.Object obj)
Overload equals() to be true if the wrapped fxns are equal, so add/remove from list, etc., works right.


hashCode

public int hashCode()
Overload hashCode() so add/remove from list, etc., works right.