Lines Matching refs:node

45  * Represents a node in an SNMP MIB which is neither a group nor a variable.
75 * @param req The sub-request that must be handled by this node.
98 * @param req The sub-request that must be handled by this node.
121 * @param req The sub-request that must be handled by this node.
153 SnmpMibNode node = null;
175 // a table: we register this node.
202 SnmpMibNode node = null;
272 // If a node has several children, let assume that we are one step to
287 * Registers a specific node in the tree.
289 public void registerNode(String oidString ,SnmpMibNode node)
292 registerNode(oid.longValue(), 0, node);
299 * Registers a specific node in the tree.
301 void registerNode(long[] oid, int cursor ,SnmpMibNode node)
307 // Check if the node is already defined
326 children.insertElementAt(node,pos);
330 //System.out.println("Create node for val="
334 child.registerNode(oid, cursor + 1, node);
338 // The node is not yet registered
354 children.insertElementAt(node, newPos);
358 // System.out.println("Create node for val=" +
361 child.registerNode(oid, cursor + 1, node);
365 // The node is already registered
371 if (child == node) return;
372 if (child != null && node != null) {
375 // we're going to replace the father OID node with
376 // the actual group-node and export the children from
377 // the temporary OID node to the actual group node.
380 if (node instanceof SnmpMibGroup) {
381 // `node' is a group => replace `child' with `node'
382 // export the child's subtree to `node'.
384 ((SnmpMibOid)child).exportChildren((SnmpMibOid)node);
385 children.setElementAt(node,pos);
388 } else if ((node instanceof SnmpMibOid) &&
390 // `node' is a temporary node, and `child' is a
391 // group => keep child and export the node's
394 ((SnmpMibOid)node).exportChildren((SnmpMibOid)child);
396 } else if (node instanceof SnmpMibOid) {
397 // `node' and `child' are both temporary OID nodes
398 // => replace `child' with `node' and export child's
399 // subtree to `node'.
401 ((SnmpMibOid)child).exportChildren((SnmpMibOid)node);
402 children.setElementAt(node,pos);
406 children.setElementAt(node,pos);
411 ((SnmpMibOid)child).registerNode(oid, cursor + 1, node);
417 * Export this node's children to a brother node that will replace
418 * this node in the OID tree.
420 * a subnode before its father node.
450 // Access the node