1 package org.apache.maven.archetype;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.artifact.repository.ArtifactRepository;
23 import org.apache.maven.project.MavenProject;
24
25 import java.io.File;
26 import java.util.ArrayList;
27 import java.util.List;
28 import java.util.Properties;
29
30
31 public class ArchetypeCreationRequest
32 {
33 private ArtifactRepository localRepository;
34
35 private MavenProject project;
36
37
38
39 private List<String> languages = new ArrayList<String>();
40
41 private List<String> filtereds = new ArrayList<String>();
42
43 private String defaultEncoding = "UTF-8";
44
45 private boolean preserveCData = false;
46
47 private boolean keepParent = true;
48
49 private boolean partialArchetype = false;
50
51 private File archetypeRegistryFile;
52
53 private String packageName;
54
55 private Properties properties;
56
57 private String postPhase;
58
59 private File outputDirectory;
60
61 public String getPostPhase()
62 {
63 return postPhase;
64 }
65
66 public ArchetypeCreationRequest setPostPhase( String postPhase )
67 {
68 this.postPhase = postPhase;
69
70 return this;
71 }
72
73 public ArtifactRepository getLocalRepository()
74 {
75 return localRepository;
76 }
77
78 public ArchetypeCreationRequest setLocalRepository( ArtifactRepository localRepository )
79 {
80 this.localRepository = localRepository;
81
82 return this;
83 }
84
85 public MavenProject getProject()
86 {
87 return project;
88 }
89
90 public ArchetypeCreationRequest setProject( MavenProject project )
91 {
92 this.project = project;
93
94 return this;
95 }
96
97
98
99
100
101
102
103
104
105
106
107
108
109 public List<String> getLanguages()
110 {
111 return languages;
112 }
113
114 public ArchetypeCreationRequest setLanguages( List<String> languages )
115 {
116 this.languages = languages;
117
118 return this;
119 }
120
121 public List<String> getFiltereds()
122 {
123 return filtereds;
124 }
125
126 public ArchetypeCreationRequest setFiltereds( List<String> filtereds )
127 {
128 this.filtereds = filtereds;
129
130 return this;
131 }
132
133 public String getDefaultEncoding()
134 {
135 return defaultEncoding;
136 }
137
138 public ArchetypeCreationRequest setDefaultEncoding( String defaultEncoding )
139 {
140 this.defaultEncoding = defaultEncoding;
141
142 return this;
143 }
144
145 public boolean isPreserveCData()
146 {
147 return preserveCData;
148 }
149
150 public ArchetypeCreationRequest setPreserveCData( boolean preserveCData )
151 {
152 this.preserveCData = preserveCData;
153
154 return this;
155 }
156
157 public boolean isKeepParent()
158 {
159 return keepParent;
160 }
161
162 public ArchetypeCreationRequest setKeepParent( boolean keepParent )
163 {
164 this.keepParent = keepParent;
165
166 return this;
167 }
168
169 public boolean isPartialArchetype()
170 {
171 return partialArchetype;
172 }
173
174 public ArchetypeCreationRequest setPartialArchetype( boolean partialArchetype )
175 {
176 this.partialArchetype = partialArchetype;
177
178 return this;
179 }
180
181 public File getArchetypeRegistryFile()
182 {
183 return archetypeRegistryFile;
184 }
185
186 public ArchetypeCreationRequest setArchetypeRegistryFile( File archetypeRegistryFile )
187 {
188 this.archetypeRegistryFile = archetypeRegistryFile;
189
190 return this;
191 }
192
193 public Properties getProperties()
194 {
195 return properties;
196 }
197
198 public ArchetypeCreationRequest setProperties( Properties properties )
199 {
200 this.properties = properties;
201
202 return this;
203 }
204
205 public String getPackageName()
206 {
207 return packageName;
208 }
209
210 public ArchetypeCreationRequest setPackageName( String packageName )
211 {
212 this.packageName = packageName;
213
214 return this;
215 }
216
217 public File getOutputDirectory()
218 {
219 return outputDirectory;
220 }
221
222 public ArchetypeCreationRequest setOutputDirectory( File outputDirectory )
223 {
224 this.outputDirectory = outputDirectory;
225
226 return this;
227 }
228 }