diff options
Diffstat (limited to 'plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/InputNamedExpressionImpl.java')
-rw-r--r-- | plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/InputNamedExpressionImpl.java | 266 |
1 files changed, 266 insertions, 0 deletions
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/InputNamedExpressionImpl.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/InputNamedExpressionImpl.java new file mode 100644 index 00000000000..03b61bfd7ad --- /dev/null +++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/InputNamedExpressionImpl.java @@ -0,0 +1,266 @@ +/** + */ +package org.eclipse.papyrus.uml.alf.impl; + +import java.lang.reflect.InvocationTargetException; + +import java.util.Map; + +import org.eclipse.emf.common.util.BasicDiagnostic; +import org.eclipse.emf.common.util.Diagnostic; +import org.eclipse.emf.common.util.DiagnosticChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.common.util.WrappedException; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +import org.eclipse.emf.ecore.util.EObjectValidator; + +import org.eclipse.papyrus.uml.alf.AlfPackage; +import org.eclipse.papyrus.uml.alf.Expression; +import org.eclipse.papyrus.uml.alf.InputNamedExpression; +import org.eclipse.papyrus.uml.alf.Tuple; + +import org.eclipse.papyrus.uml.alf.util.AlfValidator; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Input Named Expression</b></em>'. + * <!-- end-user-doc --> + * <p> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.uml.alf.impl.InputNamedExpressionImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.alf.impl.InputNamedExpressionImpl#getExpression <em>Expression</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.alf.impl.InputNamedExpressionImpl#getIndex <em>Index</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.alf.impl.InputNamedExpressionImpl#isIsCollectionConversion <em>Is Collection Conversion</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.alf.impl.InputNamedExpressionImpl#isIsBitStringConversion <em>Is Bit String Conversion</em>}</li> + * </ul> + * + * @generated + */ +public class InputNamedExpressionImpl extends SyntaxElementImpl implements InputNamedExpression { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected InputNamedExpressionImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return AlfPackage.eINSTANCE.getInputNamedExpression(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String getName() { + return (String) eGet(AlfPackage.eINSTANCE.getInputNamedExpression_Name(), true); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setName(String newName) { + eSet(AlfPackage.eINSTANCE.getInputNamedExpression_Name(), newName); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Expression getExpression() { + return (Expression) eGet(AlfPackage.eINSTANCE.getInputNamedExpression_Expression(), true); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setExpression(Expression newExpression) { + eSet(AlfPackage.eINSTANCE.getInputNamedExpression_Expression(), newExpression); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Expression getIndex() { + return (Expression) eGet(AlfPackage.eINSTANCE.getInputNamedExpression_Index(), true); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setIndex(Expression newIndex) { + eSet(AlfPackage.eINSTANCE.getInputNamedExpression_Index(), newIndex); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public boolean isIsCollectionConversion() { + return (Boolean) eGet(AlfPackage.eINSTANCE.getInputNamedExpression_IsCollectionConversion(), true); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setIsCollectionConversion(boolean newIsCollectionConversion) { + eSet(AlfPackage.eINSTANCE.getInputNamedExpression_IsCollectionConversion(), newIsCollectionConversion); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public boolean isIsBitStringConversion() { + return (Boolean) eGet(AlfPackage.eINSTANCE.getInputNamedExpression_IsBitStringConversion(), true); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setIsBitStringConversion(boolean newIsBitStringConversion) { + eSet(AlfPackage.eINSTANCE.getInputNamedExpression_IsBitStringConversion(), newIsBitStringConversion); + } + + /** + * The cached invocation delegate for the '{@link #tuple() <em>Tuple</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #tuple() + * @generated + * @ordered + */ + protected static final EOperation.Internal.InvocationDelegate TUPLE__EINVOCATION_DELEGATE = ((EOperation.Internal) AlfPackage.eINSTANCE.getInputNamedExpression__Tuple()).getInvocationDelegate(); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Tuple tuple() { + try { + return (Tuple) TUPLE__EINVOCATION_DELEGATE.dynamicInvoke(this, null); + } catch (InvocationTargetException ite) { + throw new WrappedException(ite); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public boolean namedExpressionIsCollectionConversionDerivation(DiagnosticChain diagnostics, Map<Object, Object> context) { + // TODO: implement this method + // -> specify the condition that violates the invariant + // -> verify the details of the diagnostic, including severity and message + // Ensure that you remove @generated or mark it @generated NOT + if (false) { + if (diagnostics != null) { + diagnostics.add + (new BasicDiagnostic + (Diagnostic.ERROR, + AlfValidator.DIAGNOSTIC_SOURCE, + AlfValidator.INPUT_NAMED_EXPRESSION__NAMED_EXPRESSION_IS_COLLECTION_CONVERSION_DERIVATION, + EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "namedExpressionIsCollectionConversionDerivation", EObjectValidator.getObjectLabel(this, context) }), + new Object[] { this })); + } + return false; + } + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public boolean namedExpressionIsBitStringConversionDerivation(DiagnosticChain diagnostics, Map<Object, Object> context) { + // TODO: implement this method + // -> specify the condition that violates the invariant + // -> verify the details of the diagnostic, including severity and message + // Ensure that you remove @generated or mark it @generated NOT + if (false) { + if (diagnostics != null) { + diagnostics.add + (new BasicDiagnostic + (Diagnostic.ERROR, + AlfValidator.DIAGNOSTIC_SOURCE, + AlfValidator.INPUT_NAMED_EXPRESSION__NAMED_EXPRESSION_IS_BIT_STRING_CONVERSION_DERIVATION, + EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "namedExpressionIsBitStringConversionDerivation", EObjectValidator.getObjectLabel(this, context) }), + new Object[] { this })); + } + return false; + } + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + @SuppressWarnings("unchecked") + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException { + switch (operationID) { + case AlfPackage.INPUT_NAMED_EXPRESSION___TUPLE: + return tuple(); + case AlfPackage.INPUT_NAMED_EXPRESSION___NAMED_EXPRESSION_IS_COLLECTION_CONVERSION_DERIVATION__DIAGNOSTICCHAIN_MAP: + return namedExpressionIsCollectionConversionDerivation((DiagnosticChain) arguments.get(0), (Map<Object, Object>) arguments.get(1)); + case AlfPackage.INPUT_NAMED_EXPRESSION___NAMED_EXPRESSION_IS_BIT_STRING_CONVERSION_DERIVATION__DIAGNOSTICCHAIN_MAP: + return namedExpressionIsBitStringConversionDerivation((DiagnosticChain) arguments.get(0), (Map<Object, Object>) arguments.get(1)); + } + return super.eInvoke(operationID, arguments); + } + +} // InputNamedExpressionImpl |