Class SpdxSnippet.SpdxSnippetBuilder

java.lang.Object
org.spdx.library.model.SpdxSnippet.SpdxSnippetBuilder
Enclosing class:
SpdxSnippet

public static class SpdxSnippet.SpdxSnippetBuilder extends Object
  • Constructor Details

    • SpdxSnippetBuilder

      public SpdxSnippetBuilder(IModelStore modelStore, String documentUri, String id, @Nullable ModelCopyManager copyManager, String name, AnyLicenseInfo concludedLicense, Collection<AnyLicenseInfo> licenseInfosFromFile, String copyrightText, SpdxFile snippetFromFile, int startByte, int endByte)
      Build a snippet 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
      snippetFromFile - File where the snippet is located
      startByte - first byte of the snippet in the file
      endByte - end byte of the snippet in the file
  • Method Details