001    /*
002     =================== DO NOT EDIT THIS FILE ====================
003     Generated by Modello 1.4.1 on 2012-01-20 18:05:12,
004     any modifications will be overwritten.
005     ==============================================================
006     */
007    
008    package org.apache.maven.model;
009    
010    /**
011     * Represents a set of reports and configuration to be used to
012     * generate them.
013     * 
014     * @version $Revision$ $Date$
015     */
016    @SuppressWarnings( "all" )
017    public class ReportSet
018        extends ConfigurationContainer
019        implements java.io.Serializable, java.lang.Cloneable
020    {
021    
022          //--------------------------/
023         //- Class/Member Variables -/
024        //--------------------------/
025    
026        /**
027         * The unique id for this report set, to be used during POM
028         * inheritance and profile injection
029         *             for merging of report sets.
030         *           
031         */
032        private String id = "default";
033    
034        /**
035         * Field reports.
036         */
037        private java.util.List<String> reports;
038    
039    
040          //-----------/
041         //- Methods -/
042        //-----------/
043    
044        /**
045         * Method addReport.
046         * 
047         * @param string
048         */
049        public void addReport( String string )
050        {
051            getReports().add( string );
052        } //-- void addReport( String )
053    
054        /**
055         * Method clone.
056         * 
057         * @return ReportSet
058         */
059        public ReportSet clone()
060        {
061            try
062            {
063                ReportSet copy = (ReportSet) super.clone();
064    
065                if ( this.reports != null )
066                {
067                    copy.reports = new java.util.ArrayList<String>();
068                    copy.reports.addAll( this.reports );
069                }
070    
071                return copy;
072            }
073            catch ( java.lang.Exception ex )
074            {
075                throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
076                    + " does not support clone()" ).initCause( ex );
077            }
078        } //-- ReportSet clone()
079    
080        /**
081         * Get the unique id for this report set, to be used during POM
082         * inheritance and profile injection
083         *             for merging of report sets.
084         * 
085         * @return String
086         */
087        public String getId()
088        {
089            return this.id;
090        } //-- String getId()
091    
092        /**
093         * Method getReports.
094         * 
095         * @return List
096         */
097        public java.util.List<String> getReports()
098        {
099            if ( this.reports == null )
100            {
101                this.reports = new java.util.ArrayList<String>();
102            }
103    
104            return this.reports;
105        } //-- java.util.List<String> getReports()
106    
107        /**
108         * Method removeReport.
109         * 
110         * @param string
111         */
112        public void removeReport( String string )
113        {
114            getReports().remove( string );
115        } //-- void removeReport( String )
116    
117        /**
118         * Set the unique id for this report set, to be used during POM
119         * inheritance and profile injection
120         *             for merging of report sets.
121         * 
122         * @param id
123         */
124        public void setId( String id )
125        {
126            this.id = id;
127        } //-- void setId( String )
128    
129        /**
130         * Set the list of reports from this plugin which should be
131         * generated from this set.
132         * 
133         * @param reports
134         */
135        public void setReports( java.util.List<String> reports )
136        {
137            this.reports = reports;
138        } //-- void setReports( java.util.List )
139    
140        
141                
142        @Override
143        public String toString()
144        {
145            return getId();
146        }
147                
148              
149    }