Package org.spdx.spdx_to_osv
Class ExternalRefParser
java.lang.Object
org.spdx.spdx_to_osv.ExternalRefParser
public class ExternalRefParser extends Object
Parses an ExternalRef
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description ExternalRefParser(org.spdx.library.model.ExternalRef externalRef)ExternalRefParser(org.spdx.library.model.ExternalRef externalRef, boolean useMavenGroupInPkgName) -
Method Summary
Modifier and Type Method Description Optional<String>getCpeOther()Optional<us.springett.parsers.cpe.values.Part>getCpePart()Optional<String>getEdition()org.spdx.library.model.ExternalRefgetExternalRef()Optional<String>getLanguage()Optional<String>getSwEdition()Optional<String>getTargetHw()Optional<String>getTargetSw()Optional<String>getUpdate()Optional<String>getVendor()booleanisUseMavenGroupInPkgName()Optional<OsvVulnerabilityRequest>osvVulnerabilityRequest()
-
Constructor Details
-
ExternalRefParser
public ExternalRefParser(org.spdx.library.model.ExternalRef externalRef) throws org.spdx.library.InvalidSPDXAnalysisException, InvalidExternalRefPattern, IOException, SwhException- Parameters:
externalRef- The ExteranlRef to be parsed- Throws:
org.spdx.library.InvalidSPDXAnalysisExceptionInvalidExternalRefPatternIOExceptionSwhException
-
ExternalRefParser
public ExternalRefParser(org.spdx.library.model.ExternalRef externalRef, boolean useMavenGroupInPkgName) throws org.spdx.library.InvalidSPDXAnalysisException, InvalidExternalRefPattern, IOException, SwhException- Parameters:
externalRef- The ExteranlRef to be parseduseMavenGroupInPkgName- flag to indicate if the maven group name should be included in the package name (e.g. org.spdx.spdx.spdx-java-tools)- Throws:
org.spdx.library.InvalidSPDXAnalysisExceptionInvalidExternalRefPatternIOExceptionSwhException
-
-
Method Details
-
getExternalRef
public org.spdx.library.model.ExternalRef getExternalRef()- Returns:
- the externalRef
-
osvVulnerabilityRequest
- Returns:
- the packageNameVersion
-
getCpePart
- Returns:
- the cpePart
-
getVendor
- Returns:
- the vendor
-
getUpdate
- Returns:
- the update
-
getEdition
- Returns:
- the edition
-
getLanguage
- Returns:
- the language
-
getSwEdition
- Returns:
- the swEdition
-
getTargetSw
- Returns:
- the targetSw
-
getTargetHw
- Returns:
- the targetHw
-
getCpeOther
- Returns:
- the cpeOther
-
isUseMavenGroupInPkgName
public boolean isUseMavenGroupInPkgName()- Returns:
- flag to indicate if the maven group name should be included in the package name (e.g. org.spdx.spdx.spdx-java-tools)
-