Class CpeMatch
- java.lang.Object
-
- io.github.jeremylong.openvulnerability.client.nvd.CpeMatch
-
- All Implemented Interfaces:
java.io.Serializable
@NullMarked public class CpeMatch extends java.lang.Object implements java.io.SerializableCPE match string or range- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CpeMatch(java.lang.Boolean vulnerable, java.lang.String criteria, java.lang.String matchCriteriaId)Constructor taking only the required set of JSON properties as the minimal constructor for a CpeMatch.CpeMatch(java.lang.Boolean vulnerable, java.lang.String criteria, java.lang.String matchCriteriaId, @Nullable java.lang.String versionStartExcluding, @Nullable java.lang.String versionStartIncluding, @Nullable java.lang.String versionEndExcluding, @Nullable java.lang.String versionEndIncluding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetCriteria()(Required)java.lang.StringgetMatchCriteriaId()(Required)@Nullable java.lang.StringgetVersionEndExcluding()@Nullable java.lang.StringgetVersionEndIncluding()@Nullable java.lang.StringgetVersionStartExcluding()@Nullable java.lang.StringgetVersionStartIncluding()java.lang.BooleangetVulnerable()(Required)inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
CpeMatch
public CpeMatch(java.lang.Boolean vulnerable, java.lang.String criteria, java.lang.String matchCriteriaId)Constructor taking only the required set of JSON properties as the minimal constructor for a CpeMatch.- Parameters:
vulnerable- The vulnerable for the CpeMatch (required JSON property)criteria- The criteria for the CpeMatch (required JSON property)matchCriteriaId- The matchCriteriaId for the CpeMatch (required JSON property)
-
CpeMatch
public CpeMatch(java.lang.Boolean vulnerable, java.lang.String criteria, java.lang.String matchCriteriaId, @Nullable java.lang.String versionStartExcluding, @Nullable java.lang.String versionStartIncluding, @Nullable java.lang.String versionEndExcluding, @Nullable java.lang.String versionEndIncluding)
-
-
Method Detail
-
getVulnerable
public java.lang.Boolean getVulnerable()
(Required)- Returns:
- vulnerable
-
getCriteria
public java.lang.String getCriteria()
(Required)- Returns:
- criteria
-
getMatchCriteriaId
public java.lang.String getMatchCriteriaId()
(Required)- Returns:
- matchCriteriaId
-
getVersionStartExcluding
public @Nullable java.lang.String getVersionStartExcluding()
- Returns:
- versionStartExcluding
-
getVersionStartIncluding
public @Nullable java.lang.String getVersionStartIncluding()
- Returns:
- versionStartIncluding
-
getVersionEndExcluding
public @Nullable java.lang.String getVersionEndExcluding()
- Returns:
- versionStartIncluding
-
getVersionEndIncluding
public @Nullable java.lang.String getVersionEndIncluding()
- Returns:
- versionEndIncluding
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-