/**
* generated by Xtext 2.16.0
*/
package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.util;
import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*;
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.components.cftLanguage.CftLanguagePackage
* @generated
*/
public class CftLanguageAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
*
*
* @generated
*/
protected static CftLanguagePackage modelPackage;
/**
* Creates an instance of the adapter factory.
*
*
* @generated
*/
public CftLanguageAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = CftLanguagePackage.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 CftLanguageSwitch modelSwitch =
new CftLanguageSwitch()
{
@Override
public Adapter caseCftModel(CftModel object)
{
return createCftModelAdapter();
}
@Override
public Adapter caseImportDeclaration(ImportDeclaration object)
{
return createImportDeclarationAdapter();
}
@Override
public Adapter caseComponentDefinition(ComponentDefinition object)
{
return createComponentDefinitionAdapter();
}
@Override
public Adapter caseEventDeclaration(EventDeclaration object)
{
return createEventDeclarationAdapter();
}
@Override
public Adapter caseInputEvent(InputEvent object)
{
return createInputEventAdapter();
}
@Override
public Adapter caseEventDefinition(EventDefinition object)
{
return createEventDefinitionAdapter();
}
@Override
public Adapter caseBasicEventDefinition(BasicEventDefinition object)
{
return createBasicEventDefinitionAdapter();
}
@Override
public Adapter caseGateDefinition(GateDefinition object)
{
return createGateDefinitionAdapter();
}
@Override
public Adapter caseAndGate(AndGate object)
{
return createAndGateAdapter();
}
@Override
public Adapter caseOrGate(OrGate object)
{
return createOrGateAdapter();
}
@Override
public Adapter caseTransformationDefinition(TransformationDefinition object)
{
return createTransformationDefinitionAdapter();
}
@Override
public Adapter caseMappingDefinition(MappingDefinition object)
{
return createMappingDefinitionAdapter();
}
@Override
public Adapter caseMappingParameter(MappingParameter object)
{
return createMappingParameterAdapter();
}
@Override
public Adapter caseLookupDefinition(LookupDefinition object)
{
return createLookupDefinitionAdapter();
}
@Override
public Adapter caseVariable(Variable object)
{
return createVariableAdapter();
}
@Override
public Adapter caseAssignment(Assignment object)
{
return createAssignmentAdapter();
}
@Override
public Adapter caseEventReference(EventReference object)
{
return createEventReferenceAdapter();
}
@Override
public Adapter caseComponentInstance(ComponentInstance object)
{
return createComponentInstanceAdapter();
}
@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.components.cftLanguage.CftModel Cft Model}'.
*
* 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.components.cftLanguage.CftModel
* @generated
*/
public Adapter createCftModelAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration Import Declaration}'.
*
* 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.components.cftLanguage.ImportDeclaration
* @generated
*/
public Adapter createImportDeclarationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition Component Definition}'.
*
* 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.components.cftLanguage.ComponentDefinition
* @generated
*/
public Adapter createComponentDefinitionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration Event Declaration}'.
*
* 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.components.cftLanguage.EventDeclaration
* @generated
*/
public Adapter createEventDeclarationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent Input 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.components.cftLanguage.InputEvent
* @generated
*/
public Adapter createInputEventAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition Event Definition}'.
*
* 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.components.cftLanguage.EventDefinition
* @generated
*/
public Adapter createEventDefinitionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition Basic Event Definition}'.
*
* 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.components.cftLanguage.BasicEventDefinition
* @generated
*/
public Adapter createBasicEventDefinitionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition Gate Definition}'.
*
* 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.components.cftLanguage.GateDefinition
* @generated
*/
public Adapter createGateDefinitionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.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.components.cftLanguage.AndGate
* @generated
*/
public Adapter createAndGateAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.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.components.cftLanguage.OrGate
* @generated
*/
public Adapter createOrGateAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition Transformation Definition}'.
*
* 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.components.cftLanguage.TransformationDefinition
* @generated
*/
public Adapter createTransformationDefinitionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition Mapping Definition}'.
*
* 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.components.cftLanguage.MappingDefinition
* @generated
*/
public Adapter createMappingDefinitionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter Mapping Parameter}'.
*
* 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.components.cftLanguage.MappingParameter
* @generated
*/
public Adapter createMappingParameterAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition Lookup Definition}'.
*
* 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.components.cftLanguage.LookupDefinition
* @generated
*/
public Adapter createLookupDefinitionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable Variable}'.
*
* 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.components.cftLanguage.Variable
* @generated
*/
public Adapter createVariableAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment Assignment}'.
*
* 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.components.cftLanguage.Assignment
* @generated
*/
public Adapter createAssignmentAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference Event Reference}'.
*
* 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.components.cftLanguage.EventReference
* @generated
*/
public Adapter createEventReferenceAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance Component Instance}'.
*
* 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.components.cftLanguage.ComponentInstance
* @generated
*/
public Adapter createComponentInstanceAdapter()
{
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;
}
} //CftLanguageAdapterFactory