public class LicenseXmlDocument extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LICENSE_XML_SCHEMA_LOCATION |
| Constructor and Description |
|---|
LicenseXmlDocument(Document xmlDocument) |
LicenseXmlDocument(File file) |
| Modifier and Type | Method and Description |
|---|---|
List<SPDXLicenseSpreadsheet.DeprecatedLicenseInfo> |
getDeprecatedLicenseInfos() |
List<LicenseException> |
getLicenseExceptions() |
List<SpdxListedLicense> |
getListedLicenses()
Will skip deprecated licenses
|
public static final String LICENSE_XML_SCHEMA_LOCATION
public LicenseXmlDocument(File file) throws LicenseXmlException
file - XML file for the LicenseLicenseXmlExceptionpublic LicenseXmlDocument(Document xmlDocument) throws LicenseXmlException
LicenseXmlExceptionpublic List<SpdxListedLicense> getListedLicenses() throws InvalidSPDXAnalysisException, LicenseXmlException
InvalidSPDXAnalysisExceptionLicenseXmlExceptionpublic List<LicenseException> getLicenseExceptions() throws LicenseXmlException
LicenseXmlExceptionpublic List<SPDXLicenseSpreadsheet.DeprecatedLicenseInfo> getDeprecatedLicenseInfos() throws InvalidSPDXAnalysisException, LicenseXmlException
LicenseXmlExceptionInvalidSPDXAnalysisExceptionCopyright © 2017 Linux Foundation. All Rights Reserved.