1 /*
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 =================== DO NOT EDIT THIS FILE ====================
19 Generated by Modello 2.4.0,
20 any modifications will be overwritten.
21 ==============================================================
22 */
23
24 package org.apache.maven.plugin.lifecycle;
25
26 /**
27 *
28 * A custom lifecycle mapping definition.
29 *
30 *
31 * @version $Revision$ $Date$
32 */
33 @SuppressWarnings( "all" )
34 public class Lifecycle
35 implements java.io.Serializable
36 {
37
38 //--------------------------/
39 //- Class/Member Variables -/
40 //--------------------------/
41
42 /**
43 * The ID of this lifecycle, for identification in the mojo
44 * descriptor.
45 */
46 private String id;
47
48 /**
49 * Field phases.
50 */
51 private java.util.List<Phase> phases;
52
53
54 //-----------/
55 //- Methods -/
56 //-----------/
57
58 /**
59 * Method addPhase.
60 *
61 * @param phase a phase object.
62 */
63 public void addPhase( Phase phase )
64 {
65 getPhases().add( phase );
66 } //-- void addPhase( Phase )
67
68 /**
69 * Get the ID of this lifecycle, for identification in the mojo
70 * descriptor.
71 *
72 * @return String
73 */
74 public String getId()
75 {
76 return this.id;
77 } //-- String getId()
78
79 /**
80 * Method getPhases.
81 *
82 * @return List
83 */
84 public java.util.List<Phase> getPhases()
85 {
86 if ( this.phases == null )
87 {
88 this.phases = new java.util.ArrayList<Phase>();
89 }
90
91 return this.phases;
92 } //-- java.util.List<Phase> getPhases()
93
94 /**
95 * Method removePhase.
96 *
97 * @param phase a phase object.
98 */
99 public void removePhase( Phase phase )
100 {
101 getPhases().remove( phase );
102 } //-- void removePhase( Phase )
103
104 /**
105 * Set the ID of this lifecycle, for identification in the mojo
106 * descriptor.
107 *
108 * @param id a id object.
109 */
110 public void setId( String id )
111 {
112 this.id = id;
113 } //-- void setId( String )
114
115 /**
116 * Set the phase mappings for this lifecycle.
117 *
118 * @param phases a phases object.
119 */
120 public void setPhases( java.util.List<Phase> phases )
121 {
122 this.phases = phases;
123 } //-- void setPhases( java.util.List )
124
125 }