Coverage Report - org.apache.maven.tools.plugin.annotations.scanner.MojoAnnotationsScannerRequest
 
Classes in this File Line Coverage Branch Coverage Complexity
MojoAnnotationsScannerRequest
76 %
16/21
N/A
1
 
 1  
 package org.apache.maven.tools.plugin.annotations.scanner;
 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 org.apache.maven.artifact.Artifact;
 23  
 import org.apache.maven.project.MavenProject;
 24  
 
 25  
 import java.io.File;
 26  
 import java.util.ArrayList;
 27  
 import java.util.Arrays;
 28  
 import java.util.HashSet;
 29  
 import java.util.List;
 30  
 import java.util.Set;
 31  
 
 32  
 /**
 33  
  * @author Olivier Lamy
 34  
  * @since 3.0
 35  
  */
 36  
 public class MojoAnnotationsScannerRequest
 37  
 {
 38  1
     private List<File> classesDirectories = new ArrayList<File>();
 39  
 
 40  1
     private Set<Artifact> dependencies = new HashSet<Artifact>();
 41  
 
 42  1
     private List<String> includePatterns = Arrays.asList( "**/*.class" );
 43  
 
 44  1
     private List<File> sourceDirectories = new ArrayList<File>();
 45  
 
 46  
     private MavenProject project;
 47  
 
 48  
     public MojoAnnotationsScannerRequest()
 49  1
     {
 50  
         // no o
 51  1
     }
 52  
 
 53  
     public List<File> getClassesDirectories()
 54  
     {
 55  1
         return classesDirectories;
 56  
     }
 57  
 
 58  
     public void setClassesDirectories( List<File> classesDirectories )
 59  
     {
 60  1
         this.classesDirectories = classesDirectories;
 61  1
     }
 62  
 
 63  
     public Set<Artifact> getDependencies()
 64  
     {
 65  1
         return dependencies;
 66  
     }
 67  
 
 68  
     public void setDependencies( Set<Artifact> dependencies )
 69  
     {
 70  0
         this.dependencies = dependencies;
 71  0
     }
 72  
 
 73  
     public List<String> getIncludePatterns()
 74  
     {
 75  1
         return includePatterns;
 76  
     }
 77  
 
 78  
     public void setIncludePatterns( List<String> includePatterns )
 79  
     {
 80  1
         this.includePatterns = includePatterns;
 81  1
     }
 82  
 
 83  
     public List<File> getSourceDirectories()
 84  
     {
 85  0
         return sourceDirectories;
 86  
     }
 87  
 
 88  
     public void setSourceDirectories( List<File> sourceDirectories )
 89  
     {
 90  0
         this.sourceDirectories = sourceDirectories;
 91  0
     }
 92  
 
 93  
     public MavenProject getProject()
 94  
     {
 95  1
         return project;
 96  
     }
 97  
 
 98  
     public void setProject( MavenProject project )
 99  
     {
 100  1
         this.project = project;
 101  1
     }
 102  
 }