Interface ContextManager.Association

  • Enclosing class:
    ContextManager

    public static interface ContextManager.Association
    Creates parent and child associations to the target context node.

    Mutations performed to the parent and child node sets of the target node are also accompanied by the equivalent changes to the reverse relationship in the supplied object's context node. This ensures that parent/child relationships are properly consistent.

    • Method Detail

      • withChild

        ContextManager.Association withChild​(java.lang.Object child)
        Adds the supplied object's context node as a child of the target context node.
        Parameters:
        child - object whose context node will be associated
        Returns:
        this association object
      • withParent

        ContextManager.Association withParent​(java.lang.Object parent)
        Adds the supplied object's context node as a parent of the target context node.
        Parameters:
        parent - object whose context node will be associated
        Returns:
        this association object