Package org.spdx.library

Package containing useful library functions for reading, writing, and manipulating SPDX documents. The org.spdx.library.model package represents the SPDX model as Java objects with getters and setters to support manipulating the SPDX documents. The org.spdx.storage package implements an interface to a storage framework for backing the SPDX document. An implementation of the storage interface is needed for using this library. The SpdxDocumentFactory and SpdxLicenseInfoFactory are the entrypoints for creating SPDX documents and license information resp.
Author:
Gary O'Neall
  • Class Summary 
    Class Description
    DefaultModelStore  
    ModelCopyManager
    This class helps facilitate copying objects from one model to another.
    Read
    Supports reading SPDX documents from an existing ModelStore Some design and some implementation borrowed from Yevster's spdxtra project under the Apache 2.0 license http://yevster.github.io/spdxtra/
    Read.Document  
    SpdxConstants
    Constants which map to the SPDX specifications found at http://spdx.org/rdf/terms
    SpdxVerificationHelper
    Holds static methods used for verify various property values
    Version
    Static class to manage the SPDX versions and the version of the implementation classes
    Write
    Static class to provide write operations to the model.
  • Exception Summary 
    Exception Description
    InvalidSPDXAnalysisException  
    SpdxInvalidIdException  
    SpdxObjectNotInStoreException
    Exception when an SDPX ID or object was not found in a model store