001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019package org.apache.maven.tools.plugin.extractor.annotations.scanner; 020 021import java.io.File; 022import java.util.ArrayList; 023import java.util.Arrays; 024import java.util.HashSet; 025import java.util.List; 026import java.util.Set; 027 028import org.apache.maven.artifact.Artifact; 029import org.apache.maven.project.MavenProject; 030 031/** 032 * @author Olivier Lamy 033 * @since 3.0 034 */ 035public class MojoAnnotationsScannerRequest { 036 private List<File> classesDirectories = new ArrayList<>(); 037 038 private Set<Artifact> dependencies = new HashSet<>(); 039 040 private List<String> includePatterns = Arrays.asList("**/*.class"); 041 042 private List<File> sourceDirectories = new ArrayList<>(); 043 044 private MavenProject project; 045 046 private String mavenApiVersion; 047 048 public MojoAnnotationsScannerRequest() { 049 // no o 050 } 051 052 public List<File> getClassesDirectories() { 053 return classesDirectories; 054 } 055 056 public void setClassesDirectories(List<File> classesDirectories) { 057 this.classesDirectories = classesDirectories; 058 } 059 060 public Set<Artifact> getDependencies() { 061 return dependencies; 062 } 063 064 public void setDependencies(Set<Artifact> dependencies) { 065 this.dependencies = dependencies; 066 } 067 068 public List<String> getIncludePatterns() { 069 return includePatterns; 070 } 071 072 public void setIncludePatterns(List<String> includePatterns) { 073 this.includePatterns = includePatterns; 074 } 075 076 public List<File> getSourceDirectories() { 077 return sourceDirectories; 078 } 079 080 public void setSourceDirectories(List<File> sourceDirectories) { 081 this.sourceDirectories = sourceDirectories; 082 } 083 084 public MavenProject getProject() { 085 return project; 086 } 087 088 public void setProject(MavenProject project) { 089 this.project = project; 090 } 091 092 public String getMavenApiVersion() { 093 return mavenApiVersion; 094 } 095 096 public void setMavenApiVersion(String mavenApiVersion) { 097 this.mavenApiVersion = mavenApiVersion; 098 } 099}