All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.maven.lifecycle.model.CleanBinding Maven / Gradle / Ivy

There is a newer version: 3.0-alpha-2
Show newest version
/*
 * $Id$
 */

package org.apache.maven.lifecycle.model;

  //---------------------------------/
 //- Imported classes and packages -/
//---------------------------------/

import java.util.Date;

/**
 * Class CleanBinding.
 * 
 * @version $Revision$ $Date$
 */
public class CleanBinding extends LifecycleBinding 
implements java.io.Serializable
{


      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field preClean.
     */
    private Phase preClean = new Phase();

    /**
     * Field clean.
     */
    private Phase clean = new Phase();

    /**
     * Field postClean.
     */
    private Phase postClean = new Phase();


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Get the clean field.
     * 
     * @return Phase
     */
    public Phase getClean()
    {
        return this.clean;
    } //-- Phase getClean() 

    /**
     * Get the postClean field.
     * 
     * @return Phase
     */
    public Phase getPostClean()
    {
        return this.postClean;
    } //-- Phase getPostClean() 

    /**
     * Get the preClean field.
     * 
     * @return Phase
     */
    public Phase getPreClean()
    {
        return this.preClean;
    } //-- Phase getPreClean() 

    /**
     * Set the clean field.
     * 
     * @param clean
     */
    public void setClean( Phase clean )
    {
        this.clean = clean;
    } //-- void setClean( Phase ) 

    /**
     * Set the postClean field.
     * 
     * @param postClean
     */
    public void setPostClean( Phase postClean )
    {
        this.postClean = postClean;
    } //-- void setPostClean( Phase ) 

    /**
     * Set the preClean field.
     * 
     * @param preClean
     */
    public void setPreClean( Phase preClean )
    {
        this.preClean = preClean;
    } //-- void setPreClean( Phase ) 


    public String getId()
    {
        return "clean";
    }
          
    public java.util.LinkedHashMap getOrderedPhaseMapping()
    {
        java.util.LinkedHashMap phases = new java.util.LinkedHashMap();
        phases.put( "pre-clean", getPreClean() );
        phases.put( "clean", getClean() );
        phases.put( "post-clean", getPostClean() );
        
        return phases;
    }
    
    public java.util.List getPhasesInOrder()
    {
        return new java.util.ArrayList( getOrderedPhaseMapping().values() );
    }
    
    public java.util.List getPhaseNamesInOrder()
    {
        return new java.util.ArrayList( getOrderedPhaseMapping().keySet() );
    }
          
    private String modelEncoding = "UTF-8";

    /**
     * Set an encoding used for reading/writing the model.
     *
     * @param modelEncoding the encoding used when reading/writing the model.
     */
    public void setModelEncoding( String modelEncoding )
    {
        this.modelEncoding = modelEncoding;
    }

    /**
     * @return the current encoding used when reading/writing this model.
     */
    public String getModelEncoding()
    {
        return modelEncoding;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy