| package org.eclipse.stem.core.modifier.util; |
| |
| /******************************************************************************* |
| * Copyright (c) 2008 IBM Corporation 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: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| |
| 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.eclipse.stem.core.common.Identifiable; |
| |
| import org.eclipse.stem.core.model.Decorator; |
| import org.eclipse.stem.core.modifier.*; |
| |
| /** |
| * <!-- 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.stem.core.modifier.ModifierPackage |
| * @generated |
| */ |
| public class ModifierAdapterFactory extends AdapterFactoryImpl { |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static ModifierPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ModifierAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = ModifierPackage.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 ModifierSwitch<Adapter> modelSwitch = |
| new ModifierSwitch<Adapter>() { |
| @Override |
| public Adapter caseDoubleNOPModifier(DoubleNOPModifier object) { |
| return createDoubleNOPModifierAdapter(); |
| } |
| @Override |
| public Adapter caseDoubleRangeModifier(DoubleRangeModifier object) { |
| return createDoubleRangeModifierAdapter(); |
| } |
| @Override |
| public Adapter caseDoubleSequenceModifier(DoubleSequenceModifier object) { |
| return createDoubleSequenceModifierAdapter(); |
| } |
| @Override |
| public Adapter caseFeatureModifier(FeatureModifier object) { |
| return createFeatureModifierAdapter(); |
| } |
| @Override |
| public Adapter caseIntegerNOPModifier(IntegerNOPModifier object) { |
| return createIntegerNOPModifierAdapter(); |
| } |
| @Override |
| public Adapter caseIntegerRangeModifier(IntegerRangeModifier object) { |
| return createIntegerRangeModifierAdapter(); |
| } |
| @Override |
| public Adapter caseIntegerSequenceModifier(IntegerSequenceModifier object) { |
| return createIntegerSequenceModifierAdapter(); |
| } |
| @Override |
| public Adapter caseLongNOPModifier(LongNOPModifier object) { |
| return createLongNOPModifierAdapter(); |
| } |
| @Override |
| public Adapter caseLongRangeModifier(LongRangeModifier object) { |
| return createLongRangeModifierAdapter(); |
| } |
| @Override |
| public Adapter caseLongSequenceModifier(LongSequenceModifier object) { |
| return createLongSequenceModifierAdapter(); |
| } |
| @Override |
| public Adapter caseModifier(Modifier object) { |
| return createModifierAdapter(); |
| } |
| @Override |
| public Adapter caseNOPModifier(NOPModifier object) { |
| return createNOPModifierAdapter(); |
| } |
| @Override |
| public Adapter caseRangeModifier(RangeModifier object) { |
| return createRangeModifierAdapter(); |
| } |
| @Override |
| public Adapter caseSTEMTimeNOPModifier(STEMTimeNOPModifier object) { |
| return createSTEMTimeNOPModifierAdapter(); |
| } |
| @Override |
| public Adapter caseSTEMTimeRangeModifier(STEMTimeRangeModifier object) { |
| return createSTEMTimeRangeModifierAdapter(); |
| } |
| @Override |
| public Adapter caseSTEMTimeSequenceModifier(STEMTimeSequenceModifier object) { |
| return createSTEMTimeSequenceModifierAdapter(); |
| } |
| @Override |
| public Adapter caseSequenceModifier(SequenceModifier object) { |
| return createSequenceModifierAdapter(); |
| } |
| @Override |
| public Adapter caseStringNOPModifier(StringNOPModifier object) { |
| return createStringNOPModifierAdapter(); |
| } |
| @Override |
| public Adapter caseStringSequenceModifier(StringSequenceModifier object) { |
| return createStringSequenceModifierAdapter(); |
| } |
| @Override |
| public Adapter caseModifiable(Modifiable object) { |
| return createModifiableAdapter(); |
| } |
| @Override |
| public Adapter caseSingleValueModifier(SingleValueModifier object) { |
| return createSingleValueModifierAdapter(); |
| } |
| @Override |
| public Adapter caseDoubleModifier(DoubleModifier object) { |
| return createDoubleModifierAdapter(); |
| } |
| @Override |
| public Adapter caseIntegerModifier(IntegerModifier object) { |
| return createIntegerModifierAdapter(); |
| } |
| @Override |
| public Adapter caseLongModifier(LongModifier object) { |
| return createLongModifierAdapter(); |
| } |
| @Override |
| public Adapter caseSTEMTimeModifier(STEMTimeModifier object) { |
| return createSTEMTimeModifierAdapter(); |
| } |
| @Override |
| public <T> Adapter caseComparable(Comparable<T> object) { |
| return createComparableAdapter(); |
| } |
| @Override |
| public Adapter caseIdentifiable(Identifiable object) { |
| return createIdentifiableAdapter(); |
| } |
| @Override |
| public Adapter caseDecorator(Decorator object) { |
| return createDecoratorAdapter(); |
| } |
| @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.stem.core.modifier.DoubleNOPModifier <em>Double NOP Modifier</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.stem.core.modifier.DoubleNOPModifier |
| * @generated |
| */ |
| public Adapter createDoubleNOPModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.DoubleRangeModifier <em>Double Range Modifier</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.stem.core.modifier.DoubleRangeModifier |
| * @generated |
| */ |
| public Adapter createDoubleRangeModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.DoubleSequenceModifier <em>Double Sequence Modifier</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.stem.core.modifier.DoubleSequenceModifier |
| * @generated |
| */ |
| public Adapter createDoubleSequenceModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.FeatureModifier <em>Feature Modifier</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.stem.core.modifier.FeatureModifier |
| * @generated |
| */ |
| public Adapter createFeatureModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.IntegerNOPModifier <em>Integer NOP Modifier</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.stem.core.modifier.IntegerNOPModifier |
| * @generated |
| */ |
| public Adapter createIntegerNOPModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.IntegerRangeModifier <em>Integer Range Modifier</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.stem.core.modifier.IntegerRangeModifier |
| * @generated |
| */ |
| public Adapter createIntegerRangeModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.IntegerSequenceModifier <em>Integer Sequence Modifier</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.stem.core.modifier.IntegerSequenceModifier |
| * @generated |
| */ |
| public Adapter createIntegerSequenceModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.LongNOPModifier <em>Long NOP Modifier</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.stem.core.modifier.LongNOPModifier |
| * @generated |
| */ |
| public Adapter createLongNOPModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.LongRangeModifier <em>Long Range Modifier</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.stem.core.modifier.LongRangeModifier |
| * @generated |
| */ |
| public Adapter createLongRangeModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.LongSequenceModifier <em>Long Sequence Modifier</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.stem.core.modifier.LongSequenceModifier |
| * @generated |
| */ |
| public Adapter createLongSequenceModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.Modifier <em>Modifier</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.stem.core.modifier.Modifier |
| * @generated |
| */ |
| public Adapter createModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.NOPModifier <em>NOP Modifier</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.stem.core.modifier.NOPModifier |
| * @generated |
| */ |
| public Adapter createNOPModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.RangeModifier <em>Range Modifier</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.stem.core.modifier.RangeModifier |
| * @generated |
| */ |
| public Adapter createRangeModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.STEMTimeNOPModifier <em>STEM Time NOP Modifier</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.stem.core.modifier.STEMTimeNOPModifier |
| * @generated |
| */ |
| public Adapter createSTEMTimeNOPModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.STEMTimeRangeModifier <em>STEM Time Range Modifier</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.stem.core.modifier.STEMTimeRangeModifier |
| * @generated |
| */ |
| public Adapter createSTEMTimeRangeModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.STEMTimeSequenceModifier <em>STEM Time Sequence Modifier</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.stem.core.modifier.STEMTimeSequenceModifier |
| * @generated |
| */ |
| public Adapter createSTEMTimeSequenceModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.SequenceModifier <em>Sequence Modifier</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.stem.core.modifier.SequenceModifier |
| * @generated |
| */ |
| public Adapter createSequenceModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.StringNOPModifier <em>String NOP Modifier</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.stem.core.modifier.StringNOPModifier |
| * @generated |
| */ |
| public Adapter createStringNOPModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.StringSequenceModifier <em>String Sequence Modifier</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.stem.core.modifier.StringSequenceModifier |
| * @generated |
| */ |
| public Adapter createStringSequenceModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.Modifiable <em>Modifiable</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.stem.core.modifier.Modifiable |
| * @generated |
| */ |
| public Adapter createModifiableAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.SingleValueModifier <em>Single Value Modifier</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.stem.core.modifier.SingleValueModifier |
| * @generated |
| */ |
| public Adapter createSingleValueModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.DoubleModifier <em>Double Modifier</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.stem.core.modifier.DoubleModifier |
| * @generated |
| */ |
| public Adapter createDoubleModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.IntegerModifier <em>Integer Modifier</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.stem.core.modifier.IntegerModifier |
| * @generated |
| */ |
| public Adapter createIntegerModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.LongModifier <em>Long Modifier</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.stem.core.modifier.LongModifier |
| * @generated |
| */ |
| public Adapter createLongModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.modifier.STEMTimeModifier <em>STEM Time Modifier</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.stem.core.modifier.STEMTimeModifier |
| * @generated |
| */ |
| public Adapter createSTEMTimeModifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link java.lang.Comparable <em>Comparable</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 java.lang.Comparable |
| * @generated |
| */ |
| public Adapter createComparableAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.common.Identifiable <em>Identifiable</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.stem.core.common.Identifiable |
| * @generated |
| */ |
| public Adapter createIdentifiableAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.stem.core.model.Decorator <em>Decorator</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.stem.core.model.Decorator |
| * @generated |
| */ |
| public Adapter createDecoratorAdapter() { |
| 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; |
| } |
| |
| } //ModifierAdapterFactory |