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 void
postDirectedChanged(EdgeEvent e)
Called after the edge was set directed or undirected.void
postEdgeReversed(EdgeEvent e)
Called after the edge has been reversed.void
postSourceNodeChanged(EdgeEvent e)
Called after the source node of an edge has changed.void
postTargetNodeChanged(EdgeEvent e)
Called after the target node of an edge has changed.void
preDirectedChanged(EdgeEvent e)
Called before the edge is set directed or undirected.void
preEdgeReversed(EdgeEvent e)
Called before the edge is going to be reversed.void
preSourceNodeChanged(EdgeEvent e)
Called before a change of the source node of an edge takes place.void
preTargetNodeChanged(EdgeEvent e)
Called before a change of the target node of an edge takes place.void
transactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)
Called when a transaction has stopped.void
transactionStarted(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:TransactionListener
Called when a transaction has stopped.
The classTransactionHashMap
merges duplicateAttributeEvent
s. In case the Attribute path for the sameAttributable
is not equal, detailed information about Attribute path is lost. Instead a genericAttributeEvent
containing just theAttributable
is 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:
transactionFinished
in interfaceTransactionListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
transactionStarted
Description copied from interface:TransactionListener
Called when a transaction has started.- Specified by:
transactionStarted
in interfaceTransactionListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
postDirectedChanged
Description copied from interface:EdgeListener
Called after the edge was set directed or undirected.- Specified by:
postDirectedChanged
in interfaceEdgeListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
postEdgeReversed
Description copied from interface:EdgeListener
Called after the edge has been reversed.- Specified by:
postEdgeReversed
in interfaceEdgeListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
postSourceNodeChanged
Description copied from interface:EdgeListener
Called after the source node of an edge has changed.- Specified by:
postSourceNodeChanged
in interfaceEdgeListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
postTargetNodeChanged
Description copied from interface:EdgeListener
Called after the target node of an edge has changed.- Specified by:
postTargetNodeChanged
in interfaceEdgeListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
preDirectedChanged
Description copied from interface:EdgeListener
Called before the edge is set directed or undirected.- Specified by:
preDirectedChanged
in interfaceEdgeListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
preEdgeReversed
Description copied from interface:EdgeListener
Called before the edge is going to be reversed.- Specified by:
preEdgeReversed
in interfaceEdgeListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
preSourceNodeChanged
Description copied from interface:EdgeListener
Called before a change of the source node of an edge takes place.- Specified by:
preSourceNodeChanged
in interfaceEdgeListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
preTargetNodeChanged
Description copied from interface:EdgeListener
Called before a change of the target node of an edge takes place.- Specified by:
preTargetNodeChanged
in interfaceEdgeListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-