Interface GraphChangeHandler

All Known Implementing Classes:
ChildDiffLoader

public interface GraphChangeHandler
Defines callback API that can be used by object graph nodes to notify of their state changes. Graph nodes can be any objects as long as each node supports a notion of a unique id within the graph and each directional arc has a unique identifier within its source node.
Since:
1.2
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    arcCreated(ObjectId id, ObjectId targetId, ArcId arcId)
    Notifies implementing object that a new arc was created between two nodes.
    default void
    arcDeleted(ObjectId id, ObjectId targetId, ArcId arcId)
    Notifies implementing object that an arc between two nodes was deleted.
    default void
    Notifies implementing object that a new node was created in the graph.
    default void
    Notifies implementing object that a node was assigned a new id.
    default void
    nodePropertyChanged(ObjectId id, String property, Object oldValue, Object newValue)
    Notifies implementing object that a node's property was modified.
    default void
    Notifies implementing object that a node was removed from the graph.
  • Method Details

    • nodeIdChanged

      default void nodeIdChanged(ObjectId id, ObjectId newId)
      Notifies implementing object that a node was assigned a new id.
    • nodeCreated

      default void nodeCreated(ObjectId id)
      Notifies implementing object that a new node was created in the graph.
    • nodeRemoved

      default void nodeRemoved(ObjectId id)
      Notifies implementing object that a node was removed from the graph.
    • nodePropertyChanged

      default void nodePropertyChanged(ObjectId id, String property, Object oldValue, Object newValue)
      Notifies implementing object that a node's property was modified.
    • arcCreated

      default void arcCreated(ObjectId id, ObjectId targetId, ArcId arcId)
      Notifies implementing object that a new arc was created between two nodes.
    • arcDeleted

      default void arcDeleted(ObjectId id, ObjectId targetId, ArcId arcId)
      Notifies implementing object that an arc between two nodes was deleted.