KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > artifact > handler > MockArtifactHandler


1 package org.apache.maven.artifact.handler;
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 public class MockArtifactHandler
20     implements ArtifactHandler
21 {
22
23     private String JavaDoc extension, directory, classifier, packaging, language;
24
25     private boolean includesDependencies, addedToClasspath;
26
27     public void setExtension( String JavaDoc extension )
28     {
29         this.extension = extension;
30     }
31
32     public String JavaDoc getExtension()
33     {
34         return extension;
35     }
36
37     public void setDirectory( String JavaDoc directory )
38     {
39         this.directory = directory;
40     }
41
42     public String JavaDoc getDirectory()
43     {
44         return directory;
45     }
46
47     public void setClassifier( String JavaDoc classifier )
48     {
49         this.classifier = classifier;
50     }
51
52     public String JavaDoc getClassifier()
53     {
54         return classifier;
55     }
56
57     public void setPackaging( String JavaDoc packaging )
58     {
59         this.packaging = packaging;
60     }
61
62     public String JavaDoc getPackaging()
63     {
64         return packaging;
65     }
66
67     public void setIncludesDependencies( boolean includesDependencies )
68     {
69         this.includesDependencies = includesDependencies;
70     }
71
72     public boolean isIncludesDependencies()
73     {
74         return includesDependencies;
75     }
76
77     public void setLanguage( String JavaDoc language )
78     {
79         this.language = language;
80     }
81
82     public String JavaDoc getLanguage()
83     {
84         return language;
85     }
86
87     public void setAddedToClasspath( boolean addedToClasspath )
88     {
89         this.addedToClasspath = addedToClasspath;
90     }
91
92     public boolean isAddedToClasspath()
93     {
94         return addedToClasspath;
95     }
96
97 }
98
Popular Tags