1
2
3
4
5
6 package org.apache.maven.model;
7
8
9
10
11
12
13
14 @SuppressWarnings( "all" )
15 public class ReportSet
16 extends ConfigurationContainer
17 implements java.io.Serializable, java.lang.Cloneable
18 {
19
20
21
22
23
24
25
26
27
28
29
30 private String id = "default";
31
32
33
34
35 private java.util.List<String> reports;
36
37
38
39
40
41
42
43
44
45
46
47 public void addReport( String string )
48 {
49 getReports().add( string );
50 }
51
52
53
54
55
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 }
77
78
79
80
81
82
83
84
85 public String getId()
86 {
87 return this.id;
88 }
89
90
91
92
93
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 }
104
105
106
107
108
109
110 public void removeReport( String string )
111 {
112 getReports().remove( string );
113 }
114
115
116
117
118
119
120
121
122 public void setId( String id )
123 {
124 this.id = id;
125 }
126
127
128
129
130
131
132
133 public void setReports( java.util.List<String> reports )
134 {
135 this.reports = reports;
136 }
137
138
139
140 @Override
141 public String toString()
142 {
143 return getId();
144 }
145
146
147 }