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

org.apache.maven.model.BuildBase Maven / Gradle / Ivy

Go to download

Statistical sampling library for use in virtdata libraries, based on apache commons math 4

There is a newer version: 5.17.0
Show newest version
/*
 =================== DO NOT EDIT THIS FILE ====================
 Generated by Modello 1.0.1 on 2009-08-06 15:13:09,
 any modifications will be overwritten.
 ==============================================================
 */

package org.apache.maven.model;

/**
 * Generic informations for a build.
 * 
 * @version $Revision$ $Date$
 */
public class BuildBase
    extends PluginConfiguration
    implements java.io.Serializable
{

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

    /**
     * The default goal (or phase in Maven 2) to execute when none
     * is specified for
     *             the project.
     */
    private String defaultGoal;

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

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

    /**
     * The directory where all files generated by the build are
     * placed.
     */
    private String directory;

    /**
     * 
     *             
     *             The filename (excluding the extension, and with
     * no path information) that
     *             the produced artifact will be called.
     *             The default value is
     * ${artifactId}-${version}.
     *             
     *           
     */
    private String finalName;

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


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

    /**
     * Method addFilter.
     * 
     * @param string
     */
    public void addFilter( String string )
    {
        if ( !(string instanceof String) )
        {
            throw new ClassCastException( "BuildBase.addFilters(string) parameter must be instanceof " + String.class.getName() );
        }
        getFilters().add( string );
    } //-- void addFilter( String )

    /**
     * Method addResource.
     * 
     * @param resource
     */
    public void addResource( Resource resource )
    {
        if ( !(resource instanceof Resource) )
        {
            throw new ClassCastException( "BuildBase.addResources(resource) parameter must be instanceof " + Resource.class.getName() );
        }
        getResources().add( resource );
    } //-- void addResource( Resource )

    /**
     * Method addTestResource.
     * 
     * @param resource
     */
    public void addTestResource( Resource resource )
    {
        if ( !(resource instanceof Resource) )
        {
            throw new ClassCastException( "BuildBase.addTestResources(resource) parameter must be instanceof " + Resource.class.getName() );
        }
        getTestResources().add( resource );
    } //-- void addTestResource( Resource )

    /**
     * Get the default goal (or phase in Maven 2) to execute when
     * none is specified for
     *             the project.
     * 
     * @return String
     */
    public String getDefaultGoal()
    {
        return this.defaultGoal;
    } //-- String getDefaultGoal()

    /**
     * Get the directory where all files generated by the build are
     * placed.
     * 
     * @return String
     */
    public String getDirectory()
    {
        return this.directory;
    } //-- String getDirectory()

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

        return this.filters;
    } //-- java.util.List getFilters()

    /**
     * Get the filename (excluding the extension, and with no path
     * information) that
     *             the produced artifact will be called.
     *             The default value is
     * ${artifactId}-${version}.
     * 
     * @return String
     */
    public String getFinalName()
    {
        return this.finalName;
    } //-- String getFinalName()

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

        return this.resources;
    } //-- java.util.List getResources()

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

        return this.testResources;
    } //-- java.util.List getTestResources()

    /**
     * Method removeFilter.
     * 
     * @param string
     */
    public void removeFilter( String string )
    {
        if ( !(string instanceof String) )
        {
            throw new ClassCastException( "BuildBase.removeFilters(string) parameter must be instanceof " + String.class.getName() );
        }
        getFilters().remove( string );
    } //-- void removeFilter( String )

    /**
     * Method removeResource.
     * 
     * @param resource
     */
    public void removeResource( Resource resource )
    {
        if ( !(resource instanceof Resource) )
        {
            throw new ClassCastException( "BuildBase.removeResources(resource) parameter must be instanceof " + Resource.class.getName() );
        }
        getResources().remove( resource );
    } //-- void removeResource( Resource )

    /**
     * Method removeTestResource.
     * 
     * @param resource
     */
    public void removeTestResource( Resource resource )
    {
        if ( !(resource instanceof Resource) )
        {
            throw new ClassCastException( "BuildBase.removeTestResources(resource) parameter must be instanceof " + Resource.class.getName() );
        }
        getTestResources().remove( resource );
    } //-- void removeTestResource( Resource )

    /**
     * Set the default goal (or phase in Maven 2) to execute when
     * none is specified for
     *             the project.
     * 
     * @param defaultGoal
     */
    public void setDefaultGoal( String defaultGoal )
    {
        this.defaultGoal = defaultGoal;
    } //-- void setDefaultGoal( String )

    /**
     * Set the directory where all files generated by the build are
     * placed.
     * 
     * @param directory
     */
    public void setDirectory( String directory )
    {
        this.directory = directory;
    } //-- void setDirectory( String )

    /**
     * Set the list of filter properties files that are used when
     * filtering is enabled.
     * 
     * @param filters
     */
    public void setFilters( java.util.List filters )
    {
        this.filters = filters;
    } //-- void setFilters( java.util.List )

    /**
     * Set the filename (excluding the extension, and with no path
     * information) that
     *             the produced artifact will be called.
     *             The default value is
     * ${artifactId}-${version}.
     * 
     * @param finalName
     */
    public void setFinalName( String finalName )
    {
        this.finalName = finalName;
    } //-- void setFinalName( String )

    /**
     * Set this element describes all of the classpath resources
     * such as properties
     *             files associated with a project. These resources
     * are often included in the final
     *             package.
     * 
     * @param resources
     */
    public void setResources( java.util.List resources )
    {
        this.resources = resources;
    } //-- void setResources( java.util.List )

    /**
     * Set this element describes all of the classpath resources
     * such as properties
     *             files associated with a project's unit tests.
     * 
     * @param testResources
     */
    public void setTestResources( java.util.List testResources )
    {
        this.testResources = testResources;
    } //-- void setTestResources( java.util.List )


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy