View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.11,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.model;
7   
8   /**
9    * Represents a set of reports and configuration to be used to
10   * generate them.
11   * 
12   * @version $Revision$ $Date$
13   */
14  @SuppressWarnings( "all" )
15  public class ReportSet
16      extends ConfigurationContainer
17      implements java.io.Serializable, java.lang.Cloneable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * The unique id for this report set, to be used during POM
26       * inheritance and profile injection
27       *             for merging of report sets.
28       *           
29       */
30      private String id = "default";
31  
32      /**
33       * Field reports.
34       */
35      private java.util.List<String> reports;
36  
37  
38        //-----------/
39       //- Methods -/
40      //-----------/
41  
42      /**
43       * Method addReport.
44       * 
45       * @param string
46       */
47      public void addReport( String string )
48      {
49          getReports().add( string );
50      } //-- void addReport( String )
51  
52      /**
53       * Method clone.
54       * 
55       * @return ReportSet
56       */
57      public ReportSet clone()
58      {
59          try
60          {
61              ReportSet copy = (ReportSet) super.clone();
62  
63              if ( this.reports != null )
64              {
65                  copy.reports = new java.util.ArrayList<String>();
66                  copy.reports.addAll( this.reports );
67              }
68  
69              return copy;
70          }
71          catch ( java.lang.Exception ex )
72          {
73              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
74                  + " does not support clone()" ).initCause( ex );
75          }
76      } //-- ReportSet clone()
77  
78      /**
79       * Get the unique id for this report set, to be used during POM
80       * inheritance and profile injection
81       *             for merging of report sets.
82       * 
83       * @return String
84       */
85      public String getId()
86      {
87          return this.id;
88      } //-- String getId()
89  
90      /**
91       * Method getReports.
92       * 
93       * @return List
94       */
95      public java.util.List<String> getReports()
96      {
97          if ( this.reports == null )
98          {
99              this.reports = new java.util.ArrayList<String>();
100         }
101 
102         return this.reports;
103     } //-- java.util.List<String> getReports()
104 
105     /**
106      * Method removeReport.
107      * 
108      * @param string
109      */
110     public void removeReport( String string )
111     {
112         getReports().remove( string );
113     } //-- void removeReport( String )
114 
115     /**
116      * Set the unique id for this report set, to be used during POM
117      * inheritance and profile injection
118      *             for merging of report sets.
119      * 
120      * @param id
121      */
122     public void setId( String id )
123     {
124         this.id = id;
125     } //-- void setId( String )
126 
127     /**
128      * Set the list of reports from this plugin which should be
129      * generated from this set.
130      * 
131      * @param reports
132      */
133     public void setReports( java.util.List<String> reports )
134     {
135         this.reports = reports;
136     } //-- void setReports( java.util.List )
137 
138     
139             
140     @Override
141     public String toString()
142     {
143         return getId();
144     }
145             
146           
147 }