diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/util/DatatypesAdapterFactory.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/util/DatatypesAdapterFactory.java | 301 |
1 files changed, 117 insertions, 184 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/util/DatatypesAdapterFactory.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/util/DatatypesAdapterFactory.java index f125c7716e7..49d233509ae 100644 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/util/DatatypesAdapterFactory.java +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/util/DatatypesAdapterFactory.java @@ -19,30 +19,27 @@ 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.infrastructure.datatypes.*; +import org.eclipse.papyrus.eastadl.infrastructure.datatypes.ArrayDataType; import org.eclipse.papyrus.eastadl.infrastructure.datatypes.CompositeDatatype; import org.eclipse.papyrus.eastadl.infrastructure.datatypes.DatatypesPackage; import org.eclipse.papyrus.eastadl.infrastructure.datatypes.EABoolean; import org.eclipse.papyrus.eastadl.infrastructure.datatypes.EADatatype; import org.eclipse.papyrus.eastadl.infrastructure.datatypes.EADatatypePrototype; -import org.eclipse.papyrus.eastadl.infrastructure.datatypes.EAFloat; -import org.eclipse.papyrus.eastadl.infrastructure.datatypes.EAInteger; +import org.eclipse.papyrus.eastadl.infrastructure.datatypes.EANumerical; import org.eclipse.papyrus.eastadl.infrastructure.datatypes.EAString; import org.eclipse.papyrus.eastadl.infrastructure.datatypes.Enumeration; import org.eclipse.papyrus.eastadl.infrastructure.datatypes.EnumerationLiteral; -import org.eclipse.papyrus.eastadl.infrastructure.datatypes.EnumerationValueType; -import org.eclipse.papyrus.eastadl.infrastructure.datatypes.RangeableDatatype; +import org.eclipse.papyrus.eastadl.infrastructure.datatypes.Quantity; import org.eclipse.papyrus.eastadl.infrastructure.datatypes.RangeableValueType; -import org.eclipse.papyrus.eastadl.infrastructure.datatypes.ValueType; +import org.eclipse.papyrus.eastadl.infrastructure.datatypes.Unit; import org.eclipse.papyrus.eastadl.infrastructure.elements.EAElement; import org.eclipse.papyrus.eastadl.infrastructure.elements.EAPackageableElement; import org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecification; /** - * <!-- begin-user-doc --> 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 --> - * + * <!-- begin-user-doc --> 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.datatypes.DatatypesPackage * @generated */ @@ -51,7 +48,6 @@ public class DatatypesAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ protected static DatatypesPackage modelPackage; @@ -60,105 +56,82 @@ public class DatatypesAdapterFactory extends AdapterFactoryImpl { * The switch that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @generated */ protected DatatypesSwitch<Adapter> modelSwitch = new DatatypesSwitch<Adapter>() { - - @Override - public Adapter caseEADatatype(EADatatype object) { - return createEADatatypeAdapter(); - } - - @Override - public Adapter caseEADatatypePrototype(EADatatypePrototype object) { - return createEADatatypePrototypeAdapter(); - } - - @Override - public Adapter caseValueType(ValueType object) { - return createValueTypeAdapter(); - } - - @Override - public Adapter caseRangeableDatatype(RangeableDatatype object) { - return createRangeableDatatypeAdapter(); - } - - @Override - public Adapter caseRangeableValueType(RangeableValueType object) { - return createRangeableValueTypeAdapter(); - } - - @Override - public Adapter caseEnumerationValueType(EnumerationValueType object) { - return createEnumerationValueTypeAdapter(); - } - - @Override - public Adapter caseCompositeDatatype(CompositeDatatype object) { - return createCompositeDatatypeAdapter(); - } - - @Override - public Adapter caseEAString(EAString object) { - return createEAStringAdapter(); - } - - @Override - public Adapter caseEABoolean(EABoolean object) { - return createEABooleanAdapter(); - } - - @Override - public Adapter caseEAFloat(EAFloat object) { - return createEAFloatAdapter(); - } - - @Override - public Adapter caseEAInteger(EAInteger object) { - return createEAIntegerAdapter(); - } - - @Override - public Adapter caseEnumerationLiteral(EnumerationLiteral object) { - return createEnumerationLiteralAdapter(); - } - - @Override - public Adapter caseEnumeration(Enumeration object) { - return createEnumerationAdapter(); - } - - @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 defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; + @Override + public Adapter caseEADatatype(EADatatype object) { + return createEADatatypeAdapter(); + } + @Override + public Adapter caseEADatatypePrototype(EADatatypePrototype object) { + return createEADatatypePrototypeAdapter(); + } + @Override + public Adapter caseEANumerical(EANumerical object) { + return createEANumericalAdapter(); + } + @Override + public Adapter caseUnit(Unit object) { + return createUnitAdapter(); + } + @Override + public Adapter caseQuantity(Quantity object) { + return createQuantityAdapter(); + } + @Override + public Adapter caseRangeableValueType(RangeableValueType object) { + return createRangeableValueTypeAdapter(); + } + @Override + public Adapter caseCompositeDatatype(CompositeDatatype object) { + return createCompositeDatatypeAdapter(); + } + @Override + public Adapter caseEAString(EAString object) { + return createEAStringAdapter(); + } + @Override + public Adapter caseEABoolean(EABoolean object) { + return createEABooleanAdapter(); + } + @Override + public Adapter caseEnumerationLiteral(EnumerationLiteral object) { + return createEnumerationLiteralAdapter(); + } + @Override + public Adapter caseEnumeration(Enumeration object) { + return createEnumerationAdapter(); + } + @Override + public Adapter caseArrayDataType(ArrayDataType object) { + return createArrayDataTypeAdapter(); + } + @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 defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public DatatypesAdapterFactory() { - if(modelPackage == null) { + if (modelPackage == null) { modelPackage = DatatypesPackage.eINSTANCE; } } @@ -166,9 +139,7 @@ public class DatatypesAdapterFactory 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 */ @@ -183,7 +154,6 @@ public class DatatypesAdapterFactory 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.datatypes.EADatatype * @generated @@ -193,13 +163,11 @@ public class DatatypesAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EADatatypePrototype - * <em>EA Datatype Prototype</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EADatatypePrototype <em>EA Datatype Prototype</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.datatypes.EADatatypePrototype * @generated @@ -209,89 +177,95 @@ public class DatatypesAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.CompositeDatatype - * <em>Composite Datatype</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EANumerical <em>EA Numerical</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.datatypes.CompositeDatatype + * @see org.eclipse.papyrus.eastadl.infrastructure.datatypes.EANumerical * @generated */ - public Adapter createCompositeDatatypeAdapter() { + public Adapter createEANumericalAdapter() { return null; } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EAString <em>EA String</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.Unit <em>Unit</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.datatypes.EAString + * @see org.eclipse.papyrus.eastadl.infrastructure.datatypes.Unit * @generated */ - public Adapter createEAStringAdapter() { + public Adapter createUnitAdapter() { return null; } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EABoolean <em>EA Boolean</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.Quantity <em>Quantity</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.datatypes.EABoolean + * @see org.eclipse.papyrus.eastadl.infrastructure.datatypes.Quantity * @generated */ - public Adapter createEABooleanAdapter() { + public Adapter createQuantityAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.CompositeDatatype <em>Composite Datatype</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.datatypes.CompositeDatatype + * @generated + */ + public Adapter createCompositeDatatypeAdapter() { return null; } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EAFloat <em>EA Float</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EAString <em>EA String</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.datatypes.EAFloat + * @see org.eclipse.papyrus.eastadl.infrastructure.datatypes.EAString * @generated */ - public Adapter createEAFloatAdapter() { + public Adapter createEAStringAdapter() { return null; } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EAInteger <em>EA Integer</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EABoolean <em>EA Boolean</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.datatypes.EAInteger + * @see org.eclipse.papyrus.eastadl.infrastructure.datatypes.EABoolean * @generated */ - public Adapter createEAIntegerAdapter() { + public Adapter createEABooleanAdapter() { return null; } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EnumerationLiteral - * <em>Enumeration Literal</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EnumerationLiteral <em>Enumeration Literal</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.datatypes.EnumerationLiteral * @generated @@ -306,7 +280,6 @@ public class DatatypesAdapterFactory 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.datatypes.Enumeration * @generated @@ -316,49 +289,44 @@ public class DatatypesAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.elements.EAElement <em>EA Element</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.ArrayDataType <em>Array Data Type</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.EAElement + * @see org.eclipse.papyrus.eastadl.infrastructure.datatypes.ArrayDataType * @generated */ - public Adapter createEAElementAdapter() { + public Adapter createArrayDataTypeAdapter() { return null; } /** - * 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.EAElement <em>EA 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 + * @see org.eclipse.papyrus.eastadl.infrastructure.elements.EAElement * @generated */ - public Adapter createEAPackageableElementAdapter() { + public Adapter createEAElementAdapter() { return null; } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.EnumerationValueType - * <em>Enumeration Value Type</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.datatypes.EnumerationValueType + * @see org.eclipse.papyrus.eastadl.infrastructure.elements.EAPackageableElement * @generated */ - public Adapter createEnumerationValueTypeAdapter() { + public Adapter createEAPackageableElementAdapter() { return null; } @@ -366,7 +334,6 @@ public class DatatypesAdapterFactory extends AdapterFactoryImpl { * Creates a new adapter for the default case. * <!-- begin-user-doc --> This default * implementation returns null. <!-- end-user-doc --> - * * @return the new adapter. * @generated */ @@ -375,27 +342,10 @@ public class DatatypesAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.RangeableDatatype - * <em>Rangeable Datatype</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.datatypes.RangeableDatatype - * @generated - */ - public Adapter createRangeableDatatypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.RangeableValueType - * <em>Rangeable Value Type</em>}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.RangeableValueType <em>Rangeable Value Type</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.datatypes.RangeableValueType * @generated @@ -405,12 +355,10 @@ public class DatatypesAdapterFactory 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 @@ -420,34 +368,19 @@ public class DatatypesAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.ValueType <em>Value Type</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.datatypes.ValueType - * @generated - */ - public Adapter createValueTypeAdapter() { - return null; - } - - /** * Returns whether this factory is applicable for the type of the object. * <!-- 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; |