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

org.apache.maven.continuum.model.project.Schedule Maven / Gradle / Ivy

The newest version!
/*
 =================== DO NOT EDIT THIS FILE ====================
 Generated by Modello
 any modifications will be overwritten.
 ==============================================================
 */

package org.apache.maven.continuum.model.project;

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

import org.apache.continuum.model.project.ProjectScmRoot;
import org.apache.continuum.model.release.ContinuumReleaseResult;
import org.apache.continuum.model.repository.AbstractPurgeConfiguration;
import org.apache.continuum.model.repository.DirectoryPurgeConfiguration;
import org.apache.continuum.model.repository.DistributedDirectoryPurgeConfiguration;
import org.apache.continuum.model.repository.LocalRepository;
import org.apache.continuum.model.repository.RepositoryPurgeConfiguration;
import org.apache.maven.continuum.model.scm.ChangeFile;
import org.apache.maven.continuum.model.scm.ChangeSet;
import org.apache.maven.continuum.model.scm.ScmResult;
import org.apache.maven.continuum.model.system.Installation;
import org.apache.maven.continuum.model.system.NotificationAddress;
import org.apache.maven.continuum.model.system.Profile;
import org.apache.maven.continuum.model.system.SystemConfiguration;
import org.apache.maven.continuum.project.ContinuumProjectState;

/**
 * 
 *         Schedule for a project.
 *       
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class Schedule
    implements java.io.Serializable
{

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

    /**
     * Field id.
     */
    private int id = 0;

    /**
     * Field active.
     */
    private boolean active = false;

    /**
     * Field name.
     */
    private String name;

    /**
     * Field description.
     */
    private String description;

    /**
     * 
     *             Delay in seconds.
     *           
     */
    private int delay = 0;

    /**
     * 
     *             Maximum execution time of a job in seconds
     * before it's
     *             terminated.
     *           
     */
    private int maxJobExecutionTime = 3600;

    /**
     * Field cronExpression.
     */
    private String cronExpression;

    /**
     * Field buildQueues.
     */
    private java.util.List buildQueues;


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

    /**
     * Method addBuildQueue.
     * 
     * @param buildQueue
     */
    public void addBuildQueue( BuildQueue buildQueue )
    {
        getBuildQueues().add( buildQueue );
    } //-- void addBuildQueue( BuildQueue )

    /**
     * Method equals.
     * 
     * @param other
     * @return boolean
     */
    public boolean equals( Object other )
    {
        if ( this == other )
        {
            return true;
        }

        if ( !( other instanceof Schedule ) )
        {
            return false;
        }

        Schedule that = (Schedule) other;
        boolean result = true;

        result = result && id == that.id;

        return result;
    } //-- boolean equals( Object )

    /**
     * Method getBuildQueues.
     * 
     * @return List
     */
    public java.util.List getBuildQueues()
    {
        if ( this.buildQueues == null )
        {
            this.buildQueues = new java.util.ArrayList();
        }

        return this.buildQueues;
    } //-- java.util.List getBuildQueues()

    /**
     * Get the cronExpression field.
     * 
     * @return String
     */
    public String getCronExpression()
    {
        return this.cronExpression;
    } //-- String getCronExpression()

    /**
     * Get delay in seconds.
     * 
     * @return int
     */
    public int getDelay()
    {
        return this.delay;
    } //-- int getDelay()

    /**
     * Get the description field.
     * 
     * @return String
     */
    public String getDescription()
    {
        return this.description;
    } //-- String getDescription()

    /**
     * Get the id field.
     * 
     * @return int
     */
    public int getId()
    {
        return this.id;
    } //-- int getId()

    /**
     * Get maximum execution time of a job in seconds before it's
     *             terminated.
     * 
     * @return int
     */
    public int getMaxJobExecutionTime()
    {
        return this.maxJobExecutionTime;
    } //-- int getMaxJobExecutionTime()

    /**
     * Get the name field.
     * 
     * @return String
     */
    public String getName()
    {
        return this.name;
    } //-- String getName()

    /**
     * Method hashCode.
     * 
     * @return int
     */
    public int hashCode()
    {
        int result = 17;

        result = 37 * result + (int) id;

        return result;
    } //-- int hashCode()

    /**
     * Get the active field.
     * 
     * @return boolean
     */
    public boolean isActive()
    {
        return this.active;
    } //-- boolean isActive()

    /**
     * Method removeBuildQueue.
     * 
     * @param buildQueue
     */
    public void removeBuildQueue( BuildQueue buildQueue )
    {
        getBuildQueues().remove( buildQueue );
    } //-- void removeBuildQueue( BuildQueue )

    /**
     * Set the active field.
     * 
     * @param active
     */
    public void setActive( boolean active )
    {
        this.active = active;
    } //-- void setActive( boolean )

    /**
     * Set the buildQueues field.
     * 
     * @param buildQueues
     */
    public void setBuildQueues( java.util.List buildQueues )
    {
        this.buildQueues = buildQueues;
    } //-- void setBuildQueues( java.util.List )

    /**
     * Set the cronExpression field.
     * 
     * @param cronExpression
     */
    public void setCronExpression( String cronExpression )
    {
        this.cronExpression = cronExpression;
    } //-- void setCronExpression( String )

    /**
     * Set delay in seconds.
     * 
     * @param delay
     */
    public void setDelay( int delay )
    {
        this.delay = delay;
    } //-- void setDelay( int )

    /**
     * Set the description field.
     * 
     * @param description
     */
    public void setDescription( String description )
    {
        this.description = description;
    } //-- void setDescription( String )

    /**
     * Set the id field.
     * 
     * @param id
     */
    public void setId( int id )
    {
        this.id = id;
    } //-- void setId( int )

    /**
     * Set maximum execution time of a job in seconds before it's
     *             terminated.
     * 
     * @param maxJobExecutionTime
     */
    public void setMaxJobExecutionTime( int maxJobExecutionTime )
    {
        this.maxJobExecutionTime = maxJobExecutionTime;
    } //-- void setMaxJobExecutionTime( int )

    /**
     * Set the name field.
     * 
     * @param name
     */
    public void setName( String name )
    {
        this.name = name;
    } //-- void setName( String )

    /**
     * Method toString.
     * 
     * @return String
     */
    public java.lang.String toString()
    {
        StringBuilder buf = new StringBuilder( 128 );

        buf.append( "id = '" );
        buf.append( getId() );
        buf.append( "'" );

        return buf.toString();
    } //-- java.lang.String toString()

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy