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

com.github.aschet.spdx.licensecompat.graph.LicenseEdge Maven / Gradle / Ivy

The newest version!
/**
 * Copyright 2017 Thomas Ascher 
 * SPDX-License-Identifier: LGPL-3.0+
 */

package com.github.aschet.spdx.licensecompat.graph;

/**
 * Part of the JGraphT interface. Determines the type of an edge that connects
 * two vertices. See also {@link LicenseEdgeType}
 *
 * @author Thomas Ascher
 */
public class LicenseEdge {

	/**
	 * Type of the edge.
	 */
	private LicenseEdgeType type = LicenseEdgeType.TRANSITIVE;

	/**
	 * Queries the current edge type
	 *
	 * @return the current edge type
	 */
	public LicenseEdgeType getType() {
		return type;
	}

	/**
	 * Change the type of the edge
	 *
	 * @param type
	 *            new edge type
	 */
	public void setType(final LicenseEdgeType type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return type.toString();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy