org.nasdanika.models.coverage.util.CoverageAdapterFactory Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.coverage.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import org.nasdanika.models.coverage.*;
/**
*
* The Adapter Factory for the model.
* It provides an adapter createXXX
method for each class of the model.
*
* @see org.nasdanika.models.coverage.CoveragePackage
* @generated
*/
public class CoverageAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
*
*
* @generated
*/
protected static CoveragePackage modelPackage;
/**
* Creates an instance of the adapter factory.
*
*
* @generated
*/
public CoverageAdapterFactory() {
if (modelPackage == null) {
modelPackage = CoveragePackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
*
* This implementation returns true
if the object is either the model's package or is an instance object of the model.
*
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
if (object == modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch that delegates to the createXXX
methods.
*
*
* @generated
*/
protected CoverageSwitch modelSwitch =
new CoverageSwitch() {
@Override
public Adapter caseCounter(Counter object) {
return createCounterAdapter();
}
@Override
public Adapter caseCoverage(Coverage object) {
return createCoverageAdapter();
}
@Override
public Adapter caseSession(Session object) {
return createSessionAdapter();
}
@Override
public Adapter caseModuleCoverage(ModuleCoverage object) {
return createModuleCoverageAdapter();
}
@Override
public Adapter casePackageCoverage(PackageCoverage object) {
return createPackageCoverageAdapter();
}
@Override
public Adapter caseLine(Line object) {
return createLineAdapter();
}
@Override
public Adapter caseSourceCoverage(SourceCoverage object) {
return createSourceCoverageAdapter();
}
@Override
public Adapter caseClassCoverage(ClassCoverage object) {
return createClassCoverageAdapter();
}
@Override
public Adapter caseMethodCoverage(MethodCoverage object) {
return createMethodCoverageAdapter();
}
@Override
public Adapter caseSourceFileCoverage(SourceFileCoverage object) {
return createSourceFileCoverageAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the target
.
*
*
* @param target the object to adapt.
* @return the adapter for the target
.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.coverage.Counter Counter}'.
*
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.nasdanika.models.coverage.Counter
* @generated
*/
public Adapter createCounterAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.coverage.Coverage Coverage}'.
*
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.nasdanika.models.coverage.Coverage
* @generated
*/
public Adapter createCoverageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.coverage.Session Session}'.
*
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.nasdanika.models.coverage.Session
* @generated
*/
public Adapter createSessionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.coverage.ModuleCoverage Module Coverage}'.
*
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.nasdanika.models.coverage.ModuleCoverage
* @generated
*/
public Adapter createModuleCoverageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.coverage.PackageCoverage Package Coverage}'.
*
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.nasdanika.models.coverage.PackageCoverage
* @generated
*/
public Adapter createPackageCoverageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.coverage.Line Line}'.
*
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.nasdanika.models.coverage.Line
* @generated
*/
public Adapter createLineAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.coverage.SourceCoverage Source Coverage}'.
*
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.nasdanika.models.coverage.SourceCoverage
* @generated
*/
public Adapter createSourceCoverageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.coverage.ClassCoverage Class Coverage}'.
*
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.nasdanika.models.coverage.ClassCoverage
* @generated
*/
public Adapter createClassCoverageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.coverage.MethodCoverage Method Coverage}'.
*
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.nasdanika.models.coverage.MethodCoverage
* @generated
*/
public Adapter createMethodCoverageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.nasdanika.models.coverage.SourceFileCoverage Source File Coverage}'.
*
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
* @return the new adapter.
* @see org.nasdanika.models.coverage.SourceFileCoverage
* @generated
*/
public Adapter createSourceFileCoverageAdapter() {
return null;
}
/**
* Creates a new adapter for the default case.
*
* This default implementation returns null.
*
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //CoverageAdapterFactory