001    package org.apache.maven.artifact.handler;
002    
003    /*
004     * Licensed to the Apache Software Foundation (ASF) under one
005     * or more contributor license agreements.  See the NOTICE file
006     * distributed with this work for additional information
007     * regarding copyright ownership.  The ASF licenses this file
008     * to you under the Apache License, Version 2.0 (the
009     * "License"); you may not use this file except in compliance
010     * with the License.  You may obtain a copy of the License at
011     *
012     *  http://www.apache.org/licenses/LICENSE-2.0
013     *
014     * Unless required by applicable law or agreed to in writing,
015     * software distributed under the License is distributed on an
016     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017     * KIND, either express or implied.  See the License for the
018     * specific language governing permissions and limitations
019     * under the License.
020     */
021    
022    public class ArtifactHandlerMock
023        implements ArtifactHandler
024    {
025    
026        private String extension, directory, classifier, packaging, language;
027    
028        private boolean includesDependencies, addedToClasspath;
029    
030        public void setExtension( String extension )
031        {
032            this.extension = extension;
033        }
034    
035        public String getExtension()
036        {
037            return extension;
038        }
039    
040        public void setDirectory( String directory )
041        {
042            this.directory = directory;
043        }
044    
045        public String getDirectory()
046        {
047            return directory;
048        }
049    
050        public void setClassifier( String classifier )
051        {
052            this.classifier = classifier;
053        }
054    
055        public String getClassifier()
056        {
057            return classifier;
058        }
059    
060        public void setPackaging( String packaging )
061        {
062            this.packaging = packaging;
063        }
064    
065        public String getPackaging()
066        {
067            return packaging;
068        }
069    
070        public void setIncludesDependencies( boolean includesDependencies )
071        {
072            this.includesDependencies = includesDependencies;
073        }
074    
075        public boolean isIncludesDependencies()
076        {
077            return includesDependencies;
078        }
079    
080        public void setLanguage( String language )
081        {
082            this.language = language;
083        }
084    
085        public String getLanguage()
086        {
087            return language;
088        }
089    
090        public void setAddedToClasspath( boolean addedToClasspath )
091        {
092            this.addedToClasspath = addedToClasspath;
093        }
094    
095        public boolean isAddedToClasspath()
096        {
097            return addedToClasspath;
098        }
099    
100    }