class LicenseBundleNormalizer extends java.lang.Object
| Modifiers | Name | Description |
|---|---|---|
static class |
LicenseBundleNormalizer.LicenseBundleNormalizerConfig |
|
static class |
LicenseBundleNormalizer.NormalizerLicenseBundle |
|
static class |
LicenseBundleNormalizer.NormalizerTransformationRule |
|
static class |
LicenseBundleNormalizer.NormalizerTransformationRuleMatcher |
Takes a NormalizerTransformationRule, builds java.util.regex.Pattern instances from the *Pattern fields
in NormalizerTransformationRule used to do the actual regex pattern matching (if the exact string
matching fails). |
| Type | Name and description |
|---|---|
java.util.Map<java.lang.String, NormalizerLicenseBundle> |
bundleMap |
LicenseReportExtension |
config |
ReduceDuplicateLicensesFilter |
duplicateFilter |
LicenseBundleNormalizer.LicenseBundleNormalizerConfig |
normalizerConfig |
| Constructor and description |
|---|
LicenseBundleNormalizer
(java.util.Map params = ["bundlePath": null) |
LicenseBundleNormalizer
(java.lang.String bundlePath, boolean createDefaultTransformationRules) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
ProjectData |
filter(ProjectData data) |
|
static java.util.List<NormalizerTransformationRuleMatcher> |
makeNormalizerTransformationRuleMatchers(java.util.List<NormalizerTransformationRule> normalizerTransformationRules) |
|
static java.util.List<NormalizerTransformationRule> |
transformationRulesFor(java.util.List<NormalizerTransformationRuleMatcher> transformationRuleMatchers, java.lang.String module, java.lang.String license, java.lang.String licenseUrl, groovy.lang.Closure<java.lang.String> licenseContent)Central function that performs the actual pattern matching using the NormalizerTransformationRuleMatcher instances computed from the model's NormalizerTransformationRule. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Central function that performs the actual pattern matching using the NormalizerTransformationRuleMatcher instances computed from the model's NormalizerTransformationRule.
transformationRuleMatchers - the matcher instancesmodule - Artifact coordinates in the form group:name:versionlicense - License name(s), may contain newlines, spaces (unfortunately). May also contain multiple license names (undefined separator)licenseUrl - License URL(s), may contain newlines, spaces (unfortunately). May also contain multiple license names (undefined separator)licenseContent - License content text. May contain multiple licenses.Groovy Documentation