Package org.spdx.licensexml
Class XmlLicenseProvider
java.lang.Object
org.spdx.licensexml.XmlLicenseProvider
- All Implemented Interfaces:
ISpdxListedLicenseProvider
- Direct Known Subclasses:
XmlLicenseProviderWithCrossRefDetails
public class XmlLicenseProvider extends Object implements ISpdxListedLicenseProvider
Provide license information from XML files
- Author:
- Gary O'Neall
-
Field Summary
-
Constructor Summary
Constructors Constructor Description XmlLicenseProvider(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()List<String>getWarnings()
-
Field Details
-
Constructor Details
-
XmlLicenseProvider
public XmlLicenseProvider(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- 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- Throws:
org.spdx.library.InvalidSPDXAnalysisException
-
getWarnings
- Specified by:
getWarningsin interfaceISpdxListedLicenseProvider
-