org.apache.maven.model.ReportSet Maven / Gradle / Ivy
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 1.8.3,
// any modifications will be overwritten.
// ==============================================================
package org.apache.maven.model;
/**
* Represents a set of reports and configuration to be used to
* generate them.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class ReportSet
extends ConfigurationContainer
implements java.io.Serializable, java.lang.Cloneable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* The unique id for this report set, to be used during POM
* inheritance and profile injection
* for merging of report sets.
*
*/
private String id = "default";
/**
* Field reports.
*/
private java.util.List reports;
//-----------/
//- Methods -/
//-----------/
/**
* Method addReport.
*
* @param string
*/
public void addReport( String string )
{
getReports().add( string );
} //-- void addReport( String )
/**
* Method clone.
*
* @return ReportSet
*/
public ReportSet clone()
{
try
{
ReportSet copy = (ReportSet) super.clone();
if ( this.reports != null )
{
copy.reports = new java.util.ArrayList();
copy.reports.addAll( this.reports );
}
return copy;
}
catch ( java.lang.Exception ex )
{
throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
+ " does not support clone()" ).initCause( ex );
}
} //-- ReportSet clone()
/**
* Get the unique id for this report set, to be used during POM
* inheritance and profile injection
* for merging of report sets.
*
* @return String
*/
public String getId()
{
return this.id;
} //-- String getId()
/**
* Method getReports.
*
* @return List
*/
public java.util.List getReports()
{
if ( this.reports == null )
{
this.reports = new java.util.ArrayList();
}
return this.reports;
} //-- java.util.List getReports()
/**
* Method removeReport.
*
* @param string
*/
public void removeReport( String string )
{
getReports().remove( string );
} //-- void removeReport( String )
/**
* Set the unique id for this report set, to be used during POM
* inheritance and profile injection
* for merging of report sets.
*
* @param id
*/
public void setId( String id )
{
this.id = id;
} //-- void setId( String )
/**
* Set the list of reports from this plugin which should be
* generated from this set.
*
* @param reports
*/
public void setReports( java.util.List reports )
{
this.reports = reports;
} //-- void setReports( java.util.List )
@Override
public String toString()
{
return getId();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy