View Javadoc

1   package org.apache.maven.plugin.testing.stubs;
2   
3   /*
4    * Copyright 2001-2006 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  import org.apache.maven.artifact.Artifact;
20  import org.apache.maven.artifact.versioning.VersionRange;
21  import org.apache.maven.artifact.versioning.ArtifactVersion;
22  import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
23  import org.apache.maven.artifact.handler.ArtifactHandler;
24  import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
25  import org.apache.maven.artifact.repository.ArtifactRepository;
26  import org.apache.maven.artifact.metadata.ArtifactMetadata;
27  
28  import java.io.File;
29  import java.util.Collection;
30  import java.util.List;
31  
32  /**
33   * StubArtifact:
34   *
35   * @author: jesse
36   * @date: Feb 24, 2006
37   * @version: $ID:$
38   */
39  public class ArtifactStub implements Artifact
40  {
41  
42      public int compareTo( Object object )
43      {
44          return 0;
45      }
46  
47      public String getGroupId()
48      {
49          return null;
50      }
51  
52      public String getArtifactId()
53      {
54          return null;
55      }
56  
57      public String getVersion()
58      {
59          return null;
60      }
61  
62      public void setVersion( String string )
63      {
64      }
65  
66      public String getScope()
67      {
68          return null;
69      }
70  
71      public String getType()
72      {
73          return null;
74      }
75  
76      public String getClassifier()
77      {
78          return null;
79      }
80  
81      public boolean hasClassifier()
82      {
83          return false;
84      }
85  
86      public File getFile()
87      {
88          return null;
89      }
90  
91      public void setFile( File file )
92      {
93  
94      }
95  
96      public String getBaseVersion()
97      {
98          return null;
99      }
100 
101     public void setBaseVersion( String string )
102     {
103     }
104 
105     public String getId()
106     {
107         return null;
108     }
109 
110     public String getDependencyConflictId()
111     {
112         return null;
113     }
114 
115     public void addMetadata( ArtifactMetadata artifactMetadata )
116     {
117     }
118 
119     public Collection getMetadataList()
120     {
121         return null;
122     }
123 
124     public void setRepository( ArtifactRepository artifactRepository )
125     {
126     }
127 
128     public ArtifactRepository getRepository()
129     {
130         return null;
131     }
132 
133     public void updateVersion( String string, ArtifactRepository artifactRepository )
134     {
135     }
136 
137     public String getDownloadUrl()
138     {
139         return null;
140     }
141 
142     public void setDownloadUrl( String string )
143     {
144     }
145 
146     public ArtifactFilter getDependencyFilter()
147     {
148         return null;
149     }
150 
151     public void setDependencyFilter( ArtifactFilter artifactFilter )
152     {
153     }
154 
155     public ArtifactHandler getArtifactHandler()
156     {
157         return null;
158     }
159 
160     public List getDependencyTrail()
161     {
162         return null;
163     }
164 
165     public void setDependencyTrail( List list )
166     {
167     }
168 
169     public void setScope( String string )
170     {
171     }
172 
173     public VersionRange getVersionRange()
174     {
175         return null;
176     }
177 
178     public void setVersionRange( VersionRange versionRange )
179     {
180     }
181 
182     public void selectVersion( String string )
183     {
184     }
185 
186     public void setGroupId( String string )
187     {
188     }
189 
190     public void setArtifactId( String string )
191     {
192     }
193 
194     public boolean isSnapshot()
195     {
196         return false;
197     }
198 
199     public void setResolved( boolean b )
200     {
201     }
202 
203     public boolean isResolved()
204     {
205         return false;
206     }
207 
208     public void setResolvedVersion( String string )
209     {
210     }
211 
212     public void setArtifactHandler( ArtifactHandler artifactHandler )
213     {
214     }
215 
216     public boolean isRelease()
217     {
218         return false;
219     }
220 
221     public void setRelease( boolean b )
222     {
223     }
224 
225     public List getAvailableVersions()
226     {
227         return null;
228     }
229 
230     public void setAvailableVersions( List list )
231     {
232     }
233 
234     public boolean isOptional()
235     {
236         return false;
237     }
238 
239     public void setOptional( boolean b )
240     {
241     }
242 
243     public ArtifactVersion getSelectedVersion()
244         throws OverConstrainedVersionException
245     {
246         return null;
247     }
248 
249     public boolean isSelectedVersionKnown()
250         throws OverConstrainedVersionException
251     {
252         return false;
253     }
254 }