KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hudson > model > TopLevelItem


1 package hudson.model;
2
3 import hudson.ExtensionPoint;
4
5 /**
6  * {@link Item} that can be directly displayed under {@link Hudson}.
7  *
8  * <p>
9  * To register a custom {@link TopLevelItem} class from a plugin, add it to
10  * {@link Items#LIST}. Also see {@link Items#XSTREAM}.
11  *
12  * @author Kohsuke Kawaguchi
13  */

14 public interface TopLevelItem extends Item, ExtensionPoint, Describable<TopLevelItem> {
15     /**
16      * By definition the parent of the top-level item is always {@link Hudson}.
17      */

18     Hudson getParent();
19
20     /**
21      *
22      * @see Describable#getDescriptor()
23      */

24     TopLevelItemDescriptor getDescriptor();
25 }
26
Popular Tags