/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.ubicompforall.simplelanguage.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.ubicompforall.simplelanguage.*;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
* @see org.ubicompforall.simplelanguage.SimpleLanguagePackage
* @generated
*/
public class SimpleLanguageAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static SimpleLanguagePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SimpleLanguageAdapterFactory() {
if (modelPackage == null) {
modelPackage = SimpleLanguagePackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
* @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 <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected SimpleLanguageSwitch<Adapter> modelSwitch =
new SimpleLanguageSwitch<Adapter>() {
@Override
public Adapter caseStep(Step object) {
return createStepAdapter();
}
@Override
public Adapter caseTrigger(Trigger object) {
return createTriggerAdapter();
}
@Override
public Adapter caseConditionalStep(ConditionalStep object) {
return createConditionalStepAdapter();
}
@Override
public Adapter caseTask(Task object) {
return createTaskAdapter();
}
@Override
public Adapter caseQuery(Query object) {
return createQueryAdapter();
}
@Override
public Adapter casePropertyReference(PropertyReference object) {
return createPropertyReferenceAdapter();
}
@Override
public Adapter caseInformationObject(InformationObject object) {
return createInformationObjectAdapter();
}
@Override
public Adapter caseCondition(Condition object) {
return createConditionAdapter();
}
@Override
public Adapter caseBuildingBlock(BuildingBlock object) {
return createBuildingBlockAdapter();
}
@Override
public Adapter caseDomainObjectReference(DomainObjectReference object) {
return createDomainObjectReferenceAdapter();
}
@Override
public Adapter casePropertyAssignment(PropertyAssignment object) {
return createPropertyAssignmentAdapter();
}
@Override
public Adapter caseUserService(UserService object) {
return createUserServiceAdapter();
}
@Override
public Adapter caseDomainObjectAssignment(DomainObjectAssignment object) {
return createDomainObjectAssignmentAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.Step <em>Step</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.Step
* @generated
*/
public Adapter createStepAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.Trigger <em>Trigger</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.Trigger
* @generated
*/
public Adapter createTriggerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.ConditionalStep <em>Conditional Step</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.ConditionalStep
* @generated
*/
public Adapter createConditionalStepAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.Task <em>Task</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.Task
* @generated
*/
public Adapter createTaskAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.Query <em>Query</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.Query
* @generated
*/
public Adapter createQueryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.PropertyReference <em>Property Reference</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.PropertyReference
* @generated
*/
public Adapter createPropertyReferenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.InformationObject <em>Information Object</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.InformationObject
* @generated
*/
public Adapter createInformationObjectAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.Condition <em>Condition</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.Condition
* @generated
*/
public Adapter createConditionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.BuildingBlock <em>Building Block</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.BuildingBlock
* @generated
*/
public Adapter createBuildingBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.DomainObjectReference <em>Domain Object Reference</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.DomainObjectReference
* @generated
*/
public Adapter createDomainObjectReferenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.PropertyAssignment <em>Property Assignment</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.PropertyAssignment
* @generated
*/
public Adapter createPropertyAssignmentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.UserService <em>User Service</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.UserService
* @generated
*/
public Adapter createUserServiceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.ubicompforall.simplelanguage.DomainObjectAssignment <em>Domain Object Assignment</em>}'.
* <!-- begin-user-doc -->
* 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.
* <!-- end-user-doc -->
* @return the new adapter.
* @see org.ubicompforall.simplelanguage.DomainObjectAssignment
* @generated
*/
public Adapter createDomainObjectAssignmentAdapter() {
return null;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //SimpleLanguageAdapterFactory