Package com._1c.g5.v8.dt.common
Interface IEObjectTrie.INode
-
- Enclosing interface:
- IEObjectTrie
public static interface IEObjectTrie.INodeTheIEObjectTrienode.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IEObjectTrie.INodegetChild(String childName)Gets the child node associated with the given name.Collection<IEObjectTrie.INode>getChildren()Gets the children nodes.Set<String>getChildrenLinks()Gets the children links.intgetDepth()Returns the depth in the trie.org.eclipse.emf.ecore.EObjectgetEObject()Gets the storedEObject.IEObjectTrie.INodegetParent()Returns the parent node.StringgetParentLink()Returns the link from parent to this node.booleanhasChildren()Returnstrueif 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 Detail
-
getEObject
org.eclipse.emf.ecore.EObject getEObject()
Gets the storedEObject.- Returns:
- the stored
EObjector a proxy, may benull
-
getChildrenLinks
Set<String> 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
IEObjectTrie.INode getChild(String childName)
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
boolean removeChild(String childName)
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
-
-