Lines Matching refs:node
33 * A NameNode represents a node in the DNS namespace. Each node
35 * node at Sun.COM has label "Sun"). Each node has a hashtable of
38 * <p> A node may be addressed from another by giving a DnsName
39 * consisting of the sequence of labels from one node to the other.
41 * <p> Each node also has an <tt>isZoneCut</tt> flag, used to indicate
42 * if the node is a zone cut. A zone cut is a node with an NS record
53 private String label; // name of this node relative to its
56 private boolean isZoneCut = false; // true if this node is a zone cut
73 * Returns the name of this node relative to its parent, or null for
81 * Returns the depth of this node in the tree. The depth of the root
97 * Returns the children of this node, or null if there are none.
105 * Returns the child node given the hash key (the down-cased label)
106 * for its name relative to this node, or null if there is no such
116 * Returns the node at the end of a path, or null if the
117 * node does not exist.
122 NameNode node = this;
123 for (int i = idx; i < name.size() && node != null; i++) {
124 node = node.get(name.getKey(i));
126 return node;
130 * Returns the node at the end of a path, creating it and any
136 NameNode node = this;
142 if (node.children == null) {
143 node.children = new Hashtable();
145 child = (NameNode) node.children.get(key);
149 child.depth = node.depth + 1;
150 node.children.put(key, child);
152 node = child;
154 return node;