Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Execution |
|
| 0.0;0 |
1 | /* | |
2 | =================== DO NOT EDIT THIS FILE ==================== | |
3 | Generated by Modello 1.0.1 on 2009-07-11 18:37:43, | |
4 | any modifications will be overwritten. | |
5 | ============================================================== | |
6 | */ | |
7 | ||
8 | package org.apache.maven.plugin.lifecycle; | |
9 | ||
10 | /** | |
11 | * A set of goals to execute. | |
12 | * | |
13 | * @version $Revision$ $Date$ | |
14 | */ | |
15 | 1 | public class Execution |
16 | implements java.io.Serializable | |
17 | { | |
18 | ||
19 | //--------------------------/ | |
20 | //- Class/Member Variables -/ | |
21 | //--------------------------/ | |
22 | ||
23 | /** | |
24 | * Configuration to pass to the goals. | |
25 | */ | |
26 | private Object configuration; | |
27 | ||
28 | /** | |
29 | * Field goals. | |
30 | */ | |
31 | private java.util.List<String> goals; | |
32 | ||
33 | ||
34 | //-----------/ | |
35 | //- Methods -/ | |
36 | //-----------/ | |
37 | ||
38 | /** | |
39 | * Method addGoal. | |
40 | * | |
41 | * @param string | |
42 | */ | |
43 | public void addGoal( String string ) | |
44 | { | |
45 | 0 | if ( !(string instanceof String) ) |
46 | { | |
47 | 0 | throw new ClassCastException( "Execution.addGoals(string) parameter must be instanceof " + String.class.getName() ); |
48 | } | |
49 | 0 | getGoals().add( string ); |
50 | 0 | } //-- void addGoal( String ) |
51 | ||
52 | /** | |
53 | * Get configuration to pass to the goals. | |
54 | * | |
55 | * @return Object | |
56 | */ | |
57 | public Object getConfiguration() | |
58 | { | |
59 | 1 | return this.configuration; |
60 | } //-- Object getConfiguration() | |
61 | ||
62 | /** | |
63 | * Method getGoals. | |
64 | * | |
65 | * @return List | |
66 | */ | |
67 | public java.util.List<String> getGoals() | |
68 | { | |
69 | 2 | if ( this.goals == null ) |
70 | { | |
71 | 0 | this.goals = new java.util.ArrayList<String>(); |
72 | } | |
73 | ||
74 | 2 | return this.goals; |
75 | } //-- java.util.List<String> getGoals() | |
76 | ||
77 | /** | |
78 | * Method removeGoal. | |
79 | * | |
80 | * @param string | |
81 | */ | |
82 | public void removeGoal( String string ) | |
83 | { | |
84 | 0 | if ( !(string instanceof String) ) |
85 | { | |
86 | 0 | throw new ClassCastException( "Execution.removeGoals(string) parameter must be instanceof " + String.class.getName() ); |
87 | } | |
88 | 0 | getGoals().remove( string ); |
89 | 0 | } //-- void removeGoal( String ) |
90 | ||
91 | /** | |
92 | * Set configuration to pass to the goals. | |
93 | * | |
94 | * @param configuration | |
95 | */ | |
96 | public void setConfiguration( Object configuration ) | |
97 | { | |
98 | 1 | this.configuration = configuration; |
99 | 1 | } //-- void setConfiguration( Object ) |
100 | ||
101 | /** | |
102 | * Set the goals to execute. | |
103 | * | |
104 | * @param goals | |
105 | */ | |
106 | public void setGoals( java.util.List<String> goals ) | |
107 | { | |
108 | 1 | this.goals = goals; |
109 | 1 | } //-- void setGoals( java.util.List ) |
110 | ||
111 | ||
112 | } |