All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.metaeffekt.artifact.terms.model.MergedSegmentResult Maven / Gradle / Ivy

There is a newer version: 0.132.0
Show newest version
/*
 * Copyright 2021-2024 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.metaeffekt.artifact.terms.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MergedSegmentResult {
    private String path;
    private final List resolvedLicenses = new ArrayList<>();
    private final List nameMatches = new ArrayList<>();
    private final List textMatches = new ArrayList<>();

    private final List scancodeLicenses = new ArrayList<>();
    private final Map scancodeLicenseKeys = new HashMap<>();
    private final List copyrights = new ArrayList<>();
    private final List variables = new ArrayList<>();


    public void setPath(String path) {
        this.path = path;
    }

    public String getPath() {
        return path;
    }

    public void setResolvedLicenses(List resolvedLicenses) {
        this.resolvedLicenses.addAll(resolvedLicenses);
    }

    public List getResolvedLicenses() {
        return resolvedLicenses;
    }

    public void setNameMatches(List nameMatches) {
        this.nameMatches.addAll(nameMatches);
    }

    public List getNameMatches() {
        return nameMatches;
    }

    public void setTextMatches(List textMatches) {
        this.textMatches.addAll(textMatches);
    }

    public List getTextMatches() {
        return textMatches;
    }

    public void setScancodeLicenses(List scancodeLicenses) {
        this.scancodeLicenses.addAll(scancodeLicenses);
    }

    public List getScancodeLicenses() {
        return scancodeLicenses;
    }

    public void setCopyrights(List copyrights) {
        this.copyrights.addAll(copyrights);
    }

    public List getCopyrights() {
        return copyrights;
    }

    public void setVariables(List variables) {
        this.variables.addAll(variables);
    }

    public List getVariables() {
        return variables;
    }

    public Map getScancodeLicenseKeys() {
        return scancodeLicenseKeys;
    }


    public void putScancodeLicenseKeys(String key, Float score) {
        this.scancodeLicenseKeys.put(key, score);
    }

    public void setScancodeLicenseKeys(Map map) {
        this.scancodeLicenseKeys.putAll(map);
    }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy