Interface HasParent<P,​T extends HasParent<P,​T>>

    • Method Detail

      • setParent

        T setParent​(P parent)
        Sets the parent of this model. This method should only be invoked by other models when they add a new child, it should not be invoked directly.
        Parameters:
        parent - the parent
        Returns:
        this instance
      • getParent

        Optional<P> getParent()
        Returns the parent model if one exists, otherwise an empty Optional.
        Returns:
        the parent node if one exists