Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyrequirement/util/SafetyrequirementAdapterFactory.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyrequirement/util/SafetyrequirementAdapterFactory.java100
1 files changed, 61 insertions, 39 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyrequirement/util/SafetyrequirementAdapterFactory.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyrequirement/util/SafetyrequirementAdapterFactory.java
index f5d1fe99c0b..6b5b35ad4c4 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyrequirement/util/SafetyrequirementAdapterFactory.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyrequirement/util/SafetyrequirementAdapterFactory.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2010 CEA LIST.
*
- *
+ *
* 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
@@ -34,6 +34,7 @@ import org.eclipse.papyrus.eastadl.requirements.requirements.RequirementsHierarc
* 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.dependability.safetyrequirement.SafetyrequirementPackage
* @generated
*/
@@ -42,6 +43,7 @@ public class SafetyrequirementAdapterFactory extends AdapterFactoryImpl {
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static SafetyrequirementPackage modelPackage;
@@ -50,48 +52,57 @@ public class SafetyrequirementAdapterFactory extends AdapterFactoryImpl {
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected SafetyrequirementSwitch<Adapter> modelSwitch =
- new SafetyrequirementSwitch<Adapter>() {
- @Override
- public Adapter caseFunctionalSafetyConcept(FunctionalSafetyConcept object) {
- return createFunctionalSafetyConceptAdapter();
- }
- @Override
- public Adapter caseSafetyGoal(SafetyGoal object) {
- return createSafetyGoalAdapter();
- }
- @Override
- public Adapter caseTechnicalSafetyConcept(TechnicalSafetyConcept object) {
- return createTechnicalSafetyConceptAdapter();
- }
- @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 caseRequirementsHierarchy(RequirementsHierarchy object) {
- return createRequirementsHierarchyAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ new SafetyrequirementSwitch<Adapter>() {
+ @Override
+ public Adapter caseFunctionalSafetyConcept(FunctionalSafetyConcept object) {
+ return createFunctionalSafetyConceptAdapter();
+ }
+
+ @Override
+ public Adapter caseSafetyGoal(SafetyGoal object) {
+ return createSafetyGoalAdapter();
+ }
+
+ @Override
+ public Adapter caseTechnicalSafetyConcept(TechnicalSafetyConcept object) {
+ return createTechnicalSafetyConceptAdapter();
+ }
+
+ @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 caseRequirementsHierarchy(RequirementsHierarchy object) {
+ return createRequirementsHierarchyAdapter();
+ }
+
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public SafetyrequirementAdapterFactory() {
@@ -104,13 +115,15 @@ public class SafetyrequirementAdapterFactory 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
*/
@Override
public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
+ return modelSwitch.doSwitch((EObject) target);
}
/**
@@ -118,6 +131,7 @@ public class SafetyrequirementAdapterFactory extends AdapterFactoryImpl {
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @generated
*/
@@ -131,6 +145,7 @@ public class SafetyrequirementAdapterFactory 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.dependability.safetyrequirement.FunctionalSafetyConcept
* @generated
@@ -145,6 +160,7 @@ public class SafetyrequirementAdapterFactory 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.dependability.safetyrequirement.SafetyGoal
* @generated
@@ -159,6 +175,7 @@ public class SafetyrequirementAdapterFactory 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.dependability.safetyrequirement.TechnicalSafetyConcept
* @generated
@@ -173,6 +190,7 @@ public class SafetyrequirementAdapterFactory 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
@@ -187,6 +205,7 @@ public class SafetyrequirementAdapterFactory 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.EAPackageableElement
* @generated
@@ -201,6 +220,7 @@ public class SafetyrequirementAdapterFactory 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.TraceableSpecification
* @generated
@@ -215,6 +235,7 @@ public class SafetyrequirementAdapterFactory 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.requirements.requirements.RequirementsHierarchy
* @generated
@@ -228,6 +249,7 @@ public class SafetyrequirementAdapterFactory 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
*/
@@ -237,9 +259,9 @@ public class SafetyrequirementAdapterFactory extends AdapterFactoryImpl {
return true;
}
if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
}
return false;
}
-} //SafetyrequirementAdapterFactory
+} // SafetyrequirementAdapterFactory

Back to the top