1 package org.apache.maven.reporting.exec;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.ArrayList;
23 import java.util.Collections;
24 import java.util.List;
25
26 import org.codehaus.plexus.configuration.PlexusConfiguration;
27
28
29
30
31
32
33
34 class ReportPlugin
35 {
36 private String groupId = "org.apache.maven.plugins";
37
38 private String artifactId;
39
40 private String version;
41
42 private PlexusConfiguration configuration;
43
44 private List<ReportSet> reportSets;
45
46 private List<String> reports;
47
48 public String getGroupId()
49 {
50 return this.groupId;
51 }
52
53 public void setGroupId( String groupId )
54 {
55 this.groupId = groupId;
56 }
57
58 public String getArtifactId()
59 {
60 return this.artifactId;
61 }
62
63 public void setArtifactId( String artifactId )
64 {
65 this.artifactId = artifactId;
66 }
67
68 public String getVersion()
69 {
70 return this.version;
71 }
72
73 public void setVersion( String version )
74 {
75 this.version = version;
76 }
77
78 public PlexusConfiguration getConfiguration()
79 {
80 return this.configuration;
81 }
82
83 public void setConfiguration( PlexusConfiguration configuration )
84 {
85 this.configuration = configuration;
86 }
87
88 public List<ReportSet> getReportSets()
89 {
90 if ( this.reportSets == null )
91 {
92 this.reportSets = new ArrayList<>();
93 }
94
95 return this.reportSets;
96 }
97
98 public void setReportSets( List<ReportSet> reportSets )
99 {
100 this.reportSets = reportSets;
101 }
102
103 public List<String> getReports()
104 {
105 return reports == null ? Collections.<String>emptyList() : reports;
106 }
107
108 public void setReports( List<String> reports )
109 {
110 this.reports = reports;
111 }
112
113 @Override
114 public String toString()
115 {
116 return "ReportPlugin(" + artifactId + "){version='" + version + "', reports=" + reports
117 + ", reportSets=" + reportSets + "}";
118 }
119 }