public class NamingNode<T> extends Object
| Constructor and Description |
|---|
NamingNode(Text name,
NamingNode parent)
Create new instance of Naming node
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach(T attachment)
Attaches object to this node.
|
NamingNode<T> |
createChild(Text name)
Creates new child node.
|
NamingNode |
find(Text[] path,
int n)
Gets the node specified by the path
|
Text |
getName()
Gets the name of this node.
|
NamingNode |
getParent()
Gets the parent node.
|
T |
poll()
Gets the object attached to this node.
|
String |
toString() |
public NamingNode(Text name, NamingNode parent)
name - the name of this node.parent - the parent node.public Text getName()
public NamingNode getParent()
public NamingNode<T> createChild(Text name)
name - the name of child node to be createdpublic NamingNode find(Text[] path, int n)
path - the path to the requested noden - the length of the pathpublic void attach(T attachment)
attachment - the object to be attachedpublic T poll()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.