Package org.graffiti.event
Class EdgeAdapter
java.lang.Object
org.graffiti.event.EdgeAdapter
- All Implemented Interfaces:
EventListener,EdgeListener,TransactionListener
public class EdgeAdapter extends Object implements EdgeListener
Adapter for the EdgeListener interface, providing default
empty implementation. Useful, given you don't need all interface methods.
- Since:
- 2.7.0
- Author:
- D. Garkov
-
Constructor Summary
Constructors Constructor Description EdgeAdapter() -
Method Summary
Modifier and Type Method Description voidpostDirectedChanged(EdgeEvent e)Called after the edge was set directed or undirected.voidpostEdgeReversed(EdgeEvent e)Called after the edge has been reversed.voidpostSourceNodeChanged(EdgeEvent e)Called after the source node of an edge has changed.voidpostTargetNodeChanged(EdgeEvent e)Called after the target node of an edge has changed.voidpreDirectedChanged(EdgeEvent e)Called before the edge is set directed or undirected.voidpreEdgeReversed(EdgeEvent e)Called before the edge is going to be reversed.voidpreSourceNodeChanged(EdgeEvent e)Called before a change of the source node of an edge takes place.voidpreTargetNodeChanged(EdgeEvent e)Called before a change of the target node of an edge takes place.voidtransactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)Called when a transaction has stopped.voidtransactionStarted(TransactionEvent e)Called when a transaction has started.
-
Constructor Details
-
EdgeAdapter
public EdgeAdapter()
-
-
Method Details
-
transactionFinished
public void transactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)Description copied from interface:TransactionListenerCalled when a transaction has stopped.
The classTransactionHashMapmerges duplicateAttributeEvents. In case the Attribute path for the sameAttributableis not equal, detailed information about Attribute path is lost. Instead a genericAttributeEventcontaining just theAttributableis in the list of changed Objects (seeTransactionEvent).
In case no detailed information about an Attribute change is available, your code should completely re-process the affectedAttributable.- Specified by:
transactionFinishedin interfaceTransactionListener- Parameters:
e- the EdgeEvent detailing the changes.
-
transactionStarted
Description copied from interface:TransactionListenerCalled when a transaction has started.- Specified by:
transactionStartedin interfaceTransactionListener- Parameters:
e- the EdgeEvent detailing the changes.
-
postDirectedChanged
Description copied from interface:EdgeListenerCalled after the edge was set directed or undirected.- Specified by:
postDirectedChangedin interfaceEdgeListener- Parameters:
e- the EdgeEvent detailing the changes.
-
postEdgeReversed
Description copied from interface:EdgeListenerCalled after the edge has been reversed.- Specified by:
postEdgeReversedin interfaceEdgeListener- Parameters:
e- the EdgeEvent detailing the changes.
-
postSourceNodeChanged
Description copied from interface:EdgeListenerCalled after the source node of an edge has changed.- Specified by:
postSourceNodeChangedin interfaceEdgeListener- Parameters:
e- the EdgeEvent detailing the changes.
-
postTargetNodeChanged
Description copied from interface:EdgeListenerCalled after the target node of an edge has changed.- Specified by:
postTargetNodeChangedin interfaceEdgeListener- Parameters:
e- the EdgeEvent detailing the changes.
-
preDirectedChanged
Description copied from interface:EdgeListenerCalled before the edge is set directed or undirected.- Specified by:
preDirectedChangedin interfaceEdgeListener- Parameters:
e- the EdgeEvent detailing the changes.
-
preEdgeReversed
Description copied from interface:EdgeListenerCalled before the edge is going to be reversed.- Specified by:
preEdgeReversedin interfaceEdgeListener- Parameters:
e- the EdgeEvent detailing the changes.
-
preSourceNodeChanged
Description copied from interface:EdgeListenerCalled before a change of the source node of an edge takes place.- Specified by:
preSourceNodeChangedin interfaceEdgeListener- Parameters:
e- the EdgeEvent detailing the changes.
-
preTargetNodeChanged
Description copied from interface:EdgeListenerCalled before a change of the target node of an edge takes place.- Specified by:
preTargetNodeChangedin interfaceEdgeListener- Parameters:
e- the EdgeEvent detailing the changes.
-