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

hudson.plugins.cobertura.targets.CoverageTreeElement Maven / Gradle / Ivy

The newest version!
package hudson.plugins.cobertura.targets;

import java.io.Serializable;

import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;

import hudson.plugins.cobertura.Ratio;

@ExportedBean
public class CoverageTreeElement implements Serializable {

	/**
	 * Generated
	 */
	private static final long serialVersionUID = 498666415572813346L;
	
	private Ratio ratio;
	private CoverageMetric metric;

	public CoverageTreeElement(CoverageMetric metric, Ratio ratio) {
		this.metric=metric;
		this.ratio=ratio;
	}

	@Exported
	public String getName(){
		return metric.getName();
	}

	@Exported
	public float getRatio(){
		return ratio.getPercentageFloat();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy