/* * Copyright (c) 2013 Eike Stepper (Berlin, Germany) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Eike Stepper - initial API and implementation */ package org.eclipse.emf.cdo.expressions.util; import org.eclipse.emf.cdo.expressions.Access; import org.eclipse.emf.cdo.expressions.BooleanValue; import org.eclipse.emf.cdo.expressions.ByteValue; import org.eclipse.emf.cdo.expressions.CharValue; import org.eclipse.emf.cdo.expressions.ContainedObject; import org.eclipse.emf.cdo.expressions.ContextAccess; import org.eclipse.emf.cdo.expressions.DoubleValue; import org.eclipse.emf.cdo.expressions.Expression; import org.eclipse.emf.cdo.expressions.ExpressionsPackage; import org.eclipse.emf.cdo.expressions.FloatValue; import org.eclipse.emf.cdo.expressions.FunctionInvocation; import org.eclipse.emf.cdo.expressions.IntValue; import org.eclipse.emf.cdo.expressions.Invocation; import org.eclipse.emf.cdo.expressions.LinkedExpression; import org.eclipse.emf.cdo.expressions.LinkedObject; import org.eclipse.emf.cdo.expressions.ListConstruction; import org.eclipse.emf.cdo.expressions.LongValue; import org.eclipse.emf.cdo.expressions.MemberAccess; import org.eclipse.emf.cdo.expressions.MemberInvocation; import org.eclipse.emf.cdo.expressions.ShortValue; import org.eclipse.emf.cdo.expressions.StaticAccess; import org.eclipse.emf.cdo.expressions.StringValue; import org.eclipse.emf.cdo.expressions.Value; 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; /** * <!-- 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.eclipse.emf.cdo.expressions.ExpressionsPackage * @generated */ public class ExpressionsAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static ExpressionsPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ExpressionsAdapterFactory() { if (modelPackage == null) { modelPackage = ExpressionsPackage.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 ExpressionsSwitch<Adapter> modelSwitch = new ExpressionsSwitch<Adapter>() { @Override public Adapter caseExpression(Expression object) { return createExpressionAdapter(); } @Override public Adapter caseValue(Value object) { return createValueAdapter(); } @Override public Adapter caseBooleanValue(BooleanValue object) { return createBooleanValueAdapter(); } @Override public Adapter caseByteValue(ByteValue object) { return createByteValueAdapter(); } @Override public Adapter caseShortValue(ShortValue object) { return createShortValueAdapter(); } @Override public Adapter caseIntValue(IntValue object) { return createIntValueAdapter(); } @Override public Adapter caseLongValue(LongValue object) { return createLongValueAdapter(); } @Override public Adapter caseFloatValue(FloatValue object) { return createFloatValueAdapter(); } @Override public Adapter caseDoubleValue(DoubleValue object) { return createDoubleValueAdapter(); } @Override public Adapter caseCharValue(CharValue object) { return createCharValueAdapter(); } @Override public Adapter caseStringValue(StringValue object) { return createStringValueAdapter(); } @Override public Adapter caseInvocation(Invocation object) { return createInvocationAdapter(); } @Override public Adapter caseFunctionInvocation(FunctionInvocation object) { return createFunctionInvocationAdapter(); } @Override public Adapter caseMemberInvocation(MemberInvocation object) { return createMemberInvocationAdapter(); } @Override public Adapter caseAccess(Access object) { return createAccessAdapter(); } @Override public Adapter caseStaticAccess(StaticAccess object) { return createStaticAccessAdapter(); } @Override public Adapter caseMemberAccess(MemberAccess object) { return createMemberAccessAdapter(); } @Override public Adapter caseContextAccess(ContextAccess object) { return createContextAccessAdapter(); } @Override public Adapter caseContainedObject(ContainedObject object) { return createContainedObjectAdapter(); } @Override public Adapter caseLinkedObject(LinkedObject object) { return createLinkedObjectAdapter(); } @Override public Adapter caseLinkedExpression(LinkedExpression object) { return createLinkedExpressionAdapter(); } @Override public Adapter caseListConstruction(ListConstruction object) { return createListConstructionAdapter(); } @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.eclipse.emf.cdo.expressions.Expression <em>Expression</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.eclipse.emf.cdo.expressions.Expression * @generated */ public Adapter createExpressionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.Value <em>Value</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.eclipse.emf.cdo.expressions.Value * @generated */ public Adapter createValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.BooleanValue <em>Boolean Value</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.eclipse.emf.cdo.expressions.BooleanValue * @generated */ public Adapter createBooleanValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.ByteValue <em>Byte Value</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.eclipse.emf.cdo.expressions.ByteValue * @generated */ public Adapter createByteValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.ShortValue <em>Short Value</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.eclipse.emf.cdo.expressions.ShortValue * @generated */ public Adapter createShortValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.IntValue <em>Int Value</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.eclipse.emf.cdo.expressions.IntValue * @generated */ public Adapter createIntValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.LongValue <em>Long Value</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.eclipse.emf.cdo.expressions.LongValue * @generated */ public Adapter createLongValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.FloatValue <em>Float Value</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.eclipse.emf.cdo.expressions.FloatValue * @generated */ public Adapter createFloatValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.DoubleValue <em>Double Value</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.eclipse.emf.cdo.expressions.DoubleValue * @generated */ public Adapter createDoubleValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.CharValue <em>Char Value</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.eclipse.emf.cdo.expressions.CharValue * @generated */ public Adapter createCharValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.StringValue <em>String Value</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.eclipse.emf.cdo.expressions.StringValue * @generated */ public Adapter createStringValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.Invocation <em>Invocation</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.eclipse.emf.cdo.expressions.Invocation * @generated */ public Adapter createInvocationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.FunctionInvocation <em>Function Invocation</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.eclipse.emf.cdo.expressions.FunctionInvocation * @generated */ public Adapter createFunctionInvocationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.MemberInvocation <em>Member Invocation</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.eclipse.emf.cdo.expressions.MemberInvocation * @generated */ public Adapter createMemberInvocationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.Access <em>Access</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.eclipse.emf.cdo.expressions.Access * @generated */ public Adapter createAccessAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.StaticAccess <em>Static Access</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.eclipse.emf.cdo.expressions.StaticAccess * @generated */ public Adapter createStaticAccessAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.MemberAccess <em>Member Access</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.eclipse.emf.cdo.expressions.MemberAccess * @generated */ public Adapter createMemberAccessAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.ContextAccess <em>Context Access</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.eclipse.emf.cdo.expressions.ContextAccess * @generated */ public Adapter createContextAccessAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.ContainedObject <em>Contained 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.eclipse.emf.cdo.expressions.ContainedObject * @generated */ public Adapter createContainedObjectAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.LinkedObject <em>Linked 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.eclipse.emf.cdo.expressions.LinkedObject * @generated */ public Adapter createLinkedObjectAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.LinkedExpression <em>Linked Expression</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.eclipse.emf.cdo.expressions.LinkedExpression * @generated */ public Adapter createLinkedExpressionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.expressions.ListConstruction <em>List Construction</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.eclipse.emf.cdo.expressions.ListConstruction * @generated */ public Adapter createListConstructionAdapter() { 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; } } // ExpressionsAdapterFactory