View Javadoc
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.5.1,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.plugin.lifecycle;
25  
26  /**
27   * A phase mapping definition.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class Phase
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * The ID of this phase, e.g., <code>generate-sources</code>.
42       */
43      private String id;
44  
45      /**
46       * Field executions.
47       */
48      private java.util.List<Execution> executions;
49  
50      /**
51       * Configuration to pass to all goals run in this phase.
52       */
53      private Object configuration;
54  
55  
56        //-----------/
57       //- Methods -/
58      //-----------/
59  
60      /**
61       * Method addExecution.
62       * 
63       * @param execution a execution object.
64       */
65      public void addExecution( Execution execution )
66      {
67          getExecutions().add( execution );
68      } //-- void addExecution( Execution )
69  
70      /**
71       * Get configuration to pass to all goals run in this phase.
72       * 
73       * @return Object
74       */
75      public Object getConfiguration()
76      {
77          return this.configuration;
78      } //-- Object getConfiguration()
79  
80      /**
81       * Method getExecutions.
82       * 
83       * @return List
84       */
85      public java.util.List<Execution> getExecutions()
86      {
87          if ( this.executions == null )
88          {
89              this.executions = new java.util.ArrayList<Execution>();
90          }
91  
92          return this.executions;
93      } //-- java.util.List<Execution> getExecutions()
94  
95      /**
96       * Get the ID of this phase, e.g.,
97       * <code>generate-sources</code>.
98       * 
99       * @return String
100      */
101     public String getId()
102     {
103         return this.id;
104     } //-- String getId()
105 
106     /**
107      * Method removeExecution.
108      * 
109      * @param execution a execution object.
110      */
111     public void removeExecution( Execution execution )
112     {
113         getExecutions().remove( execution );
114     } //-- void removeExecution( Execution )
115 
116     /**
117      * Set configuration to pass to all goals run in this phase.
118      * 
119      * @param configuration a configuration object.
120      */
121     public void setConfiguration( Object configuration )
122     {
123         this.configuration = configuration;
124     } //-- void setConfiguration( Object )
125 
126     /**
127      * Set the goals to execute within the phase.
128      * 
129      * @param executions a executions object.
130      */
131     public void setExecutions( java.util.List<Execution> executions )
132     {
133         this.executions = executions;
134     } //-- void setExecutions( java.util.List )
135 
136     /**
137      * Set the ID of this phase, e.g.,
138      * <code>generate-sources</code>.
139      * 
140      * @param id a id object.
141      */
142     public void setId( String id )
143     {
144         this.id = id;
145     } //-- void setId( String )
146 
147 }