1
2
3
4
5 package org.apache.maven.model;
6
7
8
9
10
11 import java.util.Date;
12
13
14
15
16
17
18
19 public class ReportSet implements java.io.Serializable {
20
21
22
23
24
25
26
27
28
29
30 private String id = "default";
31
32
33
34
35
36 private Object configuration;
37
38
39
40
41 private String inherited;
42
43
44
45
46 private java.util.List reports;
47
48
49
50
51
52
53
54
55
56
57
58 public void addReport( String string )
59 {
60 if ( !(string instanceof String) )
61 {
62 throw new ClassCastException( "ReportSet.addReports(string) parameter must be instanceof " + String.class.getName() );
63 }
64 getReports().add( string );
65 }
66
67
68
69
70
71
72
73 public Object getConfiguration()
74 {
75 return this.configuration;
76 }
77
78
79
80
81
82
83
84 public String getId()
85 {
86 return this.id;
87 }
88
89
90
91
92
93
94
95 public String getInherited()
96 {
97 return this.inherited;
98 }
99
100
101
102
103
104
105 public java.util.List getReports()
106 {
107 if ( this.reports == null )
108 {
109 this.reports = new java.util.ArrayList();
110 }
111
112 return this.reports;
113 }
114
115
116
117
118
119
120 public void removeReport( String string )
121 {
122 if ( !(string instanceof String) )
123 {
124 throw new ClassCastException( "ReportSet.removeReports(string) parameter must be instanceof " + String.class.getName() );
125 }
126 getReports().remove( string );
127 }
128
129
130
131
132
133
134
135 public void setConfiguration( Object configuration )
136 {
137 this.configuration = configuration;
138 }
139
140
141
142
143
144
145
146 public void setId( String id )
147 {
148 this.id = id;
149 }
150
151
152
153
154
155
156
157 public void setInherited( String inherited )
158 {
159 this.inherited = inherited;
160 }
161
162
163
164
165
166
167
168 public void setReports( java.util.List reports )
169 {
170 this.reports = reports;
171 }
172
173
174
175 private boolean inheritanceApplied = true;
176
177 public void unsetInheritanceApplied()
178 {
179 this.inheritanceApplied = false;
180 }
181
182 public boolean isInheritanceApplied()
183 {
184 return inheritanceApplied;
185 }
186
187
188 private String modelEncoding = "UTF-8";
189
190
191
192
193
194
195 public void setModelEncoding( String modelEncoding )
196 {
197 this.modelEncoding = modelEncoding;
198 }
199
200
201
202
203 public String getModelEncoding()
204 {
205 return modelEncoding;
206 }
207 }