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

org.nasdanika.models.coverage.ClassCoverage Maven / Gradle / Ivy

There is a newer version: 2024.8.0
Show newest version
/**
 */
package org.nasdanika.models.coverage;

import org.eclipse.emf.common.util.EList;
import org.jacoco.core.analysis.IClassCoverage;
import org.jacoco.core.analysis.IMethodCoverage;

/**
 * 
 * A representation of the model object 'Class Coverage'.
 * 
 *
 * 

* The following features are supported: *

*
    *
  • {@link org.nasdanika.models.coverage.ClassCoverage#getId Id}
  • *
  • {@link org.nasdanika.models.coverage.ClassCoverage#getInterfaces Interfaces}
  • *
  • {@link org.nasdanika.models.coverage.ClassCoverage#getSuperType Super Type}
  • *
  • {@link org.nasdanika.models.coverage.ClassCoverage#getMethods Methods}
  • *
  • {@link org.nasdanika.models.coverage.ClassCoverage#getSignature Signature}
  • *
  • {@link org.nasdanika.models.coverage.ClassCoverage#isNoMatch No Match}
  • *
  • {@link org.nasdanika.models.coverage.ClassCoverage#getSourceFile Source File}
  • *
  • {@link org.nasdanika.models.coverage.ClassCoverage#getPackageName Package Name}
  • *
* * @see org.nasdanika.models.coverage.CoveragePackage#getClassCoverage() * @model * @generated */ public interface ClassCoverage extends SourceCoverage { /** * Returns the value of the 'Id' attribute. * * * @return the value of the 'Id' attribute. * @see #setId(long) * @see org.nasdanika.models.coverage.CoveragePackage#getClassCoverage_Id() * @model * @generated */ long getId(); /** * Sets the value of the '{@link org.nasdanika.models.coverage.ClassCoverage#getId Id}' attribute. * * * @param value the new value of the 'Id' attribute. * @see #getId() * @generated */ void setId(long value); /** * Returns the value of the 'Interfaces' attribute list. * The list contents are of type {@link java.lang.String}. * * * @return the value of the 'Interfaces' attribute list. * @see org.nasdanika.models.coverage.CoveragePackage#getClassCoverage_Interfaces() * @model * @generated */ EList getInterfaces(); /** * Returns the value of the 'Super Type' attribute. * * * @return the value of the 'Super Type' attribute. * @see #setSuperType(String) * @see org.nasdanika.models.coverage.CoveragePackage#getClassCoverage_SuperType() * @model * @generated */ String getSuperType(); /** * Sets the value of the '{@link org.nasdanika.models.coverage.ClassCoverage#getSuperType Super Type}' attribute. * * * @param value the new value of the 'Super Type' attribute. * @see #getSuperType() * @generated */ void setSuperType(String value); /** * Returns the value of the 'Methods' containment reference list. * The list contents are of type {@link org.nasdanika.models.coverage.MethodCoverage}. * * * @return the value of the 'Methods' containment reference list. * @see org.nasdanika.models.coverage.CoveragePackage#getClassCoverage_Methods() * @model containment="true" * @generated */ EList getMethods(); /** * Returns the value of the 'Signature' attribute. * * * @return the value of the 'Signature' attribute. * @see #setSignature(String) * @see org.nasdanika.models.coverage.CoveragePackage#getClassCoverage_Signature() * @model * @generated */ String getSignature(); /** * Sets the value of the '{@link org.nasdanika.models.coverage.ClassCoverage#getSignature Signature}' attribute. * * * @param value the new value of the 'Signature' attribute. * @see #getSignature() * @generated */ void setSignature(String value); /** * Returns the value of the 'No Match' attribute. * * * @return the value of the 'No Match' attribute. * @see #setNoMatch(boolean) * @see org.nasdanika.models.coverage.CoveragePackage#getClassCoverage_NoMatch() * @model * @generated */ boolean isNoMatch(); /** * Sets the value of the '{@link org.nasdanika.models.coverage.ClassCoverage#isNoMatch No Match}' attribute. * * * @param value the new value of the 'No Match' attribute. * @see #isNoMatch() * @generated */ void setNoMatch(boolean value); /** * Returns the value of the 'Source File' attribute. * * * @return the value of the 'Source File' attribute. * @see #setSourceFile(String) * @see org.nasdanika.models.coverage.CoveragePackage#getClassCoverage_SourceFile() * @model * @generated */ String getSourceFile(); /** * Sets the value of the '{@link org.nasdanika.models.coverage.ClassCoverage#getSourceFile Source File}' attribute. * * * @param value the new value of the 'Source File' attribute. * @see #getSourceFile() * @generated */ void setSourceFile(String value); /** * Returns the value of the 'Package Name' attribute. * * * @return the value of the 'Package Name' attribute. * @see #setPackageName(String) * @see org.nasdanika.models.coverage.CoveragePackage#getClassCoverage_PackageName() * @model * @generated */ String getPackageName(); /** * Sets the value of the '{@link org.nasdanika.models.coverage.ClassCoverage#getPackageName Package Name}' attribute. * * * @param value the new value of the 'Package Name' attribute. * @see #getPackageName() * @generated */ void setPackageName(String value); default void load(IClassCoverage data) { SourceCoverage.super.load(data); EList interfaces = getInterfaces(); for (String in: data.getInterfaceNames()) { interfaces.add(in); } EList methods = getMethods(); for (IMethodCoverage mData: data.getMethods()) { MethodCoverage mc = CoverageFactory.eINSTANCE.createMethodCoverage(); mc.load(mData); methods.add(mc); } setId(data.getId()); setNoMatch(data.isNoMatch()); setSignature(data.getSignature()); setSuperType(data.getSuperName()); setSourceFile(data.getSourceFileName()); setPackageName(data.getPackageName()); } } // ClassCoverage




© 2015 - 2024 Weber Informatics LLC | Privacy Policy