| Package | Description |
|---|---|
| org.spdx.rdfparser |
| Modifier and Type | Method and Description |
|---|---|
static SPDXLicenseInfo |
SPDXLicenseInfoFactory.parseSPDXLicenseString(String licenseString)
Parses a license string and converts it into a SPDXLicenseInfo object
Syntax - A license set must start and end with a parenthesis "("
A conjunctive license set will have and AND after the first
licenseInfo term
A disjunctive license set will have an OR after the first
licenseInfo term
If there is no And or Or, then it is converted to a simple
license type (standard or non-standard)
A space or tab must be used between license ID's and the
keywords AND and OR
A licenseID must NOT be "AND" or "OR"
|
Copyright © 2014 Linux Foundation. All Rights Reserved.