1 | |
package org.apache.maven.archetype.creator.olddescriptor; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
import java.util.ArrayList; |
23 | |
import java.util.List; |
24 | |
|
25 | |
|
26 | 4 | public class OldArchetypeDescriptor |
27 | |
{ |
28 | |
private String id; |
29 | |
private List resources; |
30 | |
private List siteResources; |
31 | |
private List sources; |
32 | |
private List testResources; |
33 | |
private List testSources; |
34 | |
|
35 | |
public void addResources( String resource ) |
36 | |
{ |
37 | 0 | if ( resources == null ) |
38 | |
{ |
39 | 0 | resources = new ArrayList(); |
40 | |
} |
41 | 0 | resources.add( resource ); |
42 | 0 | } |
43 | |
|
44 | |
public void addSiteResources( String resource ) |
45 | |
{ |
46 | 0 | if ( siteResources == null ) |
47 | |
{ |
48 | 0 | siteResources = new ArrayList(); |
49 | |
} |
50 | 0 | siteResources.add( resource ); |
51 | 0 | } |
52 | |
|
53 | |
public void addSource( String source ) |
54 | |
{ |
55 | 0 | if ( sources == null ) |
56 | |
{ |
57 | 0 | sources = new ArrayList(); |
58 | |
} |
59 | 0 | sources.add( source ); |
60 | 0 | } |
61 | |
|
62 | |
public void addTestResources( String resource ) |
63 | |
{ |
64 | 0 | if ( testResources == null ) |
65 | |
{ |
66 | 0 | testResources = new ArrayList(); |
67 | |
} |
68 | 0 | testResources.add( resource ); |
69 | 0 | } |
70 | |
|
71 | |
public void addTestSources( String source ) |
72 | |
{ |
73 | 0 | if ( testSources == null ) |
74 | |
{ |
75 | 0 | testSources = new ArrayList(); |
76 | |
} |
77 | 0 | testSources.add( source ); |
78 | 0 | } |
79 | |
|
80 | |
public String getId() |
81 | |
{ |
82 | 8 | return id; |
83 | |
} |
84 | |
|
85 | |
public void setId( String id ) |
86 | |
{ |
87 | 4 | this.id = id; |
88 | 4 | } |
89 | |
|
90 | |
public List getResources() |
91 | |
{ |
92 | 10 | return resources; |
93 | |
} |
94 | |
|
95 | |
public void setResources( List resources ) |
96 | |
{ |
97 | 4 | this.resources = resources; |
98 | 4 | } |
99 | |
|
100 | |
public List getSiteResources() |
101 | |
{ |
102 | 10 | return siteResources; |
103 | |
} |
104 | |
|
105 | |
public void setSiteResources( List siteResources ) |
106 | |
{ |
107 | 4 | this.siteResources = siteResources; |
108 | 4 | } |
109 | |
|
110 | |
public List getSources() |
111 | |
{ |
112 | 10 | return sources; |
113 | |
} |
114 | |
|
115 | |
public void setSources( List sources ) |
116 | |
{ |
117 | 4 | this.sources = sources; |
118 | 4 | } |
119 | |
|
120 | |
public List getTestResources() |
121 | |
{ |
122 | 8 | return testResources; |
123 | |
} |
124 | |
|
125 | |
public void setTestResources( List testResources ) |
126 | |
{ |
127 | 4 | this.testResources = testResources; |
128 | 4 | } |
129 | |
|
130 | |
public List getTestSources() |
131 | |
{ |
132 | 10 | return testSources; |
133 | |
} |
134 | |
|
135 | |
public void setTestSources( List testSources ) |
136 | |
{ |
137 | 4 | this.testSources = testSources; |
138 | 4 | } |
139 | |
|
140 | |
public String toString() |
141 | |
{ |
142 | 0 | return |
143 | |
"(OldArchetypeDescriptor" |
144 | |
+ " id=" + id |
145 | |
+ " sources=" + sources |
146 | |
+ " testSources" + testSources |
147 | |
+ " resources" + resources |
148 | |
+ " testResources" + testResources |
149 | |
+ " siteResources" + siteResources |
150 | |
+ ")"; |
151 | |
} |
152 | |
} |