| java.lang.Object org.mmbase.core.event.NodeEventHelper
NodeEventHelper | public class NodeEventHelper (Code) | | This is a utility class to create node event and relation event instances. the reason for it is
that we want to references to core classes in the NodeEvent and RelationEvent classes, to keep them bridge-friendly,
but we need a little help for easy instantiation.
author: Ernst Bunders since: MMBase-1.8 version: $Id: NodeEventHelper.java,v 1.11 2008/02/07 16:22:34 michiel Exp $ |
createNodeEventInstance | public static NodeEvent createNodeEventInstance(MMObjectNode node, int eventType, String machineName)(Code) | | create an NodeEvent instance with an MMObjectNode
Parameters: node - Parameters: eventType - Parameters: machineName - or null to create a node event with local machine name new instance of NodeEvent |
createRelationEventInstance | public static RelationEvent createRelationEventInstance(MMObjectNode node, int eventType, String machineName)(Code) | | create an RelationEvent instnce with an MMObjectNode (builder should be specialization of insrel)
Parameters: node - Parameters: eventType - Parameters: machineName - a new RelationEvetn instance throws: IllegalArgumentException - when given node's builder is not a specialization of insrel |
|
|