KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > common > tree > Node


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.common.tree;
10
11 import org.jboss.portal.common.FQN;
12
13 import java.util.Map JavaDoc;
14 import java.util.prefs.NodeChangeListener JavaDoc;
15
16 /**
17  * A node of the tree.
18  *
19  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
20  * @version $Revision: 1.1 $
21  */

22 public interface Node
23 {
24    /**
25     * Return the node id.
26     */

27    FQN getID();
28
29    /**
30     * Return the node name.
31     */

32    String JavaDoc getName();
33
34    /**
35     * Return the property for this key or null if it does not exist.
36     */

37    Object JavaDoc getProperty(String JavaDoc name);
38
39    /**
40     * Returns a specific child of this node or null if it does not exist.
41     */

42    Node getChild(String JavaDoc key);
43
44    /**
45     * Returns a immutable map containing all the children of this node.
46     */

47    Map JavaDoc getChildren();
48 }
49
Popular Tags