org.nasdanika.models.coverage.Coverage Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.coverage;
import org.eclipse.emf.ecore.EObject;
import org.jacoco.core.analysis.ICoverageNode;
/**
*
* A representation of the model object 'Coverage'.
*
*
*
* The following features are supported:
*
*
* - {@link org.nasdanika.models.coverage.Coverage#getName Name}
* - {@link org.nasdanika.models.coverage.Coverage#getInstructionCounter Instruction Counter}
* - {@link org.nasdanika.models.coverage.Coverage#getBranchCounter Branch Counter}
* - {@link org.nasdanika.models.coverage.Coverage#getLineCounter Line Counter}
* - {@link org.nasdanika.models.coverage.Coverage#getComplexityCounter Complexity Counter}
* - {@link org.nasdanika.models.coverage.Coverage#getMethodCounter Method Counter}
* - {@link org.nasdanika.models.coverage.Coverage#getClassCounter Class Counter}
*
*
* @see org.nasdanika.models.coverage.CoveragePackage#getCoverage()
* @model
* @generated
*/
public interface Coverage extends EObject {
/**
* Returns the value of the 'Name' attribute.
*
*
* @return the value of the 'Name' attribute.
* @see #setName(String)
* @see org.nasdanika.models.coverage.CoveragePackage#getCoverage_Name()
* @model
* @generated
*/
String getName();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Coverage#getName Name}' attribute.
*
*
* @param value the new value of the 'Name' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
/**
* Returns the value of the 'Instruction Counter' containment reference.
*
*
* @return the value of the 'Instruction Counter' containment reference.
* @see #setInstructionCounter(Counter)
* @see org.nasdanika.models.coverage.CoveragePackage#getCoverage_InstructionCounter()
* @model containment="true"
* @generated
*/
Counter getInstructionCounter();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Coverage#getInstructionCounter Instruction Counter}' containment reference.
*
*
* @param value the new value of the 'Instruction Counter' containment reference.
* @see #getInstructionCounter()
* @generated
*/
void setInstructionCounter(Counter value);
/**
* Returns the value of the 'Branch Counter' containment reference.
*
*
* @return the value of the 'Branch Counter' containment reference.
* @see #setBranchCounter(Counter)
* @see org.nasdanika.models.coverage.CoveragePackage#getCoverage_BranchCounter()
* @model containment="true"
* @generated
*/
Counter getBranchCounter();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Coverage#getBranchCounter Branch Counter}' containment reference.
*
*
* @param value the new value of the 'Branch Counter' containment reference.
* @see #getBranchCounter()
* @generated
*/
void setBranchCounter(Counter value);
/**
* Returns the value of the 'Line Counter' containment reference.
*
*
* @return the value of the 'Line Counter' containment reference.
* @see #setLineCounter(Counter)
* @see org.nasdanika.models.coverage.CoveragePackage#getCoverage_LineCounter()
* @model containment="true"
* @generated
*/
Counter getLineCounter();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Coverage#getLineCounter Line Counter}' containment reference.
*
*
* @param value the new value of the 'Line Counter' containment reference.
* @see #getLineCounter()
* @generated
*/
void setLineCounter(Counter value);
/**
* Returns the value of the 'Complexity Counter' containment reference.
*
*
* @return the value of the 'Complexity Counter' containment reference.
* @see #setComplexityCounter(Counter)
* @see org.nasdanika.models.coverage.CoveragePackage#getCoverage_ComplexityCounter()
* @model containment="true"
* @generated
*/
Counter getComplexityCounter();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Coverage#getComplexityCounter Complexity Counter}' containment reference.
*
*
* @param value the new value of the 'Complexity Counter' containment reference.
* @see #getComplexityCounter()
* @generated
*/
void setComplexityCounter(Counter value);
/**
* Returns the value of the 'Method Counter' containment reference.
*
*
* @return the value of the 'Method Counter' containment reference.
* @see #setMethodCounter(Counter)
* @see org.nasdanika.models.coverage.CoveragePackage#getCoverage_MethodCounter()
* @model containment="true"
* @generated
*/
Counter getMethodCounter();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Coverage#getMethodCounter Method Counter}' containment reference.
*
*
* @param value the new value of the 'Method Counter' containment reference.
* @see #getMethodCounter()
* @generated
*/
void setMethodCounter(Counter value);
/**
* Returns the value of the 'Class Counter' containment reference.
*
*
* @return the value of the 'Class Counter' containment reference.
* @see #setClassCounter(Counter)
* @see org.nasdanika.models.coverage.CoveragePackage#getCoverage_ClassCounter()
* @model containment="true"
* @generated
*/
Counter getClassCounter();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Coverage#getClassCounter Class Counter}' containment reference.
*
*
* @param value the new value of the 'Class Counter' containment reference.
* @see #getClassCounter()
* @generated
*/
void setClassCounter(Counter value);
default void load(ICoverageNode data) {
setBranchCounter(Counter.load(data.getBranchCounter()));
setClassCounter(Counter.load(data.getClassCounter()));
setComplexityCounter(Counter.load(data.getComplexityCounter()));
setInstructionCounter(Counter.load(data.getInstructionCounter()));
setLineCounter(Counter.load(data.getLineCounter()));
setMethodCounter(Counter.load(data.getMethodCounter()));
setName(data.getName());
}
} // Coverage