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

com.github.aschet.spdx.expression.LicenseSetFactory Maven / Gradle / Ivy

/**
 * Copyright 2017 Thomas Ascher 
 * SPDX-License-Identifier: Apache-2.0
 */

package com.github.aschet.spdx.expression;

import java.util.Collection;

import org.spdx.rdfparser.license.AnyLicenseInfo;
import org.spdx.rdfparser.license.LicenseSet;

/**
 * Common factory interface for all implementations derived from
 * {@link LicenseSet}.
 *
 * @author Thomas Ascher
 */
interface LicenseSetFactory {

	/**
	 * Creates a concrete {@link LicenseSet}.
	 *
	 * @param expressions
	 *            an array of SPDX license expressions
	 * @return a set of SPDX license expressions
	 */
	LicenseSet create(AnyLicenseInfo[] expressions);

	/**
	 * Creates a concrete {@link LicenseSet}.
	 *
	 * @param expressions
	 *            a {@link Collection} SPDX license expressions
	 * @return a set of SPDX license expressions
	 */
	LicenseSet create(Collection expressions);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy