Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-08-21 11:37:18 +0000
committerCamille Letavernier2014-08-21 11:37:18 +0000
commitea48a20561464c3cbb7895d430583669a9f82fcc (patch)
tree0fdf9eebacbbb301b13bafce3ca4a6952ff6e91c /extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util
parentf91b71175fd97557cf378cdcad845a44a6274b16 (diff)
downloadorg.eclipse.papyrus-ea48a20561464c3cbb7895d430583669a9f82fcc.tar.gz
org.eclipse.papyrus-ea48a20561464c3cbb7895d430583669a9f82fcc.tar.xz
org.eclipse.papyrus-ea48a20561464c3cbb7895d430583669a9f82fcc.zip
[Code style] Apply clean-up and formatter on Extra plug-ins
Diffstat (limited to 'extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util')
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java38
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java5
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java7
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java33
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java7
5 files changed, 60 insertions, 30 deletions
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java
index ef97b91dc9f..057da659a44 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleAdapterFactory.java
@@ -16,6 +16,7 @@ import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.*;
* 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.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage
* @generated
*/
@@ -24,6 +25,7 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static PapyrusDSMLValidationRulePackage modelPackage;
@@ -32,6 +34,7 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public PapyrusDSMLValidationRuleAdapterFactory() {
@@ -45,6 +48,7 @@ public class PapyrusDSMLValidationRuleAdapterFactory 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
*/
@@ -54,7 +58,7 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
return true;
}
if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
}
return false;
}
@@ -63,31 +67,35 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected PapyrusDSMLValidationRuleSwitch<Adapter> modelSwitch =
- new PapyrusDSMLValidationRuleSwitch<Adapter>() {
- @Override
- public Adapter caseValidationRule(ValidationRule object) {
- return createValidationRuleAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ new PapyrusDSMLValidationRuleSwitch<Adapter>() {
+ @Override
+ public Adapter caseValidationRule(ValidationRule object) {
+ return createValidationRuleAdapter();
+ }
+
+ @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);
}
@@ -97,6 +105,7 @@ public class PapyrusDSMLValidationRuleAdapterFactory 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.dsml.validation.PapyrusDSMLValidationRule.ValidationRule
* @generated
@@ -110,6 +119,7 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
+ *
* @return the new adapter.
* @generated
*/
@@ -117,4 +127,4 @@ public class PapyrusDSMLValidationRuleAdapterFactory extends AdapterFactoryImpl
return null;
}
-} //PapyrusDSMLValidationRuleAdapterFactory
+} // PapyrusDSMLValidationRuleAdapterFactory
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java
index e77c9be04d0..76ad040ac65 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceFactoryImpl.java
@@ -14,6 +14,7 @@ import org.eclipse.emf.ecore.xmi.XMLResource;
* <!-- begin-user-doc -->
* The <b>Resource Factory</b> associated with the package.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.util.PapyrusDSMLValidationRuleResourceImpl
* @generated
*/
@@ -22,6 +23,7 @@ public class PapyrusDSMLValidationRuleResourceFactoryImpl extends ResourceFactor
* Creates an instance of the resource factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public PapyrusDSMLValidationRuleResourceFactoryImpl() {
@@ -32,6 +34,7 @@ public class PapyrusDSMLValidationRuleResourceFactoryImpl extends ResourceFactor
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -49,4 +52,4 @@ public class PapyrusDSMLValidationRuleResourceFactoryImpl extends ResourceFactor
return result;
}
-} //PapyrusDSMLValidationRuleResourceFactoryImpl
+} // PapyrusDSMLValidationRuleResourceFactoryImpl
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java
index 27d10baad7e..98a8e7e62f6 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleResourceImpl.java
@@ -10,6 +10,7 @@ import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
* <!-- begin-user-doc -->
* The <b>Resource </b> associated with the package.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.util.PapyrusDSMLValidationRuleResourceFactoryImpl
* @generated
*/
@@ -18,11 +19,13 @@ public class PapyrusDSMLValidationRuleResourceImpl extends XMLResourceImpl {
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param uri the URI of the new resource.
+ *
+ * @param uri
+ * the URI of the new resource.
* @generated
*/
public PapyrusDSMLValidationRuleResourceImpl(URI uri) {
super(uri);
}
-} //PapyrusDSMLValidationRuleResourceImpl
+} // PapyrusDSMLValidationRuleResourceImpl
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java
index 80e09a31a18..837ad14656d 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleSwitch.java
@@ -12,13 +12,13 @@ import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.*;
/**
* <!-- 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.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage
* @generated
*/
@@ -27,6 +27,7 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static PapyrusDSMLValidationRulePackage modelPackage;
@@ -35,6 +36,7 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public PapyrusDSMLValidationRuleSwitch() {
@@ -47,6 +49,7 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @parameter ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
@@ -60,19 +63,23 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<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
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case PapyrusDSMLValidationRulePackage.VALIDATION_RULE: {
- ValidationRule validationRule = (ValidationRule)theEObject;
- T result = caseValidationRule(validationRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ case PapyrusDSMLValidationRulePackage.VALIDATION_RULE: {
+ ValidationRule validationRule = (ValidationRule) theEObject;
+ T result = caseValidationRule(validationRule);
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- default: return defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
@@ -82,7 +89,9 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<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>Validation Rule</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -97,7 +106,9 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<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
@@ -107,4 +118,4 @@ public class PapyrusDSMLValidationRuleSwitch<T> extends Switch<T> {
return null;
}
-} //PapyrusDSMLValidationRuleSwitch
+} // PapyrusDSMLValidationRuleSwitch
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java
index 37c022b074c..7f0f86e031f 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/util/PapyrusDSMLValidationRuleXMLProcessor.java
@@ -16,6 +16,7 @@ import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSML
* This class contains helper methods to serialize and deserialize XML documents
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class PapyrusDSMLValidationRuleXMLProcessor extends XMLProcessor {
@@ -24,17 +25,19 @@ public class PapyrusDSMLValidationRuleXMLProcessor extends XMLProcessor {
* Public constructor to instantiate the helper.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public PapyrusDSMLValidationRuleXMLProcessor() {
super((EPackage.Registry.INSTANCE));
PapyrusDSMLValidationRulePackage.eINSTANCE.eClass();
}
-
+
/**
* Register for "*" and "xml" file extensions the PapyrusDSMLValidationRuleResourceFactoryImpl factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -47,4 +50,4 @@ public class PapyrusDSMLValidationRuleXMLProcessor extends XMLProcessor {
return registrations;
}
-} //PapyrusDSMLValidationRuleXMLProcessor
+} // PapyrusDSMLValidationRuleXMLProcessor

Back to the top