1
2
3
4
5
6
7
8 package org.apache.maven.model;
9
10
11
12
13
14
15
16 public class ReportSet
17 implements java.io.Serializable
18 {
19
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<String> 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
85 public String getId()
86 {
87 return this.id;
88 }
89
90
91
92
93
94
95
96 public String getInherited()
97 {
98 return this.inherited;
99 }
100
101
102
103
104
105
106 public java.util.List<String> getReports()
107 {
108 if ( this.reports == null )
109 {
110 this.reports = new java.util.ArrayList<String>();
111 }
112
113 return this.reports;
114 }
115
116
117
118
119
120
121 public void removeReport( String string )
122 {
123 if ( !(string instanceof String) )
124 {
125 throw new ClassCastException( "ReportSet.removeReports(string) parameter must be instanceof " + String.class.getName() );
126 }
127 getReports().remove( string );
128 }
129
130
131
132
133
134
135
136 public void setConfiguration( Object configuration )
137 {
138 this.configuration = configuration;
139 }
140
141
142
143
144
145
146
147
148 public void setId( String id )
149 {
150 this.id = id;
151 }
152
153
154
155
156
157
158
159 public void setInherited( String inherited )
160 {
161 this.inherited = inherited;
162 }
163
164
165
166
167
168
169
170 public void setReports( java.util.List<String> reports )
171 {
172 this.reports = reports;
173 }
174
175
176
177 private boolean inheritanceApplied = true;
178
179 public void unsetInheritanceApplied()
180 {
181 this.inheritanceApplied = false;
182 }
183
184 public boolean isInheritanceApplied()
185 {
186 return inheritanceApplied;
187 }
188
189
190 }