diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java | 117 |
1 files changed, 44 insertions, 73 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java index dfc5d54d246..55d185d2ff4 100644 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java @@ -19,7 +19,6 @@ 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.papyrus.eastadl.genericconstraints.*; import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint; import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet; import org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage; @@ -35,17 +34,14 @@ import org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecificatio * 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.papyrus.eastadl.genericconstraints.GenericconstraintsPackage * @generated */ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { - /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ protected static GenericconstraintsPackage modelPackage; @@ -54,61 +50,52 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { * The switch that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ - protected GenericconstraintsSwitch<Adapter> modelSwitch = new GenericconstraintsSwitch<Adapter>() { - - @Override - public Adapter caseGenericConstraint(GenericConstraint object) { - return createGenericConstraintAdapter(); - } - - @Override - public Adapter caseGenericConstraintSet(GenericConstraintSet object) { - return createGenericConstraintSetAdapter(); - } - - @Override - public Adapter caseTakeRateConstraint(TakeRateConstraint object) { - return createTakeRateConstraintAdapter(); - } - - @Override - public Adapter caseEAElement(EAElement object) { - return createEAElementAdapter(); - } - - @Override - public Adapter caseEAPackageableElement(EAPackageableElement object) { - return createEAPackageableElementAdapter(); - } - - @Override - public Adapter caseTraceableSpecification(TraceableSpecification object) { - return createTraceableSpecificationAdapter(); - } - - @Override - public Adapter caseContext(Context object) { - return createContextAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; + protected GenericconstraintsSwitch<Adapter> modelSwitch = + new GenericconstraintsSwitch<Adapter>() { + @Override + public Adapter caseGenericConstraint(GenericConstraint object) { + return createGenericConstraintAdapter(); + } + @Override + public Adapter caseGenericConstraintSet(GenericConstraintSet object) { + return createGenericConstraintSetAdapter(); + } + @Override + public Adapter caseTakeRateConstraint(TakeRateConstraint object) { + return createTakeRateConstraintAdapter(); + } + @Override + public Adapter caseEAElement(EAElement object) { + return createEAElementAdapter(); + } + @Override + public Adapter caseEAPackageableElement(EAPackageableElement object) { + return createEAPackageableElementAdapter(); + } + @Override + public Adapter caseTraceableSpecification(TraceableSpecification object) { + return createTraceableSpecificationAdapter(); + } + @Override + public Adapter caseContext(Context object) { + return createContextAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public GenericconstraintsAdapterFactory() { - if(modelPackage == null) { + if (modelPackage == null) { modelPackage = GenericconstraintsPackage.eINSTANCE; } } @@ -117,9 +104,7 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { * Creates an adapter for the <code>target</code>. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * - * @param target - * the object to adapt. + * @param target the object to adapt. * @return the adapter for the <code>target</code>. * @generated */ @@ -134,7 +119,6 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { * 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.papyrus.eastadl.infrastructure.elements.Context * @generated @@ -148,7 +132,6 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { * <!-- begin-user-doc --> * This default implementation returns null. * <!-- end-user-doc --> - * * @return the new adapter. * @generated */ @@ -157,13 +140,11 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint - * <em>Generic Constraint</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint <em>Generic Constraint</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.papyrus.eastadl.genericconstraints.GenericConstraint * @generated @@ -173,13 +154,11 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet - * <em>Generic Constraint Set</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet <em>Generic Constraint Set</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.papyrus.eastadl.genericconstraints.GenericConstraintSet * @generated @@ -189,13 +168,11 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint - * <em>Take Rate Constraint</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint <em>Take Rate Constraint</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.papyrus.eastadl.genericconstraints.TakeRateConstraint * @generated @@ -210,7 +187,6 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { * 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.papyrus.eastadl.infrastructure.elements.EAElement * @generated @@ -220,13 +196,11 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.elements.EAPackageableElement - * <em>EA Packageable Element</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.elements.EAPackageableElement <em>EA Packageable Element</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.papyrus.eastadl.infrastructure.elements.EAPackageableElement * @generated @@ -236,13 +210,11 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecification - * <em>Traceable Specification</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecification <em>Traceable Specification</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.papyrus.eastadl.infrastructure.elements.TraceableSpecification * @generated @@ -256,16 +228,15 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl { * <!-- 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) { + if (object == modelPackage) { return true; } - if(object instanceof EObject) { + if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; |