public class RelationEvent extends Event implements Serializable, Cloneable
eventType, machine, TYPE_CHANGE, TYPE_DELETE, TYPE_NEW, TYPE_UNSPECIFIED| Constructor and Description |
|---|
RelationEvent(NodeEvent nodeEvent,
int relationSourceNumber,
int relationDestinationNumber,
String relationSourceType,
String relationDestinationType,
int role)
Constructor for relation event
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
NodeEvent |
getNodeEvent() |
int |
getRelationDestinationNumber() |
String |
getRelationDestinationType() |
int |
getRelationSourceNumber() |
String |
getRelationSourceType() |
int |
getRole() |
int |
getType()
Most events will come in certain 'types', default contants which are provided are
Event.TYPE_NEW, Event.TYPE_CHANGE and Event.TYPE_DELETE. |
int |
hashCode() |
String |
toString() |
clone, getMachine, isLocalpublic RelationEvent(NodeEvent nodeEvent, int relationSourceNumber, int relationDestinationNumber, String relationSourceType, String relationDestinationType, int role)
nodeEvent - relationSourceNumber - the nodenumber of the 'soucre' noderelationDestinationNumber - the nodenumber of the 'destination' noderelationSourceType - the builder name of the 'source' noderelationDestinationType - the builder name of the 'destination' noderole - the nodenumber of the reldef nodepublic String getRelationSourceType()
public String getRelationDestinationType()
public int getRelationSourceNumber()
public int getRelationDestinationNumber()
public int getType()
EventEvent.TYPE_NEW, Event.TYPE_CHANGE and Event.TYPE_DELETE.public int getRole()
public NodeEvent getNodeEvent()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}