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