KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hudson > model > SCMedItem


1 package hudson.model;
2
3 import hudson.scm.SCM;
4 import hudson.triggers.SCMTrigger;
5
6 /**
7  * {@link Item}s that has associated SCM.
8  *
9  * @author Kohsuke Kawaguchi
10  * @see SCMTrigger
11  */

12 public interface SCMedItem extends BuildableItem {
13     /**
14      * Gets the {@link SCM} for this item.
15      *
16      * @return
17      * may return null for indicating "no SCM".
18      */

19     SCM getScm();
20
21     /**
22      * {@link SCMedItem} needs to be an instance of
23      * {@link AbstractProject}.
24      *
25      * This method does {@code (AbstractProject)this} but emphasizes
26      * the fact that this cast must be doable.
27      */

28     AbstractProject<?,?> asProject();
29
30     /**
31      * Checks if there's any update in SCM, and returns true if any is found.
32      *
33      * <p>
34      * The caller is responsible for coordinating the mutual exclusion between
35      * a build and polling, as both touches the workspace.
36      */

37     boolean pollSCMChanges( TaskListener listener );
38 }
39
Popular Tags