1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 /***
19 * <p>Title: WSMO Studio</p>
20 * <p>Description: Semantic Web Service Editor</p>
21 * <p>Copyright: Copyright (c) 2004-2006</p>
22 * <p>Company: OntoText Lab. / SIRMA </p>
23 */
24
25 package org.wsmostudio.ui.views.navigator;
26
27 /***
28 * An essential part of the WSMO Navigator's extension point <code>org.wsmostudio.ui.navigator_content</code>.
29 * It determines the required behaviour for the extensions which introduce new entities to
30 * the hierarchical tree structure.
31 *
32 * @author not attributable
33 * @version $Revision: 1.3 $ $Date: 2006/01/09 12:51:14 $
34 */
35
36 public interface TreeProvider {
37
38 /***
39 *
40 * @param parent
41 * @return the visual (ordered) content of the input object.
42 */
43 Object[] getChildren(Object parent);
44
45 /***
46 *
47 * @param parent
48 * @return <code>true</code> if the input object can have visual content.
49 */
50 boolean hasChildren(Object parent);
51
52 /***
53 *
54 * @param entity
55 * @return the label which presents the input object in the Navigator view.
56 */
57 String labelFor(Object entity);
58 }
59
60
61
62
63
64
65
66
67
68
69
70
71