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

org.apache.maven.continuum.model.scm.ScmResult Maven / Gradle / Ivy

The newest version!
/*
 * $Id$
 */

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

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

import java.util.Date;
import org.apache.maven.continuum.model.project.BuildDefinition;
import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
import org.apache.maven.continuum.model.project.BuildResult;
import org.apache.maven.continuum.model.project.ContinuumDatabase;
import org.apache.maven.continuum.model.project.Project;
import org.apache.maven.continuum.model.project.ProjectDependency;
import org.apache.maven.continuum.model.project.ProjectDeveloper;
import org.apache.maven.continuum.model.project.ProjectGroup;
import org.apache.maven.continuum.model.project.ProjectNotifier;
import org.apache.maven.continuum.model.project.Schedule;
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;

/**
 * null
 * 
 * @version $Revision$ $Date$
 */
public class ScmResult implements java.io.Serializable {


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

    /**
     * Field success
     */
    private boolean success = false;

    /**
     * Field commandLine
     */
    private String commandLine;

    /**
     * Field providerMessage
     */
    private String providerMessage;

    /**
     * Field commandOutput
     */
    private String commandOutput;

    /**
     * Field exception
     */
    private String exception;

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


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

    /**
     * Method addChange
     * 
     * @param changeSet
     */
    public void addChange(ChangeSet changeSet)
    {
        if ( !(changeSet instanceof ChangeSet) )
        {
            throw new ClassCastException( "ScmResult.addChanges(changeSet) parameter must be instanceof " + ChangeSet.class.getName() );
        }
        getChanges().add( changeSet );
    } //-- void addChange(ChangeSet) 

    /**
     * Method getChanges
     */
    public java.util.List getChanges()
    {
        if ( this.changes == null )
        {
            this.changes = new java.util.ArrayList();
        }
        
        return this.changes;
    } //-- java.util.List getChanges() 

    /**
     * Get null
     */
    public String getCommandLine()
    {
        return this.commandLine;
    } //-- String getCommandLine() 

    /**
     * Get null
     */
    public String getCommandOutput()
    {
        return this.commandOutput;
    } //-- String getCommandOutput() 

    /**
     * Get null
     */
    public String getException()
    {
        return this.exception;
    } //-- String getException() 

    /**
     * Get null
     */
    public String getProviderMessage()
    {
        return this.providerMessage;
    } //-- String getProviderMessage() 

    /**
     * Get null
     */
    public boolean isSuccess()
    {
        return this.success;
    } //-- boolean isSuccess() 

    /**
     * Method removeChange
     * 
     * @param changeSet
     */
    public void removeChange(ChangeSet changeSet)
    {
        if ( !(changeSet instanceof ChangeSet) )
        {
            throw new ClassCastException( "ScmResult.removeChanges(changeSet) parameter must be instanceof " + ChangeSet.class.getName() );
        }
        getChanges().remove( changeSet );
    } //-- void removeChange(ChangeSet) 

    /**
     * Set null
     * 
     * @param changes
     */
    public void setChanges(java.util.List changes)
    {
        this.changes = changes;
    } //-- void setChanges(java.util.List) 

    /**
     * Set null
     * 
     * @param commandLine
     */
    public void setCommandLine(String commandLine)
    {
        this.commandLine = commandLine;
    } //-- void setCommandLine(String) 

    /**
     * Set null
     * 
     * @param commandOutput
     */
    public void setCommandOutput(String commandOutput)
    {
        this.commandOutput = commandOutput;
    } //-- void setCommandOutput(String) 

    /**
     * Set null
     * 
     * @param exception
     */
    public void setException(String exception)
    {
        this.exception = exception;
    } //-- void setException(String) 

    /**
     * Set null
     * 
     * @param providerMessage
     */
    public void setProviderMessage(String providerMessage)
    {
        this.providerMessage = providerMessage;
    } //-- void setProviderMessage(String) 

    /**
     * Set null
     * 
     * @param success
     */
    public void setSuccess(boolean success)
    {
        this.success = success;
    } //-- void setSuccess(boolean) 


    private String modelEncoding = "UTF-8";

    public void setModelEncoding( String modelEncoding )
    {
        this.modelEncoding = modelEncoding;
    }

    public String getModelEncoding()
    {
        return modelEncoding;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy