1 package org.apache.maven.reporting.exec;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 import java.util.ArrayList;
23 import java.util.List;
24
25 import org.codehaus.plexus.configuration.PlexusConfiguration;
26
27 /**
28 * Represents a set of reports and configuration to be used to generate them.
29 * @since 3.0-beta-1
30 */
31 public class ReportSet
32 {
33
34 private String id = "default";
35
36 private PlexusConfiguration configuration;
37
38 private List<String> reports;
39
40 public String getId()
41 {
42 return this.id;
43 }
44
45 public void setId( String id )
46 {
47 this.id = id;
48 }
49
50 public PlexusConfiguration getConfiguration()
51 {
52 return this.configuration;
53 }
54
55 public void setConfiguration( PlexusConfiguration configuration )
56 {
57 this.configuration = configuration;
58 }
59
60 public List<String> getReports()
61 {
62 if ( this.reports == null )
63 {
64 this.reports = new ArrayList<String>();
65 }
66
67 return this.reports;
68 }
69
70 public void setReports( List<String> reports )
71 {
72 this.reports = reports;
73 }
74
75 @Override
76 public String toString()
77 {
78 return getId();
79 }
80
81 }