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
19
20 public class Lifecycle implements java.io.Serializable {
21
22
23
24
25
26
27
28
29
30
31 private String id;
32
33
34
35
36 private java.util.List phases;
37
38
39
40
41
42
43
44
45
46
47
48 public void addPhase( Phase phase )
49 {
50 if ( !(phase instanceof Phase) )
51 {
52 throw new ClassCastException( "Lifecycle.addPhases(phase) parameter must be instanceof " + Phase.class.getName() );
53 }
54 getPhases().add( phase );
55 }
56
57
58
59
60
61
62
63 public String getId()
64 {
65 return this.id;
66 }
67
68
69
70
71
72
73 public java.util.List getPhases()
74 {
75 if ( this.phases == null )
76 {
77 this.phases = new java.util.ArrayList();
78 }
79
80 return this.phases;
81 }
82
83
84
85
86
87
88 public void removePhase( Phase phase )
89 {
90 if ( !(phase instanceof Phase) )
91 {
92 throw new ClassCastException( "Lifecycle.removePhases(phase) parameter must be instanceof " + Phase.class.getName() );
93 }
94 getPhases().remove( phase );
95 }
96
97
98
99
100
101
102
103 public void setId( String id )
104 {
105 this.id = id;
106 }
107
108
109
110
111
112
113 public void setPhases( java.util.List phases )
114 {
115 this.phases = phases;
116 }
117
118
119 private String modelEncoding = "UTF-8";
120
121
122
123
124
125
126 public void setModelEncoding( String modelEncoding )
127 {
128 this.modelEncoding = modelEncoding;
129 }
130
131
132
133
134 public String getModelEncoding()
135 {
136 return modelEncoding;
137 }
138 }