Interface ChildElement<T extends ModelElementInstance>

    • Method Detail

      • setChild

        void setChild​(ModelElementInstance element,
                      T newChildElement)
        Sets the child element, potentially replacing an existing child element.
        Parameters:
        element - the parent element of the child element
        newChildElement - the new child element to set
      • getChild

        T getChild​(ModelElementInstance element)
        Returns the child element.
        Parameters:
        element - the parent element of the child element
        Returns:
        the child element of the parent, or null if not exist
      • removeChild

        boolean removeChild​(ModelElementInstance element)
        Removes the child element.
        Parameters:
        element - the parent element of the child element
        Returns:
        true if the child was remove otherwise false