001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 1.8.3,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.maven.plugin.lifecycle;
007
008/**
009 * 
010 *         A custom lifecycle mapping definition.
011 *       
012 * 
013 * @version $Revision: 965443 $ $Date: 2015-09-14 22:18:52 +0000 (Mon, 14 Sep 2015) $
014 */
015@SuppressWarnings( "all" )
016public class Lifecycle
017    implements java.io.Serializable
018{
019
020      //--------------------------/
021     //- Class/Member Variables -/
022    //--------------------------/
023
024    /**
025     * The ID of this lifecycle, for identification in the mojo
026     * descriptor.
027     */
028    private String id;
029
030    /**
031     * Field phases.
032     */
033    private java.util.List<Phase> phases;
034
035
036      //-----------/
037     //- Methods -/
038    //-----------/
039
040    /**
041     * Method addPhase.
042     * 
043     * @param phase
044     */
045    public void addPhase( Phase phase )
046    {
047        getPhases().add( phase );
048    } //-- void addPhase( Phase )
049
050    /**
051     * Get the ID of this lifecycle, for identification in the mojo
052     * descriptor.
053     * 
054     * @return String
055     */
056    public String getId()
057    {
058        return this.id;
059    } //-- String getId()
060
061    /**
062     * Method getPhases.
063     * 
064     * @return List
065     */
066    public java.util.List<Phase> getPhases()
067    {
068        if ( this.phases == null )
069        {
070            this.phases = new java.util.ArrayList<Phase>();
071        }
072
073        return this.phases;
074    } //-- java.util.List<Phase> getPhases()
075
076    /**
077     * Method removePhase.
078     * 
079     * @param phase
080     */
081    public void removePhase( Phase phase )
082    {
083        getPhases().remove( phase );
084    } //-- void removePhase( Phase )
085
086    /**
087     * Set the ID of this lifecycle, for identification in the mojo
088     * descriptor.
089     * 
090     * @param id
091     */
092    public void setId( String id )
093    {
094        this.id = id;
095    } //-- void setId( String )
096
097    /**
098     * Set the phase mappings for this lifecycle.
099     * 
100     * @param phases
101     */
102    public void setPhases( java.util.List<Phase> phases )
103    {
104        this.phases = phases;
105    } //-- void setPhases( java.util.List )
106
107}