1
2
3
4
5
6
7
8 package org.apache.maven.model;
9
10
11
12
13
14
15
16 @SuppressWarnings( "all" )
17 public class ReportSet
18 extends ConfigurationContainer
19 implements java.io.Serializable, java.lang.Cloneable
20 {
21
22
23
24
25
26
27
28
29
30
31
32 private String id = "default";
33
34
35
36
37 private java.util.List<String> reports;
38
39
40
41
42
43
44
45
46
47
48
49 public void addReport( String string )
50 {
51 getReports().add( string );
52 }
53
54
55
56
57
58
59 public ReportSet clone()
60 {
61 try
62 {
63 ReportSet copy = (ReportSet) super.clone();
64
65 if ( this.reports != null )
66 {
67 copy.reports = new java.util.ArrayList<String>();
68 copy.reports.addAll( this.reports );
69 }
70
71 return copy;
72 }
73 catch ( java.lang.Exception ex )
74 {
75 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
76 + " does not support clone()" ).initCause( ex );
77 }
78 }
79
80
81
82
83
84
85
86
87 public String getId()
88 {
89 return this.id;
90 }
91
92
93
94
95
96
97 public java.util.List<String> getReports()
98 {
99 if ( this.reports == null )
100 {
101 this.reports = new java.util.ArrayList<String>();
102 }
103
104 return this.reports;
105 }
106
107
108
109
110
111
112 public void removeReport( String string )
113 {
114 getReports().remove( string );
115 }
116
117
118
119
120
121
122
123
124 public void setId( String id )
125 {
126 this.id = id;
127 }
128
129
130
131
132
133
134
135 public void setReports( java.util.List<String> reports )
136 {
137 this.reports = reports;
138 }
139
140
141
142 @Override
143 public String toString()
144 {
145 return getId();
146 }
147
148
149 }