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