Package com._1c.g5.v8.dt.common
Interface IEObjectTrie.INode
-
- Enclosing interface:
- IEObjectTrie
public static interface IEObjectTrie.INode
TheIEObjectTrie
node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IEObjectTrie.INode
getChild(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.int
getDepth()
Returns the depth in the trie.org.eclipse.emf.ecore.EObject
getEObject()
Gets the storedEObject
.IEObjectTrie.INode
getParent()
Returns the parent node.String
getParentLink()
Returns the link from parent to this node.boolean
hasChildren()
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 Detail
-
getEObject
org.eclipse.emf.ecore.EObject getEObject()
Gets the storedEObject
.- Returns:
- the stored
EObject
or 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()
Returnstrue
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 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:
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
-
-