View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2012-01-20 18:05:12,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.plugin.lifecycle;
9   
10  /**
11   * A phase mapping definition.
12   * 
13   * @version $Revision$ $Date$
14   */
15  @SuppressWarnings( "all" )
16  public class Phase
17      implements java.io.Serializable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * The ID of this phase, eg <code>generate-sources</code>.
26       */
27      private String id;
28  
29      /**
30       * Field executions.
31       */
32      private java.util.List<Execution> executions;
33  
34      /**
35       * Configuration to pass to all goals run in this phase.
36       */
37      private Object configuration;
38  
39  
40        //-----------/
41       //- Methods -/
42      //-----------/
43  
44      /**
45       * Method addExecution.
46       * 
47       * @param execution
48       */
49      public void addExecution( Execution execution )
50      {
51          getExecutions().add( execution );
52      } //-- void addExecution( Execution )
53  
54      /**
55       * Get configuration to pass to all goals run in this phase.
56       * 
57       * @return Object
58       */
59      public Object getConfiguration()
60      {
61          return this.configuration;
62      } //-- Object getConfiguration()
63  
64      /**
65       * Method getExecutions.
66       * 
67       * @return List
68       */
69      public java.util.List<Execution> getExecutions()
70      {
71          if ( this.executions == null )
72          {
73              this.executions = new java.util.ArrayList<Execution>();
74          }
75  
76          return this.executions;
77      } //-- java.util.List<Execution> getExecutions()
78  
79      /**
80       * Get the ID of this phase, eg <code>generate-sources</code>.
81       * 
82       * @return String
83       */
84      public String getId()
85      {
86          return this.id;
87      } //-- String getId()
88  
89      /**
90       * Method removeExecution.
91       * 
92       * @param execution
93       */
94      public void removeExecution( Execution execution )
95      {
96          getExecutions().remove( execution );
97      } //-- void removeExecution( Execution )
98  
99      /**
100      * Set configuration to pass to all goals run in this phase.
101      * 
102      * @param configuration
103      */
104     public void setConfiguration( Object configuration )
105     {
106         this.configuration = configuration;
107     } //-- void setConfiguration( Object )
108 
109     /**
110      * Set the goals to execute within the phase.
111      * 
112      * @param executions
113      */
114     public void setExecutions( java.util.List<Execution> executions )
115     {
116         this.executions = executions;
117     } //-- void setExecutions( java.util.List )
118 
119     /**
120      * Set the ID of this phase, eg <code>generate-sources</code>.
121      * 
122      * @param id
123      */
124     public void setId( String id )
125     {
126         this.id = id;
127     } //-- void setId( String )
128 
129 }