diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesAdapterFactory.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesAdapterFactory.java | 80 |
1 files changed, 49 insertions, 31 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesAdapterFactory.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesAdapterFactory.java index 3da7a5bc24b..d1d8db4325a 100644 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesAdapterFactory.java +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesAdapterFactory.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 @@ -32,6 +32,7 @@ import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserattributesP * 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.infrastructure.userattributes.UserattributesPackage * @generated */ @@ -40,6 +41,7 @@ public class UserattributesAdapterFactory extends AdapterFactoryImpl { * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected static UserattributesPackage modelPackage; @@ -48,40 +50,47 @@ public class UserattributesAdapterFactory extends AdapterFactoryImpl { * The switch that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected UserattributesSwitch<Adapter> modelSwitch = - new UserattributesSwitch<Adapter>() { - @Override - public Adapter caseUserAttributeElementType(UserAttributeElementType object) { - return createUserAttributeElementTypeAdapter(); - } - @Override - public Adapter caseUserAttributeDefinition(UserAttributeDefinition object) { - return createUserAttributeDefinitionAdapter(); - } - @Override - public Adapter caseUserAttributeableElement(UserAttributeableElement object) { - return createUserAttributeableElementAdapter(); - } - @Override - public Adapter caseUserAttributeValue(UserAttributeValue object) { - return createUserAttributeValueAdapter(); - } - @Override - public Adapter caseEAElement(EAElement object) { - return createEAElementAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; + new UserattributesSwitch<Adapter>() { + @Override + public Adapter caseUserAttributeElementType(UserAttributeElementType object) { + return createUserAttributeElementTypeAdapter(); + } + + @Override + public Adapter caseUserAttributeDefinition(UserAttributeDefinition object) { + return createUserAttributeDefinitionAdapter(); + } + + @Override + public Adapter caseUserAttributeableElement(UserAttributeableElement object) { + return createUserAttributeableElementAdapter(); + } + + @Override + public Adapter caseUserAttributeValue(UserAttributeValue object) { + return createUserAttributeValueAdapter(); + } + + @Override + public Adapter caseEAElement(EAElement object) { + return createEAElementAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public UserattributesAdapterFactory() { @@ -94,13 +103,15 @@ public class UserattributesAdapterFactory 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); } /** @@ -108,6 +119,7 @@ public class UserattributesAdapterFactory extends AdapterFactoryImpl { * <!-- begin-user-doc --> * This default implementation returns null. * <!-- end-user-doc --> + * * @return the new adapter. * @generated */ @@ -121,6 +133,7 @@ public class UserattributesAdapterFactory 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.userattributes.UserAttributeableElement * @generated @@ -135,6 +148,7 @@ public class UserattributesAdapterFactory 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.userattributes.UserAttributeDefinition * @generated @@ -149,6 +163,7 @@ public class UserattributesAdapterFactory 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.userattributes.UserAttributeElementType * @generated @@ -163,6 +178,7 @@ public class UserattributesAdapterFactory 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.userattributes.UserAttributeValue * @generated @@ -177,6 +193,7 @@ public class UserattributesAdapterFactory 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 @@ -190,6 +207,7 @@ public class UserattributesAdapterFactory 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 */ @@ -199,9 +217,9 @@ public class UserattributesAdapterFactory extends AdapterFactoryImpl { return true; } if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; + return ((EObject) object).eClass().getEPackage() == modelPackage; } return false; } -} //UserattributesAdapterFactory +} // UserattributesAdapterFactory |