Package org.spdx.licensexml
Class XmlLicenseProviderWithCrossRefDetails
java.lang.Object
org.spdx.licensexml.XmlLicenseProvider
org.spdx.licensexml.XmlLicenseProviderWithCrossRefDetails
- All Implemented Interfaces:
ISpdxListedLicenseProvider
public class XmlLicenseProviderWithCrossRefDetails extends XmlLicenseProvider
Provide license information from XML files
- Author:
- Gary O'Neall
-
Field Summary
-
Constructor Summary
Constructors Constructor Description XmlLicenseProviderWithCrossRefDetails(File xmlFileDirectory) -
Method Summary
Modifier and Type Method Description Iterator<org.spdx.library.model.license.ListedLicenseException>getExceptionIterator()Iterator<org.spdx.library.model.license.SpdxListedLicense>getLicenseIterator()
-
Constructor Details
-
XmlLicenseProviderWithCrossRefDetails
public XmlLicenseProviderWithCrossRefDetails(File xmlFileDirectory) throws org.spdx.library.model.license.SpdxListedLicenseException- Parameters:
xmlFileDirectory- directory of XML files- Throws:
org.spdx.library.model.license.SpdxListedLicenseException
-
-
Method Details
-
getLicenseIterator
public Iterator<org.spdx.library.model.license.SpdxListedLicense> getLicenseIterator() throws org.spdx.library.model.license.SpdxListedLicenseException- Specified by:
getLicenseIteratorin interfaceISpdxListedLicenseProvider- Overrides:
getLicenseIteratorin classXmlLicenseProvider- Throws:
org.spdx.library.model.license.SpdxListedLicenseException
-
getExceptionIterator
public Iterator<org.spdx.library.model.license.ListedLicenseException> getExceptionIterator() throws org.spdx.library.InvalidSPDXAnalysisException- Specified by:
getExceptionIteratorin interfaceISpdxListedLicenseProvider- Overrides:
getExceptionIteratorin classXmlLicenseProvider- Throws:
org.spdx.library.InvalidSPDXAnalysisException
-