public final class LicenseResolver extends Object
Modifier and Type | Method and Description |
---|---|
static LicenseChoice |
resolve(String licenseString)
Attempts to resolve the specified license string via SPDX license identifier and expression
parsing first.
|
static LicenseChoice |
resolve(String licenseString,
boolean includeLicenseText)
Attempts to resolve the specified license string via SPDX license identifier and expression
parsing first.
|
public static LicenseChoice resolve(String licenseString)
licenseString
- the license string to resolvepublic static LicenseChoice resolve(String licenseString, boolean includeLicenseText)
licenseString
- the license string to resolveincludeLicenseText
- specifies is the resolved license will include the entire text of the licenseCopyright © 2017–2021 CycloneDX. All rights reserved.