Package com._1c.g5.v8.dt.common
Interface IEObjectTrie.INode
- Enclosing interface:
- IEObjectTrie
public static interface IEObjectTrie.INode
The
IEObjectTrie
node.-
Method Summary
Modifier and TypeMethodDescriptionGets the child node associated with the given name.Gets the children nodes.Gets the children links.int
getDepth()
Returns the depth in the trie.org.eclipse.emf.ecore.EObject
Gets the storedEObject
.Returns the parent node.Returns the link from parent to this node.boolean
Returnstrue
if node has children nodes.boolean
removeChild
(String childName) Deletes the child node associated with the given name.void
setEObject
(org.eclipse.emf.ecore.EObject eObject) Sets the givenEObject
to this node.
-
Method Details
-
getEObject
org.eclipse.emf.ecore.EObject getEObject()Gets the storedEObject
.- Returns:
- the stored
EObject
or a proxy, may benull
-
getChildrenLinks
Gets the children links.- Returns:
- the children links, can not be
null
-
getChildren
Collection<IEObjectTrie.INode> getChildren()Gets the children nodes.- Returns:
- the children nodes, can not be
null
-
hasChildren
boolean hasChildren()Returnstrue
if node has children nodes.- Returns:
true
if node has children nodes.
-
getChild
Gets the child node associated with the given name.- Parameters:
childName
- the given child name, can not benull
- Returns:
- the child node, can be
null
-
removeChild
Deletes the child node associated with the given name.- Parameters:
childName
- the given child name, can not benull
- 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 is0
.- Returns:
- the depth in the trie
-
setEObject
void setEObject(org.eclipse.emf.ecore.EObject eObject) Sets the givenEObject
to this node.- Parameters:
eObject
- the givenEObject
, can not benull
-