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