Interface IEObjectTrie

  • All Known Implementing Classes:
    EObjectTrie

    public interface IEObjectTrie
    The interface of the auxiliary trie to store EObject's. The keys (or paths) of the trie are qualified names.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  IEObjectTrie.INode
      The IEObjectTrie node.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean belongsTo​(org.eclipse.xtext.naming.QualifiedName qualifiedName)
      Checks whether the special path belongs to this IEObjectTrie.
      Collection<IEObjectTrie.INode> getChildren​(org.eclipse.xtext.naming.QualifiedName qualifiedName)
      Gets the children of the trie node achievable by the given path.
      IEObjectTrie.INode getNode​(org.eclipse.xtext.naming.QualifiedName qualifiedName)
      Gets the trie node associated with the given path.
      Set<String> getRootOutgoingEdges()
      Gets the root outgoing edges.
      boolean hasChildren​(org.eclipse.xtext.naming.QualifiedName qualifiedName)
      Returns true if the trie node achievable by the given path has children.
      boolean remove​(org.eclipse.xtext.naming.QualifiedName qualifiedName)
      Deletes the trie node associated with the given path.
    • Method Detail

      • getNode

        IEObjectTrie.INode getNode​(org.eclipse.xtext.naming.QualifiedName qualifiedName)
        Gets the trie node associated with the given path.
        Parameters:
        qualifiedName - the given path, can not be null
        Returns:
        the node associated with the given path, may be null if no node achievable by the given path
      • getRootOutgoingEdges

        Set<String> getRootOutgoingEdges()
        Gets the root outgoing edges.
        Returns:
        the root outer edges, can not be null
      • getChildren

        Collection<IEObjectTrie.INode> getChildren​(org.eclipse.xtext.naming.QualifiedName qualifiedName)
        Gets the children of the trie node achievable by the given path.
        Parameters:
        qualifiedName - the given path, can not be null
        Returns:
        the children of the trie node, can not be null
      • hasChildren

        boolean hasChildren​(org.eclipse.xtext.naming.QualifiedName qualifiedName)
        Returns true if the trie node achievable by the given path has children.
        Parameters:
        qualifiedName - the given path, can not be null
        Returns:
        true if the trie node achievable by the given path has children.
      • belongsTo

        boolean belongsTo​(org.eclipse.xtext.naming.QualifiedName qualifiedName)
        Checks whether the special path belongs to this IEObjectTrie.
        Parameters:
        qualifiedName - the special path, can not be null
        Returns:
        true if the special path belongs to this IEObjectTrie and false otherwise
      • remove

        boolean remove​(org.eclipse.xtext.naming.QualifiedName qualifiedName)
        Deletes the trie node associated with the given path.
        Parameters:
        qualifiedName - the given path, can not be null
        Returns:
        true if node associated with the given path was deleted, false otherwise