View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.tools.plugin.extractor.annotations.scanner;
20  
21  import java.io.File;
22  import java.util.ArrayList;
23  import java.util.Arrays;
24  import java.util.HashSet;
25  import java.util.List;
26  import java.util.Set;
27  
28  import org.apache.maven.artifact.Artifact;
29  import org.apache.maven.project.MavenProject;
30  
31  /**
32   * @author Olivier Lamy
33   * @since 3.0
34   */
35  public class MojoAnnotationsScannerRequest {
36      private List<File> classesDirectories = new ArrayList<>();
37  
38      private Set<Artifact> dependencies = new HashSet<>();
39  
40      private List<String> includePatterns = Arrays.asList("**/*.class");
41  
42      private List<File> sourceDirectories = new ArrayList<>();
43  
44      private MavenProject project;
45  
46      private String mavenApiVersion;
47  
48      public MojoAnnotationsScannerRequest() {
49          // no o
50      }
51  
52      public List<File> getClassesDirectories() {
53          return classesDirectories;
54      }
55  
56      public void setClassesDirectories(List<File> classesDirectories) {
57          this.classesDirectories = classesDirectories;
58      }
59  
60      public Set<Artifact> getDependencies() {
61          return dependencies;
62      }
63  
64      public void setDependencies(Set<Artifact> dependencies) {
65          this.dependencies = dependencies;
66      }
67  
68      public List<String> getIncludePatterns() {
69          return includePatterns;
70      }
71  
72      public void setIncludePatterns(List<String> includePatterns) {
73          this.includePatterns = includePatterns;
74      }
75  
76      public List<File> getSourceDirectories() {
77          return sourceDirectories;
78      }
79  
80      public void setSourceDirectories(List<File> sourceDirectories) {
81          this.sourceDirectories = sourceDirectories;
82      }
83  
84      public MavenProject getProject() {
85          return project;
86      }
87  
88      public void setProject(MavenProject project) {
89          this.project = project;
90      }
91  
92      public String getMavenApiVersion() {
93          return mavenApiVersion;
94      }
95  
96      public void setMavenApiVersion(String mavenApiVersion) {
97          this.mavenApiVersion = mavenApiVersion;
98      }
99  }