View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  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,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.artifact.handler;
20  
21  public class ArtifactHandlerMock implements ArtifactHandler {
22  
23      private String extension, directory, classifier, packaging, language;
24      private boolean includesDependencies, addedToClasspath;
25  
26      public void setExtension(String extension) {
27          this.extension = extension;
28      }
29  
30      @Override
31      public String getExtension() {
32          return extension;
33      }
34  
35      public void setDirectory(String directory) {
36          this.directory = directory;
37      }
38  
39      @Override
40      public String getDirectory() {
41          return directory;
42      }
43  
44      public void setClassifier(String classifier) {
45          this.classifier = classifier;
46      }
47  
48      @Override
49      public String getClassifier() {
50          return classifier;
51      }
52  
53      public void setPackaging(String packaging) {
54          this.packaging = packaging;
55      }
56  
57      @Override
58      public String getPackaging() {
59          return packaging;
60      }
61  
62      public void setIncludesDependencies(boolean includesDependencies) {
63          this.includesDependencies = includesDependencies;
64      }
65  
66      @Override
67      public boolean isIncludesDependencies() {
68          return includesDependencies;
69      }
70  
71      public void setLanguage(String language) {
72          this.language = language;
73      }
74  
75      @Override
76      public String getLanguage() {
77          return language;
78      }
79  
80      @Deprecated
81      public void setAddedToClasspath(boolean addedToClasspath) {
82          this.addedToClasspath = addedToClasspath;
83      }
84  
85      @Override
86      @Deprecated
87      public boolean isAddedToClasspath() {
88          return addedToClasspath;
89      }
90  }