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

org.apache.maven.model.Reporting 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;

/**
 * Section for management of reports and their configuration.
 * 
 * @version $Revision$ $Date$
 */
public class Reporting
    implements java.io.Serializable
{

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

    /**
     * If true, then the default reports are not included in the
     * site generation.
     *             This includes the reports in the "Project Info"
     * menu.
     */
    private Boolean excludeDefaultsValue;

    /**
     * 
     *             
     *             Where to store all of the generated reports. The
     * default is
     *             ${project.build.directory}/site
     *             .
     *             
     *           
     */
    private String outputDirectory;

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


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

    /**
     * Method addPlugin.
     * 
     * @param reportPlugin
     */
    public void addPlugin( ReportPlugin reportPlugin )
    {
        if ( !(reportPlugin instanceof ReportPlugin) )
        {
            throw new ClassCastException( "Reporting.addPlugins(reportPlugin) parameter must be instanceof " + ReportPlugin.class.getName() );
        }
        getPlugins().add( reportPlugin );
    } //-- void addPlugin( ReportPlugin )

    /**
     * Get where to store all of the generated reports. The default
     * is
     *             ${project.build.directory}/site
     *             .
     * 
     * @return String
     */
    public String getOutputDirectory()
    {
        return this.outputDirectory;
    } //-- String getOutputDirectory()

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

        return this.plugins;
    } //-- java.util.List getPlugins()

    /**
     * Get if true, then the default reports are not included in
     * the site generation.
     *             This includes the reports in the "Project Info"
     * menu.
     * 
     * @return Boolean
     */
    public Boolean isExcludeDefaultsValue()
    {
        return this.excludeDefaultsValue;
    } //-- Boolean isExcludeDefaultsValue()

    /**
     * Method removePlugin.
     * 
     * @param reportPlugin
     */
    public void removePlugin( ReportPlugin reportPlugin )
    {
        if ( !(reportPlugin instanceof ReportPlugin) )
        {
            throw new ClassCastException( "Reporting.removePlugins(reportPlugin) parameter must be instanceof " + ReportPlugin.class.getName() );
        }
        getPlugins().remove( reportPlugin );
    } //-- void removePlugin( ReportPlugin )

    /**
     * Set if true, then the default reports are not included in
     * the site generation.
     *             This includes the reports in the "Project Info"
     * menu.
     * 
     * @param excludeDefaultsValue
     */
    public void setExcludeDefaultsValue( Boolean excludeDefaultsValue )
    {
        this.excludeDefaultsValue = excludeDefaultsValue;
    } //-- void setExcludeDefaultsValue( Boolean )

    /**
     * Set where to store all of the generated reports. The default
     * is
     *             ${project.build.directory}/site
     *             .
     * 
     * @param outputDirectory
     */
    public void setOutputDirectory( String outputDirectory )
    {
        this.outputDirectory = outputDirectory;
    } //-- void setOutputDirectory( String )

    /**
     * Set the reporting plugins to use and their configuration.
     * 
     * @param plugins
     */
    public void setPlugins( java.util.List plugins )
    {
        this.plugins = plugins;
    } //-- void setPlugins( java.util.List )


            
    java.util.Map reportPluginMap;

    /**
     * Reset the reportPluginMap field to null
     */
    public void flushReportPluginMap()
    {
        this.reportPluginMap = null;
    }

    /**
     * @return a Map of plugins field with ReportPlugin#getKey() as key
     * @see org.apache.maven.model.ReportPlugin#getKey()
     */
    public java.util.Map getReportPluginsAsMap()
    {
        if ( reportPluginMap == null )
        {
            reportPluginMap = new java.util.LinkedHashMap();
            if ( getPlugins() != null )
            {
                for ( java.util.Iterator it = getPlugins().iterator(); it.hasNext(); )
                {
                    ReportPlugin reportPlugin = (ReportPlugin) it.next();
                    reportPluginMap.put( reportPlugin.getKey(), reportPlugin );
                }
            }
        }

        return reportPluginMap;
    }

    public boolean isExcludeDefaults()
    {
        return excludeDefaultsValue != null ? excludeDefaultsValue.booleanValue() : false;
    }

    public void setExcludeDefaults( boolean excludeDefaults )
    {
        excludeDefaultsValue = excludeDefaults ? Boolean.TRUE : Boolean.FALSE;
    }

    public void setExcludeDefaultsValue( String excludeDefaults )
    {
        excludeDefaultsValue = excludeDefaults != null ? Boolean.valueOf( excludeDefaults ) : null;
    }
            
          
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy