-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NIST NVD REST API as CVE database
That's a lot of acronyms. Also, this is related to #3
- Loading branch information
Showing
35 changed files
with
5,867 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
...lator/pcm/confidentiality/reverseengineering/staticcodeanalysis/nvd_rest_api/Affects.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
|
||
package org.palladiosimulator.pcm.confidentiality.reverseengineering.staticcodeanalysis.nvd_rest_api; | ||
|
||
import javax.annotation.processing.Generated; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ "vendor" }) | ||
@Generated("jsonschema2pojo") | ||
public class Affects { | ||
|
||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("vendor") | ||
private Vendor vendor; | ||
|
||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("vendor") | ||
public Vendor getVendor() { | ||
return vendor; | ||
} | ||
|
||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("vendor") | ||
public void setVendor(Vendor vendor) { | ||
this.vendor = vendor; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append(Affects.class.getName()) | ||
.append('@') | ||
.append(Integer.toHexString(System.identityHashCode(this))) | ||
.append('['); | ||
sb.append("vendor"); | ||
sb.append('='); | ||
sb.append(((this.vendor == null) ? "<null>" : this.vendor)); | ||
sb.append(','); | ||
if (sb.charAt((sb.length() - 1)) == ',') { | ||
sb.setCharAt((sb.length() - 1), ']'); | ||
} else { | ||
sb.append(']'); | ||
} | ||
return sb.toString(); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int result = 1; | ||
result = ((result * 31) + ((this.vendor == null) ? 0 : this.vendor.hashCode())); | ||
return result; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object other) { | ||
if (other == this) { | ||
return true; | ||
} | ||
if ((other instanceof Affects) == false) { | ||
return false; | ||
} | ||
Affects rhs = ((Affects) other); | ||
return ((this.vendor == rhs.vendor) || ((this.vendor != null) && this.vendor.equals(rhs.vendor))); | ||
} | ||
|
||
} |
Oops, something went wrong.