Package org.spdx.spdx_to_osv
Class SwhRelease
java.lang.Object
org.spdx.spdx_to_osv.SwhRelease
public class SwhRelease extends Object
Result of a call to the Software Heritage API
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description SwhRelease() -
Method Summary
Modifier and Type Method Description com.google.gson.JsonObjectgetAuthor()StringgetDate()StringgetId()StringgetMessage()StringgetName()StringgetTarget()StringgetTarget_type()StringgetTarget_url()voidsetAuthor(com.google.gson.JsonObject author)voidsetDate(String date)voidsetId(String id)voidsetMessage(String message)voidsetName(String name)voidsetTarget(String target)voidsetTarget_type(String target_type)voidsetTarget_url(String target_url)
-
Constructor Details
-
SwhRelease
public SwhRelease()
-
-
Method Details
-
getAuthor
public com.google.gson.JsonObject getAuthor()- Returns:
- the author
-
setAuthor
public void setAuthor(com.google.gson.JsonObject author)- Parameters:
author- the author to set
-
getDate
- Returns:
- the date
-
setDate
- Parameters:
date- the date to set
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getMessage
- Returns:
- the message
-
setMessage
- Parameters:
message- the message to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getTarget
- Returns:
- the target
-
setTarget
- Parameters:
target- the target to set
-
getTarget_type
- Returns:
- the target_type
-
setTarget_type
- Parameters:
target_type- the target_type to set
-
getTarget_url
- Returns:
- the target_url
-
setTarget_url
- Parameters:
target_url- the target_url to set
-