1
2
3
4
5
6
7
8 package org.apache.maven.plugin.lifecycle;
9
10
11
12
13
14
15 public class Execution
16 implements java.io.Serializable
17 {
18
19
20
21
22
23
24
25
26 private Object configuration;
27
28
29
30
31 private java.util.List<String> goals;
32
33
34
35
36
37
38
39
40
41
42
43 public void addGoal( String string )
44 {
45 if ( !(string instanceof String) )
46 {
47 throw new ClassCastException( "Execution.addGoals(string) parameter must be instanceof " + String.class.getName() );
48 }
49 getGoals().add( string );
50 }
51
52
53
54
55
56
57 public Object getConfiguration()
58 {
59 return this.configuration;
60 }
61
62
63
64
65
66
67 public java.util.List<String> getGoals()
68 {
69 if ( this.goals == null )
70 {
71 this.goals = new java.util.ArrayList<String>();
72 }
73
74 return this.goals;
75 }
76
77
78
79
80
81
82 public void removeGoal( String string )
83 {
84 if ( !(string instanceof String) )
85 {
86 throw new ClassCastException( "Execution.removeGoals(string) parameter must be instanceof " + String.class.getName() );
87 }
88 getGoals().remove( string );
89 }
90
91
92
93
94
95
96 public void setConfiguration( Object configuration )
97 {
98 this.configuration = configuration;
99 }
100
101
102
103
104
105
106 public void setGoals( java.util.List<String> goals )
107 {
108 this.goals = goals;
109 }
110
111
112 }