Coverage Report - org.apache.maven.reporting.exec.ReportPlugin
 
Classes in this File Line Coverage Branch Coverage Complexity
ReportPlugin
72%
16/22
75%
3/4
1,167
 
 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.Collections;
 24  
 import java.util.List;
 25  
 
 26  
 import org.apache.maven.model.Plugin;
 27  
 import org.codehaus.plexus.configuration.PlexusConfiguration;
 28  
 
 29  
 /**
 30  
  * <p>
 31  
  * Represents a reporting plugin and its executions. It basically contains similar informations
 32  
  * as a {@link Plugin} but in order to decoupled reporting stuff from core some values are copied.
 33  
  * </p>
 34  
  * @since 3.0-beta-1
 35  
  */
 36  1
 public class ReportPlugin
 37  
 {
 38  
 
 39  1
     private String groupId = "org.apache.maven.plugins";
 40  
 
 41  
     private String artifactId;
 42  
 
 43  
     private String version;
 44  
 
 45  
     private PlexusConfiguration configuration;
 46  
 
 47  
     private List<ReportSet> reportSets;
 48  
     
 49  
     private List<String> reports;
 50  
 
 51  
     public String getGroupId()
 52  
     {
 53  4
         return this.groupId;
 54  
     }
 55  
 
 56  
     public void setGroupId( String groupId )
 57  
     {
 58  1
         this.groupId = groupId;
 59  1
     }
 60  
 
 61  
     public String getArtifactId()
 62  
     {
 63  4
         return this.artifactId;
 64  
     }
 65  
 
 66  
     public void setArtifactId( String artifactId )
 67  
     {
 68  1
         this.artifactId = artifactId;
 69  1
     }
 70  
 
 71  
     public String getVersion()
 72  
     {
 73  3
         return this.version;
 74  
     }
 75  
 
 76  
     public void setVersion( String version )
 77  
     {
 78  1
         this.version = version;
 79  1
     }
 80  
 
 81  
     public PlexusConfiguration getConfiguration()
 82  
     {
 83  2
         return this.configuration;
 84  
     }
 85  
 
 86  
     public void setConfiguration( PlexusConfiguration configuration )
 87  
     {
 88  0
         this.configuration = configuration;
 89  0
     }
 90  
 
 91  
     public List<ReportSet> getReportSets()
 92  
     {
 93  3
         if ( this.reportSets == null )
 94  
         {
 95  1
             this.reportSets = new ArrayList<ReportSet>();
 96  
         }
 97  
 
 98  3
         return this.reportSets;
 99  
     }
 100  
 
 101  
     public void setReportSets( List<ReportSet> reportSets )
 102  
     {
 103  0
         this.reportSets = reportSets;
 104  0
     }
 105  
 
 106  
     public List<String> getReports()
 107  
     {
 108  1
         return reports == null ? Collections.<String>emptyList() : reports;
 109  
     }
 110  
 
 111  
     public void setReports( List<String> reports )
 112  
     {
 113  0
         this.reports = reports;
 114  0
     }
 115  
 
 116  
     
 117  
 
 118  
 }