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