public class PackageLicenseTransformer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_SPECIFIED_LICENSE |
static String |
COMPONENT_SPECIFIED_LICENSE_MAPPED |
static String |
COMPONENT_SPECIFIED_LICENSE_UNMAPPED |
static String |
PACKAGE_SPECIFIED_LICENSE |
static String |
PACKAGE_SPECIFIED_LICENSE_MAPPED |
static String |
PACKAGE_SPECIFIED_LICENSE_UNMAPPED |
| Constructor and Description |
|---|
PackageLicenseTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpUnmapped() |
void |
isValid(String licenseExpression,
org.metaeffekt.core.inventory.processor.model.Artifact artifact) |
static String |
joinDisjunctiveLicenses(Collection<String> licenses) |
List<String> |
mapLicenses(Collection<String> licenses) |
String |
preprocessLicenseExpression(String specifiedPackageLicenses) |
void |
transformComponentLicenses(org.metaeffekt.core.inventory.processor.model.Artifact artifact) |
String |
transformLicenseExpression(String license,
List<String> artifactUnmappedLicenses) |
void |
transformPackageLicenses(org.metaeffekt.core.inventory.processor.model.Artifact artifact) |
org.metaeffekt.core.inventory.processor.model.Inventory |
transformPackageLicenses(org.metaeffekt.core.inventory.processor.model.Inventory inventory) |
public static final String PACKAGE_SPECIFIED_LICENSE
public static final String PACKAGE_SPECIFIED_LICENSE_MAPPED
public static final String PACKAGE_SPECIFIED_LICENSE_UNMAPPED
public static final String COMPONENT_SPECIFIED_LICENSE
public static final String COMPONENT_SPECIFIED_LICENSE_MAPPED
public static final String COMPONENT_SPECIFIED_LICENSE_UNMAPPED
public static String joinDisjunctiveLicenses(Collection<String> licenses)
public org.metaeffekt.core.inventory.processor.model.Inventory transformPackageLicenses(org.metaeffekt.core.inventory.processor.model.Inventory inventory)
public void transformPackageLicenses(org.metaeffekt.core.inventory.processor.model.Artifact artifact)
public void transformComponentLicenses(org.metaeffekt.core.inventory.processor.model.Artifact artifact)
public String preprocessLicenseExpression(String specifiedPackageLicenses)
public String transformLicenseExpression(String license, List<String> artifactUnmappedLicenses)
public void dumpUnmapped()
public List<String> mapLicenses(Collection<String> licenses)
public void isValid(String licenseExpression, org.metaeffekt.core.inventory.processor.model.Artifact artifact)
Licensed under the Apache License 2.0 - Copyright © {inceptionYear} – 2024 the original author or authors.