1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.archetype;
20
21 import java.io.File;
22 import java.util.ArrayList;
23 import java.util.List;
24 import java.util.Properties;
25
26 import org.apache.maven.project.MavenProject;
27
28
29 public class ArchetypeCreationRequest {
30
31 private File localRepositoryBasedir;
32
33 private MavenProject project;
34
35 private List<String> languages = new ArrayList<>();
36
37 private List<String> filtereds = new ArrayList<>();
38
39 private String defaultEncoding = "UTF-8";
40
41 private boolean preserveCData = false;
42
43 private boolean keepParent = true;
44
45 private boolean partialArchetype = false;
46
47 private String packageName;
48
49 private Properties properties;
50
51 private String postPhase;
52
53 private File outputDirectory;
54
55 private File settingsFile;
56
57 public String getPostPhase() {
58 return postPhase;
59 }
60
61 public ArchetypeCreationRequest setPostPhase(String postPhase) {
62 this.postPhase = postPhase;
63 return this;
64 }
65
66 public File getLocalRepositoryBasedir() {
67 return localRepositoryBasedir;
68 }
69
70 public ArchetypeCreationRequest setLocalRepositoryBasedir(File localRepository) {
71 this.localRepositoryBasedir = localRepository;
72 return this;
73 }
74
75 public MavenProject getProject() {
76 return project;
77 }
78
79 public ArchetypeCreationRequest setProject(MavenProject project) {
80 this.project = project;
81 return this;
82 }
83
84 public List<String> getLanguages() {
85 return languages;
86 }
87
88 public ArchetypeCreationRequest setLanguages(List<String> languages) {
89 this.languages = languages;
90 return this;
91 }
92
93 public List<String> getFiltereds() {
94 return filtereds;
95 }
96
97 public ArchetypeCreationRequest setFiltereds(List<String> filtereds) {
98 this.filtereds = filtereds;
99 return this;
100 }
101
102 public String getDefaultEncoding() {
103 return defaultEncoding;
104 }
105
106 public ArchetypeCreationRequest setDefaultEncoding(String defaultEncoding) {
107 this.defaultEncoding = defaultEncoding;
108 return this;
109 }
110
111 public boolean isPreserveCData() {
112 return preserveCData;
113 }
114
115 public ArchetypeCreationRequest setPreserveCData(boolean preserveCData) {
116 this.preserveCData = preserveCData;
117 return this;
118 }
119
120 public boolean isKeepParent() {
121 return keepParent;
122 }
123
124 public ArchetypeCreationRequest setKeepParent(boolean keepParent) {
125 this.keepParent = keepParent;
126 return this;
127 }
128
129 public boolean isPartialArchetype() {
130 return partialArchetype;
131 }
132
133 public ArchetypeCreationRequest setPartialArchetype(boolean partialArchetype) {
134 this.partialArchetype = partialArchetype;
135 return this;
136 }
137
138 public Properties getProperties() {
139 return properties;
140 }
141
142 public ArchetypeCreationRequest setProperties(Properties properties) {
143 this.properties = properties;
144 return this;
145 }
146
147 public String getPackageName() {
148 return packageName;
149 }
150
151 public ArchetypeCreationRequest setPackageName(String packageName) {
152 this.packageName = packageName;
153 return this;
154 }
155
156 public File getOutputDirectory() {
157 return outputDirectory;
158 }
159
160 public ArchetypeCreationRequest setOutputDirectory(File outputDirectory) {
161 this.outputDirectory = outputDirectory;
162 return this;
163 }
164
165 public File getSettingsFile() {
166 return settingsFile;
167 }
168
169 public ArchetypeCreationRequest setSettingsFile(File settingsFile) {
170 this.settingsFile = settingsFile;
171 return this;
172 }
173 }