Class SpdxFile.SpdxFileBuilder

  • Enclosing class:
    SpdxFile

    public static class SpdxFile.SpdxFileBuilder
    extends Object
    • Constructor Detail

      • SpdxFileBuilder

        public SpdxFileBuilder​(org.spdx.storage.IModelStore modelStore,
                               String documentUri,
                               String id,
                               @Nullable
                               org.spdx.core.IModelCopyManager copyManager,
                               String name,
                               AnyLicenseInfo concludedLicense,
                               @Nullable
                               Collection<AnyLicenseInfo> licenseInfosFromFile,
                               String copyrightText,
                               Checksum sha1)
        Build a file with the required parameters
        Parameters:
        modelStore - Storage for the model objects
        documentUri - SPDX Document URI for a document associated with this model
        id - ID for this object - must be unique within the SPDX document
        copyManager - if non-null, allows for copying of any properties set which use other model stores or document URI's
        name - - File name
        concludedLicense - license concluded
        licenseInfosFromFile - collection of seen licenses
        copyrightText - Copyright text
        sha1 - - Sha1 checksum value