1
2
3
4
5
6
7
8 package org.apache.maven.plugin.lifecycle;
9
10
11
12
13
14
15 public class Phase
16 implements java.io.Serializable
17 {
18
19
20
21
22
23
24
25
26 private String id;
27
28
29
30
31 private java.util.List<Execution> executions;
32
33
34
35
36 private Object configuration;
37
38
39
40
41
42
43
44
45
46
47
48 public void addExecution( Execution execution )
49 {
50 if ( !(execution instanceof Execution) )
51 {
52 throw new ClassCastException( "Phase.addExecutions(execution) parameter must be instanceof " + Execution.class.getName() );
53 }
54 getExecutions().add( execution );
55 }
56
57
58
59
60
61
62 public Object getConfiguration()
63 {
64 return this.configuration;
65 }
66
67
68
69
70
71
72 public java.util.List<Execution> getExecutions()
73 {
74 if ( this.executions == null )
75 {
76 this.executions = new java.util.ArrayList<Execution>();
77 }
78
79 return this.executions;
80 }
81
82
83
84
85
86
87 public String getId()
88 {
89 return this.id;
90 }
91
92
93
94
95
96
97 public void removeExecution( Execution execution )
98 {
99 if ( !(execution instanceof Execution) )
100 {
101 throw new ClassCastException( "Phase.removeExecutions(execution) parameter must be instanceof " + Execution.class.getName() );
102 }
103 getExecutions().remove( execution );
104 }
105
106
107
108
109
110
111 public void setConfiguration( Object configuration )
112 {
113 this.configuration = configuration;
114 }
115
116
117
118
119
120
121 public void setExecutions( java.util.List<Execution> executions )
122 {
123 this.executions = executions;
124 }
125
126
127
128
129
130
131 public void setId( String id )
132 {
133 this.id = id;
134 }
135
136
137 }