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 set of goals to execute.
010     * 
011     * @version $Revision$ $Date$
012     */
013    @SuppressWarnings( "all" )
014    public class Execution
015        implements java.io.Serializable
016    {
017    
018          //--------------------------/
019         //- Class/Member Variables -/
020        //--------------------------/
021    
022        /**
023         * Configuration to pass to the goals.
024         */
025        private Object configuration;
026    
027        /**
028         * Field goals.
029         */
030        private java.util.List<String> goals;
031    
032    
033          //-----------/
034         //- Methods -/
035        //-----------/
036    
037        /**
038         * Method addGoal.
039         * 
040         * @param string
041         */
042        public void addGoal( String string )
043        {
044            getGoals().add( string );
045        } //-- void addGoal( String )
046    
047        /**
048         * Get configuration to pass to the goals.
049         * 
050         * @return Object
051         */
052        public Object getConfiguration()
053        {
054            return this.configuration;
055        } //-- Object getConfiguration()
056    
057        /**
058         * Method getGoals.
059         * 
060         * @return List
061         */
062        public java.util.List<String> getGoals()
063        {
064            if ( this.goals == null )
065            {
066                this.goals = new java.util.ArrayList<String>();
067            }
068    
069            return this.goals;
070        } //-- java.util.List<String> getGoals()
071    
072        /**
073         * Method removeGoal.
074         * 
075         * @param string
076         */
077        public void removeGoal( String string )
078        {
079            getGoals().remove( string );
080        } //-- void removeGoal( String )
081    
082        /**
083         * Set configuration to pass to the goals.
084         * 
085         * @param configuration
086         */
087        public void setConfiguration( Object configuration )
088        {
089            this.configuration = configuration;
090        } //-- void setConfiguration( Object )
091    
092        /**
093         * Set the goals to execute.
094         * 
095         * @param goals
096         */
097        public void setGoals( java.util.List<String> goals )
098        {
099            this.goals = goals;
100        } //-- void setGoals( java.util.List )
101    
102    }