Package org.spdx.library.model.license
Class SpdxListedLicense.Builder
java.lang.Object
org.spdx.library.model.license.SpdxListedLicense.Builder
- Enclosing class:
- SpdxListedLicense
public static class SpdxListedLicense.Builder extends Object
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description SpdxListedLicense.BuilderaddCrossRefs(CrossRef crossRef)SpdxListedLicense.BuildersetComments(String comments)SpdxListedLicense.BuildersetDeprecatedVersion(String deprecatedVersion)SpdxListedLicense.BuildersetFsfLibre(Boolean fsfLibre)SpdxListedLicense.BuildersetIsDeprecated(boolean isDeprecated)SpdxListedLicense.BuildersetLicenseTextHtml(String licenseTextHtml)SpdxListedLicense.BuildersetOsiApproved(boolean osiApproved)SpdxListedLicense.BuildersetSourceUrl(Collection<String> sourceUrl)SpdxListedLicense.BuildersetStandardLicenseHeader(String standardLicenseHeader)SpdxListedLicense.BuildersetTemplate(String template)
-
Constructor Details
-
Builder
- Parameters:
name- License nameid- License IDtext- License text
-
-
Method Details
-
setSourceUrl
- Parameters:
sourceUrl- Optional URLs that reference this license- Returns:
- this to continue the build
-
setComments
- Parameters:
comments- Optional comments- Returns:
- this to continue the build
-
setStandardLicenseHeader
- Parameters:
standardLicenseHeader- Optional license header- Returns:
- this to continue the build
-
setTemplate
- Parameters:
template- Optional template- Returns:
- this to continue the build
-
setOsiApproved
- Parameters:
osiApproved- True if this is an OSI Approved license- Returns:
- this to continue the build
-
setFsfLibre
- Parameters:
fsfLibre- true if FSF describes the license as free / libre, false if FSF describes the license as not free / libre, null if FSF does not reference the license- Returns:
- this to continue the build
-
setLicenseTextHtml
- Parameters:
licenseTextHtml- HTML version for the license text- Returns:
- this to continue the build
-
setIsDeprecated
- Parameters:
isDeprecated- True if this license has been designated as deprecated by the SPDX legal team- Returns:
- this to continue the build
-
setDeprecatedVersion
- Parameters:
deprecatedVersion- License list version when this license was first deprecated (null if not deprecated)- Returns:
- this to continue the build
-
addCrossRefs
-