Class XmlLicenseProviderWithCrossRefDetails
java.lang.Object
org.spdx.licensexml.XmlLicenseProvider
org.spdx.licensexml.XmlLicenseProviderWithCrossRefDetails
- All Implemented Interfaces:
ISpdxListedLicenseProvider
Provide license information from XML files
- Author:
- Gary O'Neall
-
Field Summary
Fields inherited from class org.spdx.licensexml.XmlLicenseProvider
copyManager, creationInfo, currentListVersion, releaseDate, v2ModelStore, v3ModelStore, warnings -
Constructor Summary
ConstructorsConstructorDescriptionXmlLicenseProviderWithCrossRefDetails(File xmlFileDirectory, String currentListVersion, String releaseDate) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.spdx.licensexml.XmlLicenseProvider
createCreationInfo, getWarnings
-
Constructor Details
-
XmlLicenseProviderWithCrossRefDetails
public XmlLicenseProviderWithCrossRefDetails(File xmlFileDirectory, String currentListVersion, String releaseDate) throws org.spdx.core.InvalidSPDXAnalysisException - Parameters:
xmlFileDirectory- directory of XML filescurrentListVersion- version of the license list to include the license datareleaseDate- Date the license list is released- Throws:
org.spdx.core.InvalidSPDXAnalysisException- on errors creating creationInfo or finding the file directory
-
-
Method Details
-
getLicenseIterator
public Iterator<ListedLicenseContainer> getLicenseIterator() throws org.spdx.library.model.v2.license.SpdxListedLicenseException- Specified by:
getLicenseIteratorin interfaceISpdxListedLicenseProvider- Overrides:
getLicenseIteratorin classXmlLicenseProvider- Throws:
org.spdx.library.model.v2.license.SpdxListedLicenseException
-
getExceptionIterator
public Iterator<ListedExceptionContainer> getExceptionIterator() throws org.spdx.core.InvalidSPDXAnalysisException- Specified by:
getExceptionIteratorin interfaceISpdxListedLicenseProvider- Overrides:
getExceptionIteratorin classXmlLicenseProvider- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-