KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > tools > jbiplugin > mock > ArtifactMock


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: ArtifactMock.java 11:21:21 ddesjardins $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.tools.jbiplugin.mock;
23
24 import java.io.File JavaDoc;
25 import java.util.Collection JavaDoc;
26 import java.util.List JavaDoc;
27
28 import org.apache.maven.artifact.Artifact;
29 import org.apache.maven.artifact.handler.ArtifactHandler;
30 import org.apache.maven.artifact.metadata.ArtifactMetadata;
31 import org.apache.maven.artifact.repository.ArtifactRepository;
32 import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
33 import org.apache.maven.artifact.versioning.ArtifactVersion;
34 import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
35 import org.apache.maven.artifact.versioning.VersionRange;
36
37 /**
38  * Used to simulate an artifact
39  *
40  * @author ddesjardins - eBMWebsourcing
41  */

42 public class ArtifactMock implements Artifact {
43
44     public String JavaDoc getGroupId() {
45         return null;
46     }
47
48     public String JavaDoc getArtifactId() {
49         return null;
50     }
51
52     public String JavaDoc getVersion() {
53         return null;
54     }
55
56     public void setVersion(String JavaDoc arg0) {
57     }
58
59     public String JavaDoc getScope() {
60         return null;
61     }
62
63     public String JavaDoc getType() {
64         return null;
65     }
66
67     public String JavaDoc getClassifier() {
68         return null;
69     }
70
71     public boolean hasClassifier() {
72         return false;
73     }
74
75     public File JavaDoc getFile() {
76         return null;
77     }
78
79     public void setFile(File JavaDoc arg0) {
80     }
81
82     public String JavaDoc getBaseVersion() {
83         return null;
84     }
85
86     public void setBaseVersion(String JavaDoc arg0) {
87     }
88
89     public String JavaDoc getId() {
90         return null;
91     }
92
93     public String JavaDoc getDependencyConflictId() {
94         return null;
95     }
96
97     public void addMetadata(ArtifactMetadata arg0) {
98     }
99
100     public Collection JavaDoc getMetadataList() {
101         return null;
102     }
103
104     public void setRepository(ArtifactRepository arg0) {
105     }
106
107     public ArtifactRepository getRepository() {
108         return null;
109     }
110
111     public void updateVersion(String JavaDoc arg0, ArtifactRepository arg1) {
112     }
113
114     public String JavaDoc getDownloadUrl() {
115         return null;
116     }
117
118     public void setDownloadUrl(String JavaDoc arg0) {
119     }
120
121     public ArtifactFilter getDependencyFilter() {
122         return null;
123     }
124
125     public void setDependencyFilter(ArtifactFilter arg0) {
126     }
127
128     public ArtifactHandler getArtifactHandler() {
129         return null;
130     }
131
132     public List JavaDoc getDependencyTrail() {
133         return null;
134     }
135
136     public void setDependencyTrail(List JavaDoc arg0) {
137     }
138
139     public void setScope(String JavaDoc arg0) {
140     }
141
142     public VersionRange getVersionRange() {
143         return null;
144     }
145
146     public void setVersionRange(VersionRange arg0) {
147     }
148
149     public void selectVersion(String JavaDoc arg0) {
150     }
151
152     public void setGroupId(String JavaDoc arg0) {
153     }
154
155     public void setArtifactId(String JavaDoc arg0) {
156     }
157
158     public boolean isSnapshot() {
159         return false;
160     }
161
162     public void setResolved(boolean arg0) {
163     }
164
165     public boolean isResolved() {
166         return false;
167     }
168
169     public void setResolvedVersion(String JavaDoc arg0) {
170     }
171
172     public void setArtifactHandler(ArtifactHandler arg0) {
173     }
174
175     public boolean isRelease() {
176         return false;
177     }
178
179     public void setRelease(boolean arg0) {
180     }
181
182     public List JavaDoc getAvailableVersions() {
183         return null;
184     }
185
186     public void setAvailableVersions(List JavaDoc arg0) {
187     }
188
189     public boolean isOptional() {
190         return false;
191     }
192
193     public void setOptional(boolean arg0) {
194     }
195
196     public ArtifactVersion getSelectedVersion()
197             throws OverConstrainedVersionException {
198         return null;
199     }
200
201     public boolean isSelectedVersionKnown()
202             throws OverConstrainedVersionException {
203         return false;
204     }
205
206     public int compareTo(Object JavaDoc o) {
207         return 0;
208     }
209
210 }
211
Popular Tags