Class Reference
- java.lang.Object
-
- org.owasp.dependencycheck.dependency.Reference
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Reference>
@ThreadSafe public class Reference extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Reference>
An external reference for a vulnerability. This contains a name, URL, and a source.- Author:
- Jeremy Long
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(@NotNull Reference o)Implementation of the comparable interface.booleanequals(java.lang.Object obj)java.lang.StringgetName()Get the value of name.java.lang.StringgetSource()Get the value of source.java.lang.StringgetUrl()Get the value of url.inthashCode()voidsetName(java.lang.String name)Set the value of name.voidsetSource(java.lang.String source)Set the value of source.voidsetUrl(java.lang.String url)Set the value of url.java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the value of name.- Returns:
- the value of name
-
setName
public void setName(java.lang.String name)
Set the value of name.- Parameters:
name- new value of name
-
getUrl
public java.lang.String getUrl()
Get the value of url.- Returns:
- the value of url
-
setUrl
public void setUrl(java.lang.String url)
Set the value of url.- Parameters:
url- new value of url
-
getSource
public java.lang.String getSource()
Get the value of source.- Returns:
- the value of source
-
setSource
public void setSource(java.lang.String source)
Set the value of source.- Parameters:
source- new value of source
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-