| Package | Description |
|---|---|
| org.spdx.licenseTemplate |
| Modifier and Type | Method and Description |
|---|---|
void |
LicenseTemplateRule.parseLicenseTemplateRule(String parseableLicenseTemplateRule)
Parse a license template rule string compliant with the SPDX license template text and
replace all properties with the parsed values
|
static void |
SpdxLicenseTemplateHelper.parseTemplate(String licenseTemplate,
ILicenseTemplateOutputHandler templateOutputHandler)
Parses the license template calling the templateOutputHandler for any text and rules found
|
static String |
SpdxLicenseTemplateHelper.templateTextToHtml(String licenseTemplate)
Converts a license template string to formatted HTML which highlights any
rules or tags
|
static String |
SpdxLicenseTemplateHelper.templateToText(String template)
Converts template text to standard default text using any default parameters in the rules
|
void |
LicenseTemplateRule.validate()
Validates that the LicenseTemplateRule is properly initialized
|
| Constructor and Description |
|---|
LicenseTemplateRule(String parseableLicenseTemplateRule)
Create a new License Template Rule by parsing a rule string compliant with the SPDX
License Template text
|
LicenseTemplateRule(String ruleName,
LicenseTemplateRule.RuleType ruleType) |
LicenseTemplateRule(String name,
LicenseTemplateRule.RuleType type,
String original,
String match,
String example)
Create a new LicenseTemplateRule
|
Copyright © 2017 Linux Foundation. All Rights Reserved.