001    // =================== DO NOT EDIT THIS FILE ====================
002    // Generated by Modello 1.7,
003    // any modifications will be overwritten.
004    // ==============================================================
005    
006    package org.apache.maven.plugin.lifecycle;
007    
008    /**
009     * A phase mapping definition.
010     * 
011     * @version $Revision$ $Date$
012     */
013    @SuppressWarnings( "all" )
014    public class Phase
015        implements java.io.Serializable
016    {
017    
018          //--------------------------/
019         //- Class/Member Variables -/
020        //--------------------------/
021    
022        /**
023         * The ID of this phase, eg <code>generate-sources</code>.
024         */
025        private String id;
026    
027        /**
028         * Field executions.
029         */
030        private java.util.List<Execution> executions;
031    
032        /**
033         * Configuration to pass to all goals run in this phase.
034         */
035        private Object configuration;
036    
037    
038          //-----------/
039         //- Methods -/
040        //-----------/
041    
042        /**
043         * Method addExecution.
044         * 
045         * @param execution
046         */
047        public void addExecution( Execution execution )
048        {
049            getExecutions().add( execution );
050        } //-- void addExecution( Execution )
051    
052        /**
053         * Get configuration to pass to all goals run in this phase.
054         * 
055         * @return Object
056         */
057        public Object getConfiguration()
058        {
059            return this.configuration;
060        } //-- Object getConfiguration()
061    
062        /**
063         * Method getExecutions.
064         * 
065         * @return List
066         */
067        public java.util.List<Execution> getExecutions()
068        {
069            if ( this.executions == null )
070            {
071                this.executions = new java.util.ArrayList<Execution>();
072            }
073    
074            return this.executions;
075        } //-- java.util.List<Execution> getExecutions()
076    
077        /**
078         * Get the ID of this phase, eg <code>generate-sources</code>.
079         * 
080         * @return String
081         */
082        public String getId()
083        {
084            return this.id;
085        } //-- String getId()
086    
087        /**
088         * Method removeExecution.
089         * 
090         * @param execution
091         */
092        public void removeExecution( Execution execution )
093        {
094            getExecutions().remove( execution );
095        } //-- void removeExecution( Execution )
096    
097        /**
098         * Set configuration to pass to all goals run in this phase.
099         * 
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    }