1 /*
2 =================== DO NOT EDIT THIS FILE ====================
3 Generated by Modello 1.4.1 on 2013-02-24 03:34:48,
4 any modifications will be overwritten.
5 ==============================================================
6 */
7
8 package org.apache.maven.plugin.lifecycle;
9
10 /**
11 *
12 * A custom lifecycle mapping definition.
13 *
14 *
15 * @version $Revision$ $Date$
16 */
17 @SuppressWarnings( "all" )
18 public class Lifecycle
19 implements java.io.Serializable
20 {
21
22 //--------------------------/
23 //- Class/Member Variables -/
24 //--------------------------/
25
26 /**
27 * The ID of this lifecycle, for identification in the mojo
28 * descriptor.
29 */
30 private String id;
31
32 /**
33 * Field phases.
34 */
35 private java.util.List<Phase> phases;
36
37
38 //-----------/
39 //- Methods -/
40 //-----------/
41
42 /**
43 * Method addPhase.
44 *
45 * @param phase
46 */
47 public void addPhase( Phase phase )
48 {
49 getPhases().add( phase );
50 } //-- void addPhase( Phase )
51
52 /**
53 * Get the ID of this lifecycle, for identification in the mojo
54 * descriptor.
55 *
56 * @return String
57 */
58 public String getId()
59 {
60 return this.id;
61 } //-- String getId()
62
63 /**
64 * Method getPhases.
65 *
66 * @return List
67 */
68 public java.util.List<Phase> getPhases()
69 {
70 if ( this.phases == null )
71 {
72 this.phases = new java.util.ArrayList<Phase>();
73 }
74
75 return this.phases;
76 } //-- java.util.List<Phase> getPhases()
77
78 /**
79 * Method removePhase.
80 *
81 * @param phase
82 */
83 public void removePhase( Phase phase )
84 {
85 getPhases().remove( phase );
86 } //-- void removePhase( Phase )
87
88 /**
89 * Set the ID of this lifecycle, for identification in the mojo
90 * descriptor.
91 *
92 * @param id
93 */
94 public void setId( String id )
95 {
96 this.id = id;
97 } //-- void setId( String )
98
99 /**
100 * Set the phase mappings for this lifecycle.
101 *
102 * @param phases
103 */
104 public void setPhases( java.util.List<Phase> phases )
105 {
106 this.phases = phases;
107 } //-- void setPhases( java.util.List )
108
109 }