File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\hudson\model\BuildableItemWithBuildWrappers.java.html

1 package hudson.model;
2
3 import hudson.tasks.BuildWrapper;
4 import hudson.util.DescribableList;
5
6 /**
7 * {@link AbstractProject} that has associated {@link BuildWrapper}s.
8 *
9 * @author Kohsuke Kawaguchi
10 * @since 1.335
11 */
12 public interface BuildableItemWithBuildWrappers extends BuildableItem {
13 /**
14 * {@link BuildableItemWithBuildWrappers} needs to be an instance of
15 * {@link AbstractProject}.
16 *
17 * <p>
18 * This method must be always implemented as {@code (AbstractProject)this}, but
19 * defining this method emphasizes the fact that this cast must be doable.
20 */
21 AbstractProject<?,?> asProject();
22
23 /**
24 * {@link BuildWrapper}s associated with this {@link AbstractProject}.
25 *
26 * @return
27 * can be empty but never null. This list is live, and changes to it will be reflected
28 * to the project configuration.
29 */
30 DescribableList<BuildWrapper,Descriptor<BuildWrapper>> getBuildWrappersList();
31 }
32
33