Class GenericIdentifier
java.lang.Object
org.owasp.dependencycheck.dependency.naming.GenericIdentifier
- All Implemented Interfaces:
Serializable, Comparable<Identifier>, Identifier
In identifier such as a CPE or dependency coordinates (i.e. GAV).
- Author:
- Jeremy Long
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGenericIdentifier(String value, String url, Confidence confidence) Constructs a new Identifier with the specified data.GenericIdentifier(String value, Confidence confidence) Constructs a new Identifier with the specified data. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(@NonNull Identifier o) Implementation of the comparator interface.booleanBasic implementation of equals.Get the value of confidence.getNotes()Get the value of notes from suppression notes.getUrl()Get the value of URL.getValue()Get the string representation of the Identifier.inthashCode()Basic implementation of hasCode.voidsetConfidence(Confidence confidence) Set the value of confidence.voidSet the value of notes.voidSet the value of URL.toString()Standard implementation of toString; displays identifier value and type.
-
Constructor Details
-
GenericIdentifier
Constructs a new Identifier with the specified data.- Parameters:
value- the identifier valueconfidence- the confidence level that the identifier is correct
-
GenericIdentifier
Constructs a new Identifier with the specified data.- Parameters:
value- the identifier valueurl- the identifier URLconfidence- the confidence level that the identifier is correct
-
-
Method Details
-
getConfidence
Get the value of confidence.- Specified by:
getConfidencein interfaceIdentifier- Returns:
- the value of confidence
-
getValue
Get the string representation of the Identifier.- Specified by:
getValuein interfaceIdentifier- Returns:
- the value of notes
-
getUrl
Get the value of URL.- Specified by:
getUrlin interfaceIdentifier- Returns:
- the value of URL
-
getNotes
Get the value of notes from suppression notes.- Specified by:
getNotesin interfaceIdentifier- Returns:
- the value of notes
-
setConfidence
Set the value of confidence.- Specified by:
setConfidencein interfaceIdentifier- Parameters:
confidence- the value of confidence
-
setUrl
Set the value of URL.- Specified by:
setUrlin interfaceIdentifier- Parameters:
url- the value of URL
-
setNotes
Set the value of notes.- Specified by:
setNotesin interfaceIdentifier- Parameters:
notes- new value of notes
-
equals
-
hashCode
-
toString
-
compareTo
Implementation of the comparator interface.- Specified by:
compareToin interfaceComparable<Identifier>- Parameters:
o- the object being compared- Returns:
- an integer indicating the ordering
-