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