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

org.jfrog.build.api.dependency.PatternResultFileSet Maven / Gradle / Ivy

There is a newer version: 2.41.23
Show newest version
package org.jfrog.build.api.dependency;

import java.util.HashSet;
import java.util.Set;

/**
 * @author Noam Y. Tenne
 */
public class PatternResultFileSet {

    private String repoUri;
    private String sourcePattern;
    private Set files = new HashSet<>();

    public PatternResultFileSet() {
    }

    public PatternResultFileSet(String repoUri, String sourcePattern) {
        this.repoUri = repoUri;
        this.sourcePattern = sourcePattern;
    }

    public PatternResultFileSet(String repoUri, String sourcePattern, Set files) {
        this.repoUri = repoUri;
        this.sourcePattern = sourcePattern;
        this.files = files;
    }

    public String getRepoUri() {
        return repoUri;
    }

    public void setRepoUri(String repoUri) {
        this.repoUri = repoUri;
    }

    public String getSourcePattern() {
        return sourcePattern;
    }

    public void setSourcePattern(String sourcePattern) {
        this.sourcePattern = sourcePattern;
    }

    public Set getFiles() {
        return files;
    }

    public void setFiles(Set files) {
        this.files = files;
    }

    public void addFile(String fileRelativePath) {
        if (files == null) {
            files = new HashSet<>();
        }

        files.add(fileRelativePath);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy