added an additional addIdentfier to support identifier confidence for issue #35

Former-commit-id: c36f85a13598ac9683db078c93ac495bf629f443
This commit is contained in:
Jeremy Long
2014-01-17 20:32:30 -05:00
parent dde1d96058
commit 48907517e9

View File

@@ -247,6 +247,20 @@ public class Dependency implements Comparable<Dependency> {
this.identifiers.add(i);
}
/**
* Adds an entry to the list of detected Identifiers for the dependency file.
*
* @param type the type of identifier (such as CPE)
* @param value the value of the identifier
* @param url the URL of the identifier
* @param confidence the confidence in the Identifier being accurate
*/
public void addIdentifier(String type, String value, String url, Confidence confidence) {
final Identifier i = new Identifier(type, value, url);
i.setConfidence(confidence);
this.identifiers.add(i);
}
/**
* Adds an entry to the list of detected Identifiers for the dependency file.
*