Interface IEObjectTrie.INode

Enclosing interface:
IEObjectTrie

public static interface IEObjectTrie.INode
The IEObjectTrie node.
  • Method Details

    • getEObject

      org.eclipse.emf.ecore.EObject getEObject()
      Gets the stored EObject.
      Returns:
      the stored EObject or a proxy, may be null
    • getChildrenLinks

      Set<String> getChildrenLinks()
      Gets the children links.
      Returns:
      the children links, can not be null
    • getChildren

      Gets the children nodes.
      Returns:
      the children nodes, can not be null
    • hasChildren

      boolean hasChildren()
      Returns true if node has children nodes.
      Returns:
      true if node has children nodes.
    • getChild

      IEObjectTrie.INode getChild(String childName)
      Gets the child node associated with the given name.
      Parameters:
      childName - the given child name, can not be null
      Returns:
      the child node, can be null
    • removeChild

      boolean removeChild(String childName)
      Deletes the child node associated with the given name.
      Parameters:
      childName - the given child name, can not be null
      Returns:
      true if the child node associated with the given name was deleted, false otherwise
    • getParent

      IEObjectTrie.INode getParent()
      Returns the parent node.
      Returns:
      the parent node or null if there is no parent
    • getParentLink

      String getParentLink()
      Returns the link from parent to this node.
      Returns:
      the link from parent to this node or null if there is no parent
    • getDepth

      int getDepth()
      Returns the depth in the trie. The trie root depth is 0.
      Returns:
      the depth in the trie
    • setEObject

      void setEObject(org.eclipse.emf.ecore.EObject eObject)
      Sets the given EObject to this node.
      Parameters:
      eObject - the given EObject, can not be null