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

org.codehaus.mojo.license.nexus.ComponentInfo Maven / Gradle / Ivy

package org.codehaus.mojo.license.nexus;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * Created on 30.01.2018.
 */

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class ComponentInfo {

    private List declaredLicenses;
    private List observedLicenses;

    public List getDeclaredLicenses() {
        return declaredLicenses;
    }

    public void setDeclaredLicenses(List declaredLicenses) {
        this.declaredLicenses = declaredLicenses;
    }

    public List getObservedLicenses() {
        return observedLicenses;
    }

    public void setObservedLicenses(List observedLicenses) {
        this.observedLicenses = observedLicenses;
    }

    @Override
    public String toString() {
        return "ComponentInfo{" +
                "declaredLicenses=" + declaredLicenses +
                ", observedLicenses=" + observedLicenses +
                '}';
    }

    public static class License {
        private String licenseId;
        private String licenseName;

        public String getLicenseId() {
            return licenseId;
        }

        public void setLicenseId(String licenseId) {
            this.licenseId = licenseId;
        }

        public String getLicenseName() {
            return licenseName;
        }

        public void setLicenseName(String licenseName) {
            this.licenseName = licenseName;
        }

        @Override
        public String toString() {
            return "License{" +
                    "licenseId='" + licenseId + '\'' +
                    ", licenseName='" + licenseName + '\'' +
                    '}';
        }
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy