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

org.whitesource.agent.api.model.AnalysisInputs Maven / Gradle / Ivy

There is a newer version: 18.4.1
Show newest version
package org.whitesource.agent.api.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * This class holds all information necessary for the Effective Usage Analysis to run successfully.
 *
 * @author noam.dolovich
 */
public class AnalysisInputs implements Serializable {

    private static final long serialVersionUID = -1209587213611770019L;

    private Map modulesToPaths;
    private String euaArtifactId;
    private boolean emptyDependency;

    public AnalysisInputs() {
    }

    public AnalysisInputs(String euaArtifactId) {
        this.euaArtifactId = euaArtifactId;
    }

    public Map getModulesToPaths() {
        if (modulesToPaths == null) {
            modulesToPaths = new HashMap<>();
        }
        return modulesToPaths;
    }

    public void setModulesToPaths(Map modulesToPaths) {
        this.modulesToPaths = modulesToPaths;
    }

    public void addDependencyModulesToPaths(String key, String value) {
        getModulesToPaths().put(key, value);
    }

    public String getEuaArtifactId() {
        return euaArtifactId;
    }

    public void setEuaArtifactId(String euaArtifactId) {
        this.euaArtifactId = euaArtifactId;
    }

    public boolean isEmptyDependency() {
        return emptyDependency;
    }

    public void setEmptyDependency(boolean emptyDependency) {
        this.emptyDependency = emptyDependency;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy