public class LicenseXmlDocument extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LICENSE_XML_SCHEMA_LOCATION |
static String |
LICENSE_XML_SCHEMA_URL |
static String |
PROP_SCHEMA_FILENAME |
| Constructor and Description |
|---|
LicenseXmlDocument(Document xmlDocument) |
LicenseXmlDocument(File file) |
| Modifier and Type | Method and Description |
|---|---|
List<org.spdx.rdfparser.license.ListedLicenseException> |
getLicenseExceptions() |
List<org.spdx.rdfparser.license.SpdxListedLicense> |
getListedLicenses()
Will skip deprecated licenses
|
public static final String PROP_SCHEMA_FILENAME
public static final String LICENSE_XML_SCHEMA_URL
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<org.spdx.rdfparser.license.SpdxListedLicense> getListedLicenses() throws org.spdx.rdfparser.InvalidSPDXAnalysisException, LicenseXmlException
org.spdx.rdfparser.InvalidSPDXAnalysisExceptionLicenseXmlExceptionpublic List<org.spdx.rdfparser.license.ListedLicenseException> getLicenseExceptions() throws LicenseXmlException
LicenseXmlExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.