org.whitesource.agent.api.model.AnalysisInputs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wss-agent-api Show documentation
Show all versions of wss-agent-api Show documentation
Java bindings for White Source API
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