All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.mojo.versions.report.Dependency Maven / Gradle / Ivy

Go to download

Versions Plugin for Maven 2. The Versions Plugin updates the versions of components in the POM.

There is a newer version: 2.1.4
Show newest version
package org.codehaus.mojo.versions.report;

import java.util.HashMap;
import java.util.Map;

public class Dependency {
    private String groupId;
    private String artifactId;
    private String version;
    private String type;
    private String scope;
    private String projectId;
    private Map inputLocationMap = new HashMap();

    public String getArtifactId() {
        return artifactId;
    }

    public void setArtifactId(String artifactId) {
        this.artifactId = artifactId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public void addInputLocation(String key, org.apache.maven.model.InputLocation location) {
        if (null != location) {
            final InputLocation inputLocation = new InputLocation();

            inputLocation.setLine(location.getLineNumber());
            inputLocation.setColumn(location.getColumnNumber());
            inputLocation.setInputSource(location.getSource());

            inputLocationMap.put(key, inputLocation);
        }
    }

    public Map getInputLocationMap() {
        return inputLocationMap;
    }

    public void setInputLocationMap(Map inputLocationMap) {
        this.inputLocationMap = inputLocationMap;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy