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.intgetDepth()Returns the depth in the trie.org.eclipse.emf.ecore.EObjectGets the storedEObject.Returns the parent node.Returns the link from parent to this node.booleanReturnstrueif node has children nodes.booleanremoveChild(String childName) Deletes the child node associated with the given name.voidsetEObject(org.eclipse.emf.ecore.EObject eObject) Sets the givenEObjectto this node.
-
Method Details
-
getEObject
org.eclipse.emf.ecore.EObject getEObject()Gets the storedEObject.- Returns:
- the stored
EObjector 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()Returnstrueif node has children nodes.- Returns:
trueif 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:
trueif the child node associated with the given name was deleted,falseotherwise
-
getParent
IEObjectTrie.INode getParent()Returns the parent node.- Returns:
- the parent node or
nullif there is no parent
-
getParentLink
String getParentLink()Returns the link from parent to this node.- Returns:
- the link from parent to this node or
nullif 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 givenEObjectto this node.- Parameters:
eObject- the givenEObject, can not benull
-