Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-08-21 11:43:07 +0000
committerCamille Letavernier2014-08-21 13:50:25 +0000
commitdbc038b44bcbb890ae256d15eb09eb285512f020 (patch)
tree757e736583eea3ae352ad9ac91a81df7e59b79ff /plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel
parentea48a20561464c3cbb7895d430583669a9f82fcc (diff)
downloadorg.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.tar.gz
org.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.tar.xz
org.eclipse.papyrus-dbc038b44bcbb890ae256d15eb09eb285512f020.zip
[Code style] Apply clean-up and formatter on Main plug-ins
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQuery.java30
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryFactory.java14
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryPackage.java45
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryFactoryImpl.java33
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryImpl.java90
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryPackageImpl.java72
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQueryAdapterFactory.java56
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQuerySwitch.java53
8 files changed, 249 insertions, 144 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQuery.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQuery.java
index 1424c76ed17..8ef8aaaeff1 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQuery.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQuery.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2012 Mia-Software.
- *
+ *
* 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:
* Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *
- *
+ *
+ *
*/
package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery;
@@ -25,8 +25,8 @@ import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Q
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getContext <em>Context</em>}</li>
- * <li>{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getOclExpression <em>Ocl Expression</em>}</li>
+ * <li>{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getContext <em>Context</em>}</li>
+ * <li>{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getOclExpression <em>Ocl Expression</em>}</li>
* </ul>
* </p>
*
@@ -39,10 +39,10 @@ public interface OclQuery extends Query {
* Returns the value of the '<em><b>Context</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Context</em>' reference isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Context</em>' reference isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Context</em>' reference.
* @see #setContext(EClassifier)
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage#getOclQuery_Context()
@@ -55,7 +55,9 @@ public interface OclQuery extends Query {
* Sets the value of the '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getContext <em>Context</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Context</em>' reference.
+ *
+ * @param value
+ * the new value of the '<em>Context</em>' reference.
* @see #getContext()
* @generated
*/
@@ -65,10 +67,10 @@ public interface OclQuery extends Query {
* Returns the value of the '<em><b>Ocl Expression</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Ocl Expression</em>' attribute isn't clear,
- * there really should be more of a description here...
+ * If the meaning of the '<em>Ocl Expression</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ *
* @return the value of the '<em>Ocl Expression</em>' attribute.
* @see #setOclExpression(String)
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage#getOclQuery_OclExpression()
@@ -81,7 +83,9 @@ public interface OclQuery extends Query {
* Sets the value of the '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getOclExpression <em>Ocl Expression</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Ocl Expression</em>' attribute.
+ *
+ * @param value
+ * the new value of the '<em>Ocl Expression</em>' attribute.
* @see #getOclExpression()
* @generated
*/
@@ -90,9 +94,11 @@ public interface OclQuery extends Query {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return getOclExpression();'"
* @generated
*/
+ @Override
String toString();
} // OclQuery
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryFactory.java
index 61ded816ce9..7fac359bf66 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryFactory.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2012 Mia-Software.
- *
+ *
* 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:
* Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *
- *
+ *
+ *
*/
package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery;
@@ -20,6 +20,7 @@ import org.eclipse.emf.ecore.EFactory;
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage
* @generated
*/
@@ -28,6 +29,7 @@ public interface OclQueryFactory extends EFactory {
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
OclQueryFactory eINSTANCE = org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryFactoryImpl.init();
@@ -36,6 +38,7 @@ public interface OclQueryFactory extends EFactory {
* Returns a new object of class '<em>Ocl Query</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Ocl Query</em>'.
* @generated
*/
@@ -45,9 +48,10 @@ public interface OclQueryFactory extends EFactory {
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the package supported by this factory.
* @generated
*/
OclQueryPackage getOclQueryPackage();
-} //OclQueryFactory
+} // OclQueryFactory
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryPackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryPackage.java
index ef3b178fe54..f3aec9fdd32 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryPackage.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryPackage.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2012 Mia-Software.
- *
+ *
* 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:
* Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *
- *
+ *
+ *
*/
package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery;
@@ -25,12 +25,13 @@ import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.E
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryFactory
* @model kind="package"
* @generated
@@ -40,6 +41,7 @@ public interface OclQueryPackage extends EPackage {
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNAME = "oclquery";
@@ -48,6 +50,7 @@ public interface OclQueryPackage extends EPackage {
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_URI = "http://www.eclipse.org/papyrus/emf/facet/query/ocl/0.3.incubation/oclquery";
@@ -56,6 +59,7 @@ public interface OclQueryPackage extends EPackage {
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_PREFIX = "oclQuery";
@@ -64,6 +68,7 @@ public interface OclQueryPackage extends EPackage {
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
OclQueryPackage eINSTANCE = org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryPackageImpl.init();
@@ -72,6 +77,7 @@ public interface OclQueryPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryImpl <em>Ocl Query</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryImpl
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryPackageImpl#getOclQuery()
* @generated
@@ -82,6 +88,7 @@ public interface OclQueryPackage extends EPackage {
* The feature id for the '<em><b>Can Have Side Effects</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -91,6 +98,7 @@ public interface OclQueryPackage extends EPackage {
* The feature id for the '<em><b>Can Be Cached</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -100,6 +108,7 @@ public interface OclQueryPackage extends EPackage {
* The feature id for the '<em><b>Context</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -109,6 +118,7 @@ public interface OclQueryPackage extends EPackage {
* The feature id for the '<em><b>Ocl Expression</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -118,6 +128,7 @@ public interface OclQueryPackage extends EPackage {
* The number of structural features of the '<em>Ocl Query</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -128,6 +139,7 @@ public interface OclQueryPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery <em>Ocl Query</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for class '<em>Ocl Query</em>'.
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery
* @generated
@@ -138,6 +150,7 @@ public interface OclQueryPackage extends EPackage {
* Returns the meta object for the reference '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getContext <em>Context</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the reference '<em>Context</em>'.
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getContext()
* @see #getOclQuery()
@@ -149,6 +162,7 @@ public interface OclQueryPackage extends EPackage {
* Returns the meta object for the attribute '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getOclExpression <em>Ocl Expression</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the meta object for the attribute '<em>Ocl Expression</em>'.
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getOclExpression()
* @see #getOclQuery()
@@ -160,6 +174,7 @@ public interface OclQueryPackage extends EPackage {
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the factory that creates the instances of the model.
* @generated
*/
@@ -169,12 +184,13 @@ public interface OclQueryPackage extends EPackage {
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @generated
*/
interface Literals {
@@ -182,6 +198,7 @@ public interface OclQueryPackage extends EPackage {
* The meta object literal for the '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryImpl <em>Ocl Query</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryImpl
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryPackageImpl#getOclQuery()
* @generated
@@ -192,6 +209,7 @@ public interface OclQueryPackage extends EPackage {
* The meta object literal for the '<em><b>Context</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EReference OCL_QUERY__CONTEXT = eINSTANCE.getOclQuery_Context();
@@ -200,10 +218,11 @@ public interface OclQueryPackage extends EPackage {
* The meta object literal for the '<em><b>Ocl Expression</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
EAttribute OCL_QUERY__OCL_EXPRESSION = eINSTANCE.getOclQuery_OclExpression();
}
-} //OclQueryPackage
+} // OclQueryPackage
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryFactoryImpl.java
index c101e3b6955..eb50aa43018 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryFactoryImpl.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryFactoryImpl.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2012 Mia-Software.
- *
+ *
* 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:
* Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *
- *
+ *
+ *
*/
package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl;
@@ -27,6 +27,7 @@ import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.*;
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class OclQueryFactoryImpl extends EFactoryImpl implements OclQueryFactory {
@@ -34,16 +35,16 @@ public class OclQueryFactoryImpl extends EFactoryImpl implements OclQueryFactory
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static OclQueryFactory init() {
try {
- OclQueryFactory theOclQueryFactory = (OclQueryFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/emf/facet/query/ocl/0.3.incubation/oclquery");
+ OclQueryFactory theOclQueryFactory = (OclQueryFactory) EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/emf/facet/query/ocl/0.3.incubation/oclquery");
if (theOclQueryFactory != null) {
return theOclQueryFactory;
}
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new OclQueryFactoryImpl();
@@ -53,6 +54,7 @@ public class OclQueryFactoryImpl extends EFactoryImpl implements OclQueryFactory
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public OclQueryFactoryImpl() {
@@ -62,22 +64,26 @@ public class OclQueryFactoryImpl extends EFactoryImpl implements OclQueryFactory
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case OclQueryPackage.OCL_QUERY: return createOclQuery();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ case OclQueryPackage.OCL_QUERY:
+ return createOclQuery();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public OclQuery createOclQuery() {
OclQueryImpl oclQuery = new OclQueryImpl();
return oclQuery;
@@ -86,15 +92,18 @@ public class OclQueryFactoryImpl extends EFactoryImpl implements OclQueryFactory
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public OclQueryPackage getOclQueryPackage() {
- return (OclQueryPackage)getEPackage();
+ return (OclQueryPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @deprecated
* @generated
*/
@@ -103,4 +112,4 @@ public class OclQueryFactoryImpl extends EFactoryImpl implements OclQueryFactory
return OclQueryPackage.eINSTANCE;
}
-} //OclQueryFactoryImpl
+} // OclQueryFactoryImpl
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryImpl.java
index ff974d1b602..1a37dcbbeae 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryImpl.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryImpl.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2012 Mia-Software.
- *
+ *
* 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:
* Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *
- *
+ *
+ *
*/
package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl;
@@ -33,8 +33,8 @@ import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackag
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryImpl#getContext <em>Context</em>}</li>
- * <li>{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryImpl#getOclExpression <em>Ocl Expression</em>}</li>
+ * <li>{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryImpl#getContext <em>Context</em>}</li>
+ * <li>{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryImpl#getOclExpression <em>Ocl Expression</em>}</li>
* </ul>
* </p>
*
@@ -45,6 +45,7 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
* The cached value of the '{@link #getContext() <em>Context</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getContext()
* @generated
* @ordered
@@ -55,6 +56,7 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
* The default value of the '{@link #getOclExpression() <em>Ocl Expression</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getOclExpression()
* @generated
* @ordered
@@ -65,6 +67,7 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
* The cached value of the '{@link #getOclExpression() <em>Ocl Expression</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getOclExpression()
* @generated
* @ordered
@@ -74,6 +77,7 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected OclQueryImpl() {
@@ -83,6 +87,7 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -93,15 +98,18 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EClassifier getContext() {
if (context != null && context.eIsProxy()) {
- InternalEObject oldContext = (InternalEObject)context;
- context = (EClassifier)eResolveProxy(oldContext);
+ InternalEObject oldContext = (InternalEObject) context;
+ context = (EClassifier) eResolveProxy(oldContext);
if (context != oldContext) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, OclQueryPackage.OCL_QUERY__CONTEXT, oldContext, context));
+ }
}
}
return context;
@@ -110,6 +118,7 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClassifier basicGetContext() {
@@ -119,20 +128,25 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setContext(EClassifier newContext) {
EClassifier oldContext = context;
context = newContext;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, OclQueryPackage.OCL_QUERY__CONTEXT, oldContext, context));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public String getOclExpression() {
return oclExpression;
}
@@ -140,28 +154,34 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setOclExpression(String newOclExpression) {
String oldOclExpression = oclExpression;
oclExpression = newOclExpression;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, OclQueryPackage.OCL_QUERY__OCL_EXPRESSION, oldOclExpression, oclExpression));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case OclQueryPackage.OCL_QUERY__CONTEXT:
- if (resolve) return getContext();
- return basicGetContext();
- case OclQueryPackage.OCL_QUERY__OCL_EXPRESSION:
- return getOclExpression();
+ case OclQueryPackage.OCL_QUERY__CONTEXT:
+ if (resolve) {
+ return getContext();
+ }
+ return basicGetContext();
+ case OclQueryPackage.OCL_QUERY__OCL_EXPRESSION:
+ return getOclExpression();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -169,17 +189,18 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case OclQueryPackage.OCL_QUERY__CONTEXT:
- setContext((EClassifier)newValue);
- return;
- case OclQueryPackage.OCL_QUERY__OCL_EXPRESSION:
- setOclExpression((String)newValue);
- return;
+ case OclQueryPackage.OCL_QUERY__CONTEXT:
+ setContext((EClassifier) newValue);
+ return;
+ case OclQueryPackage.OCL_QUERY__OCL_EXPRESSION:
+ setOclExpression((String) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -187,17 +208,18 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case OclQueryPackage.OCL_QUERY__CONTEXT:
- setContext((EClassifier)null);
- return;
- case OclQueryPackage.OCL_QUERY__OCL_EXPRESSION:
- setOclExpression(OCL_EXPRESSION_EDEFAULT);
- return;
+ case OclQueryPackage.OCL_QUERY__CONTEXT:
+ setContext((EClassifier) null);
+ return;
+ case OclQueryPackage.OCL_QUERY__OCL_EXPRESSION:
+ setOclExpression(OCL_EXPRESSION_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -205,15 +227,16 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case OclQueryPackage.OCL_QUERY__CONTEXT:
- return context != null;
- case OclQueryPackage.OCL_QUERY__OCL_EXPRESSION:
- return OCL_EXPRESSION_EDEFAULT == null ? oclExpression != null : !OCL_EXPRESSION_EDEFAULT.equals(oclExpression);
+ case OclQueryPackage.OCL_QUERY__CONTEXT:
+ return context != null;
+ case OclQueryPackage.OCL_QUERY__OCL_EXPRESSION:
+ return OCL_EXPRESSION_EDEFAULT == null ? oclExpression != null : !OCL_EXPRESSION_EDEFAULT.equals(oclExpression);
}
return super.eIsSet(featureID);
}
@@ -221,6 +244,7 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -228,4 +252,4 @@ public class OclQueryImpl extends QueryImpl implements OclQuery {
return getOclExpression();
}
-} //OclQueryImpl
+} // OclQueryImpl
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryPackageImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryPackageImpl.java
index 72715d18fd0..4484b9821e2 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryPackageImpl.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/impl/OclQueryPackageImpl.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2012 Mia-Software.
- *
+ *
* 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:
* Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *
- *
+ *
+ *
*/
package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl;
@@ -32,26 +32,24 @@ import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackag
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class OclQueryPackageImpl extends EPackageImpl implements OclQueryPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private EClass oclQueryEClass = null;
/**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage#eNS_URI
* @see #init()
@@ -64,27 +62,29 @@ public class OclQueryPackageImpl extends EPackageImpl implements OclQueryPackage
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static boolean isInited = false;
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>
+ * This method is used to initialize {@link OclQueryPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc -->
*
- * <p>This method is used to initialize {@link OclQueryPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static OclQueryPackage init() {
- if (isInited) return (OclQueryPackage)EPackage.Registry.INSTANCE.getEPackage(OclQueryPackage.eNS_URI);
+ if (isInited) {
+ return (OclQueryPackage) EPackage.Registry.INSTANCE.getEPackage(OclQueryPackage.eNS_URI);
+ }
// Obtain or create and register package
- OclQueryPackageImpl theOclQueryPackage = (OclQueryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OclQueryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OclQueryPackageImpl());
+ OclQueryPackageImpl theOclQueryPackage = (OclQueryPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OclQueryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OclQueryPackageImpl());
isInited = true;
@@ -100,7 +100,7 @@ public class OclQueryPackageImpl extends EPackageImpl implements OclQueryPackage
// Mark meta-data to indicate it can't be changed
theOclQueryPackage.freeze();
-
+
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(OclQueryPackage.eNS_URI, theOclQueryPackage);
return theOclQueryPackage;
@@ -109,8 +109,10 @@ public class OclQueryPackageImpl extends EPackageImpl implements OclQueryPackage
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EClass getOclQuery() {
return oclQueryEClass;
}
@@ -118,46 +120,56 @@ public class OclQueryPackageImpl extends EPackageImpl implements OclQueryPackage
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EReference getOclQuery_Context() {
- return (EReference)oclQueryEClass.getEStructuralFeatures().get(0);
+ return (EReference) oclQueryEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EAttribute getOclQuery_OclExpression() {
- return (EAttribute)oclQueryEClass.getEStructuralFeatures().get(1);
+ return (EAttribute) oclQueryEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public OclQueryFactory getOclQueryFactory() {
- return (OclQueryFactory)getEFactoryInstance();
+ return (OclQueryFactory) getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isCreated = false;
/**
- * Creates the meta-model objects for the package. This method is
+ * Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void createPackageContents() {
- if (isCreated) return;
+ if (isCreated) {
+ return;
+ }
isCreated = true;
// Create classes and their features
@@ -169,19 +181,23 @@ public class OclQueryPackageImpl extends EPackageImpl implements OclQueryPackage
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private boolean isInitialized = false;
/**
- * Complete the initialization of the package and its meta-model. This
+ * Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void initializePackageContents() {
- if (isInitialized) return;
+ if (isInitialized) {
+ return;
+ }
isInitialized = true;
// Initialize package
@@ -190,7 +206,7 @@ public class OclQueryPackageImpl extends EPackageImpl implements OclQueryPackage
setNsURI(eNS_URI);
// Obtain other dependent packages
- ExtensiblePackage theExtensiblePackage = (ExtensiblePackage)EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI);
+ ExtensiblePackage theExtensiblePackage = (ExtensiblePackage) EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI);
// Create type parameters
@@ -210,4 +226,4 @@ public class OclQueryPackageImpl extends EPackageImpl implements OclQueryPackage
createResource(eNS_URI);
}
-} //OclQueryPackageImpl
+} // OclQueryPackageImpl
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQueryAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQueryAdapterFactory.java
index 15f3ab99acd..ad10db80ec7 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQueryAdapterFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQueryAdapterFactory.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2012 Mia-Software.
- *
+ *
* 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:
* Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *
- *
+ *
+ *
*/
package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.util;
@@ -29,6 +29,7 @@ import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.*;
* 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.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage
* @generated
*/
@@ -37,6 +38,7 @@ public class OclQueryAdapterFactory extends AdapterFactoryImpl {
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static OclQueryPackage modelPackage;
@@ -45,6 +47,7 @@ public class OclQueryAdapterFactory extends AdapterFactoryImpl {
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public OclQueryAdapterFactory() {
@@ -58,6 +61,7 @@ public class OclQueryAdapterFactory 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
*/
@@ -67,7 +71,7 @@ public class OclQueryAdapterFactory extends AdapterFactoryImpl {
return true;
}
if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
}
return false;
}
@@ -76,35 +80,40 @@ public class OclQueryAdapterFactory extends AdapterFactoryImpl {
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected OclQuerySwitch<Adapter> modelSwitch =
- new OclQuerySwitch<Adapter>() {
- @Override
- public Adapter caseOclQuery(OclQuery object) {
- return createOclQueryAdapter();
- }
- @Override
- public Adapter caseQuery(Query object) {
- return createQueryAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ new OclQuerySwitch<Adapter>() {
+ @Override
+ public Adapter caseOclQuery(OclQuery object) {
+ return createOclQueryAdapter();
+ }
+
+ @Override
+ public Adapter caseQuery(Query object) {
+ return createQueryAdapter();
+ }
+
+ @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.
+ *
+ * @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);
}
@@ -114,6 +123,7 @@ public class OclQueryAdapterFactory 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.emf.facet.query.ocl.metamodel.oclquery.OclQuery
* @generated
@@ -128,6 +138,7 @@ public class OclQueryAdapterFactory 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.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query
* @generated
@@ -141,6 +152,7 @@ public class OclQueryAdapterFactory extends AdapterFactoryImpl {
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @generated
*/
@@ -148,4 +160,4 @@ public class OclQueryAdapterFactory extends AdapterFactoryImpl {
return null;
}
-} //OclQueryAdapterFactory
+} // OclQueryAdapterFactory
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQuerySwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQuerySwitch.java
index 8ff79732ad8..8d3253845de 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQuerySwitch.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQuerySwitch.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2012 Mia-Software.
- *
+ *
* 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:
* Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *
- *
+ *
+ *
*/
package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.util;
@@ -25,13 +25,13 @@ import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.*;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage
* @generated
*/
@@ -40,6 +40,7 @@ public class OclQuerySwitch<T> {
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static OclQueryPackage modelPackage;
@@ -48,6 +49,7 @@ public class OclQuerySwitch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public OclQuerySwitch() {
@@ -60,6 +62,7 @@ public class OclQuerySwitch<T> {
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@@ -71,6 +74,7 @@ public class OclQuerySwitch<T> {
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@@ -80,8 +84,7 @@ public class OclQuerySwitch<T> {
}
else {
List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
+ return eSuperTypes.isEmpty() ?
defaultCase(theEObject) :
doSwitch(eSuperTypes.get(0), theEObject);
}
@@ -91,19 +94,25 @@ public class OclQuerySwitch<T> {
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case OclQueryPackage.OCL_QUERY: {
- OclQuery oclQuery = (OclQuery)theEObject;
- T result = caseOclQuery(oclQuery);
- if (result == null) result = caseQuery(oclQuery);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ case OclQueryPackage.OCL_QUERY: {
+ OclQuery oclQuery = (OclQuery) theEObject;
+ T result = caseOclQuery(oclQuery);
+ if (result == null) {
+ result = caseQuery(oclQuery);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- default: return defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
@@ -113,7 +122,9 @@ public class OclQuerySwitch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Ocl Query</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -128,7 +139,9 @@ public class OclQuerySwitch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Query</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -143,7 +156,9 @@ public class OclQuerySwitch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
- * @param object the target of the switch.
+ *
+ * @param object
+ * the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
@@ -152,4 +167,4 @@ public class OclQuerySwitch<T> {
return null;
}
-} //OclQuerySwitch
+} // OclQuerySwitch

Back to the top