Class LicenseXmlDocument
java.lang.Object
org.spdx.licensexml.LicenseXmlDocument
Parses and provides access to a License XML document
- Author:
- Gary O'Neall
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLicenseXmlDocument(File file, org.spdx.storage.IModelStore v2ModelStore, org.spdx.storage.IModelStore v3ModelStore, org.spdx.core.IModelCopyManager copyManager, org.spdx.library.model.v3_0_1.core.CreationInfo creationInfo) LicenseXmlDocument(Document xmlDocument) -
Method Summary
Modifier and TypeMethodDescriptionWill skip deprecated licenses
-
Field Details
-
PROP_SCHEMA_FILENAME
- See Also:
-
LICENSE_XML_SCHEMA_URL
- See Also:
-
LICENSE_XML_SCHEMA_LOCATION
- See Also:
-
-
Constructor Details
-
LicenseXmlDocument
public LicenseXmlDocument(File file, org.spdx.storage.IModelStore v2ModelStore, org.spdx.storage.IModelStore v3ModelStore, org.spdx.core.IModelCopyManager copyManager, org.spdx.library.model.v3_0_1.core.CreationInfo creationInfo) throws LicenseXmlException - Parameters:
file- XML file for the Licensev2ModelStore- model store for SPDX Spec version 2 license and exceptionsv3ModelStore- model store for SPDX Spec version 3 license and exceptionscopyManager- Copy manager for both model storecreationInfo- Creation information to use for SPDX V3 licenses and exceptionscopyManager- copyManager to use for copying data between model storescurrentListVersion- version of the license list to include the license datareleaseDate- Date the license list is released- Throws:
LicenseXmlException
-
LicenseXmlDocument
- Throws:
LicenseXmlException
-
-
Method Details
-
getListedLicenses
public List<ListedLicenseContainer> getListedLicenses() throws org.spdx.core.InvalidSPDXAnalysisException, LicenseXmlExceptionWill skip deprecated licenses- Returns:
- Throws:
org.spdx.core.InvalidSPDXAnalysisExceptionLicenseXmlException
-
getLicenseExceptions
public List<ListedExceptionContainer> getLicenseExceptions() throws LicenseXmlException, org.spdx.core.InvalidSPDXAnalysisException- Returns:
- Throws:
LicenseXmlExceptionorg.spdx.core.InvalidSPDXAnalysisException
-