ppt4j 1.0
 
Loading...
Searching...
No Matches
ppt4j.database.VulnerabilityInfo Class Reference

Public Member Functions

void dumpJSON (String path) throws IOException
 
boolean isEmpty ()
 

Static Public Member Functions

static VulnerabilityInfo fromJSON (InputStream stream) throws IOException
 

Public Attributes

String vul_id
 
String cve_id
 
String project
 
String project_url
 
String build_system
 
String src_classes_dir
 
String human_patch_url
 
String fixing_commit_hash
 
boolean should_scan_all_modules
 
String[] third_party_src_dirs
 
String[] third_party_lib_dirs
 
String src_top_level_dir
 

Member Function Documentation

◆ dumpJSON()

void ppt4j.database.VulnerabilityInfo.dumpJSON ( String path) throws IOException

Writes the JSON representation of the current object to a file specified by the given path.

Parameters
paththe path of the file where the JSON representation will be written
Exceptions
IOExceptionif an I/O error occurs when writing the JSON representation to the file

◆ fromJSON()

static VulnerabilityInfo ppt4j.database.VulnerabilityInfo.fromJSON ( InputStream stream) throws IOException
static

Creates a VulnerabilityInfo object by parsing JSON data from the InputStream.

Parameters
streamthe InputStream containing the JSON data
Returns
a VulnerabilityInfo object created from the JSON data
Exceptions
IOExceptionif an I/O error occurs while reading the input stream

◆ isEmpty()

boolean ppt4j.database.VulnerabilityInfo.isEmpty ( )

Checks if all non-nullable fields in the current object are empty (null or empty string). Non-nullable fields are determined by the absence of the Nullable annotation.

Returns
true if all non-nullable fields are empty, false otherwise

Member Data Documentation

◆ build_system

String ppt4j.database.VulnerabilityInfo.build_system

◆ cve_id

String ppt4j.database.VulnerabilityInfo.cve_id

◆ fixing_commit_hash

String ppt4j.database.VulnerabilityInfo.fixing_commit_hash

◆ human_patch_url

String ppt4j.database.VulnerabilityInfo.human_patch_url

◆ project

String ppt4j.database.VulnerabilityInfo.project

◆ project_url

String ppt4j.database.VulnerabilityInfo.project_url

◆ should_scan_all_modules

boolean ppt4j.database.VulnerabilityInfo.should_scan_all_modules

◆ src_classes_dir

String ppt4j.database.VulnerabilityInfo.src_classes_dir

◆ src_top_level_dir

String ppt4j.database.VulnerabilityInfo.src_top_level_dir

◆ third_party_lib_dirs

String [] ppt4j.database.VulnerabilityInfo.third_party_lib_dirs

◆ third_party_src_dirs

String [] ppt4j.database.VulnerabilityInfo.third_party_src_dirs

◆ vul_id

String ppt4j.database.VulnerabilityInfo.vul_id

The documentation for this class was generated from the following file: