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    * A phase mapping definition.
10   * 
11   * @version $Revision$ $Date$
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, e.g., <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, e.g.,
79       * <code>generate-sources</code>.
80       * 
81       * @return String
82       */
83      public String getId()
84      {
85          return this.id;
86      } //-- String getId()
87  
88      /**
89       * Method removeExecution.
90       * 
91       * @param execution
92       */
93      public void removeExecution( Execution execution )
94      {
95          getExecutions().remove( execution );
96      } //-- void removeExecution( Execution )
97  
98      /**
99       * Set configuration to pass to all goals run in this phase.
100      * 
101      * @param configuration
102      */
103     public void setConfiguration( Object configuration )
104     {
105         this.configuration = configuration;
106     } //-- void setConfiguration( Object )
107 
108     /**
109      * Set the goals to execute within the phase.
110      * 
111      * @param executions
112      */
113     public void setExecutions( java.util.List<Execution> executions )
114     {
115         this.executions = executions;
116     } //-- void setExecutions( java.util.List )
117 
118     /**
119      * Set the ID of this phase, e.g.,
120      * <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 }