Class OsiApi
java.lang.Object
org.spdx.crossref.OsiApi
Singleton class that manages the OSI API to fetch license information
- Author:
- Gary O'Neall
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic OsiApibooleanstatic booleanvoidsetCrossRefDetails(String url, org.spdx.library.model.v2.license.SpdxListedLicense license, org.spdx.library.model.v2.license.CrossRef crossRef) Sets the cross reference details for the cross ref givein the URL and license
-
Field Details
-
OSI_PREFIX
- See Also:
-
-
Method Details
-
getInstance
-
isOsiUrl
-
isApiAvailable
public boolean isApiAvailable()- Returns:
- true if the API is available for queries
-
setCrossRefDetails
public void setCrossRefDetails(String url, org.spdx.library.model.v2.license.SpdxListedLicense license, org.spdx.library.model.v2.license.CrossRef crossRef) throws org.spdx.core.InvalidSPDXAnalysisException Sets the cross reference details for the cross ref givein the URL and license- Parameters:
url- URL reference to the OSI websitelicense- SPDX license containing the crossRefcrossRef- crossRef who's details are to be filled in- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-