/**
*/
package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.util;
import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.*;
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;
/**
*
* The Adapter Factory for the model.
* It provides an adapter createXXX
method for each class of the model.
*
* @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage
* @generated
*/
public class FtAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
*
*
* @generated
*/
protected static FtPackage modelPackage;
/**
* Creates an instance of the adapter factory.
*
*
* @generated
*/
public FtAdapterFactory() {
if (modelPackage == null) {
modelPackage = FtPackage.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 FtSwitch modelSwitch =
new FtSwitch() {
@Override
public Adapter caseFaultTree(FaultTree object) {
return createFaultTreeAdapter();
}
@Override
public Adapter caseEvent(Event object) {
return createEventAdapter();
}
@Override
public Adapter caseBasicEvent(BasicEvent object) {
return createBasicEventAdapter();
}
@Override
public Adapter caseGate(Gate object) {
return createGateAdapter();
}
@Override
public Adapter caseDistribution(Distribution object) {
return createDistributionAdapter();
}
@Override
public Adapter caseConstantDistribution(ConstantDistribution object) {
return createConstantDistributionAdapter();
}
@Override
public Adapter caseExponentialDistribution(ExponentialDistribution object) {
return createExponentialDistributionAdapter();
}
@Override
public Adapter caseAndGate(AndGate object) {
return createAndGateAdapter();
}
@Override
public Adapter caseOrGate(OrGate object) {
return createOrGateAdapter();
}
@Override
public Adapter caseKOfMGate(KOfMGate object) {
return createKOfMGateAdapter();
}
@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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree Fault Tree}'.
*
* 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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree
* @generated
*/
public Adapter createFaultTreeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Event Event}'.
*
* 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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Event
* @generated
*/
public Adapter createEventAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent Basic Event}'.
*
* 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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent
* @generated
*/
public Adapter createBasicEventAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate Gate}'.
*
* 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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate
* @generated
*/
public Adapter createGateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution Distribution}'.
*
* 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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution
* @generated
*/
public Adapter createDistributionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution Constant Distribution}'.
*
* 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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution
* @generated
*/
public Adapter createConstantDistributionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution Exponential Distribution}'.
*
* 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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution
* @generated
*/
public Adapter createExponentialDistributionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.AndGate And Gate}'.
*
* 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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.AndGate
* @generated
*/
public Adapter createAndGateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.OrGate Or Gate}'.
*
* 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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.OrGate
* @generated
*/
public Adapter createOrGateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate KOf MGate}'.
*
* 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 hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate
* @generated
*/
public Adapter createKOfMGateAdapter() {
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;
}
} //FtAdapterFactory