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     * 
012     *         A custom lifecycle mapping definition.
013     *       
014     * 
015     * @version $Revision$ $Date$
016     */
017    @SuppressWarnings( "all" )
018    public class Lifecycle
019        implements java.io.Serializable
020    {
021    
022          //--------------------------/
023         //- Class/Member Variables -/
024        //--------------------------/
025    
026        /**
027         * The ID of this lifecycle, for identification in the mojo
028         * descriptor.
029         */
030        private String id;
031    
032        /**
033         * Field phases.
034         */
035        private java.util.List<Phase> phases;
036    
037    
038          //-----------/
039         //- Methods -/
040        //-----------/
041    
042        /**
043         * Method addPhase.
044         * 
045         * @param phase
046         */
047        public void addPhase( Phase phase )
048        {
049            getPhases().add( phase );
050        } //-- void addPhase( Phase )
051    
052        /**
053         * Get the ID of this lifecycle, for identification in the mojo
054         * descriptor.
055         * 
056         * @return String
057         */
058        public String getId()
059        {
060            return this.id;
061        } //-- String getId()
062    
063        /**
064         * Method getPhases.
065         * 
066         * @return List
067         */
068        public java.util.List<Phase> getPhases()
069        {
070            if ( this.phases == null )
071            {
072                this.phases = new java.util.ArrayList<Phase>();
073            }
074    
075            return this.phases;
076        } //-- java.util.List<Phase> getPhases()
077    
078        /**
079         * Method removePhase.
080         * 
081         * @param phase
082         */
083        public void removePhase( Phase phase )
084        {
085            getPhases().remove( phase );
086        } //-- void removePhase( Phase )
087    
088        /**
089         * Set the ID of this lifecycle, for identification in the mojo
090         * descriptor.
091         * 
092         * @param id
093         */
094        public void setId( String id )
095        {
096            this.id = id;
097        } //-- void setId( String )
098    
099        /**
100         * Set the phase mappings for this lifecycle.
101         * 
102         * @param phases
103         */
104        public void setPhases( java.util.List<Phase> phases )
105        {
106            this.phases = phases;
107        } //-- void setPhases( java.util.List )
108    
109    }