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

Former-commit-id: d03d5606703ae58dcc9f954c93dce6135e5bf5f5
This commit is contained in:
Jeremy Long
2014-01-17 20:32:30 -05:00
parent 19e882a0d7
commit 1608cb7cd1

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.
*