All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.uml2.uml.internal.impl.SignalImpl Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2005, 2014 IBM Corporation, CEA, and others.
 * 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:
 *   IBM - initial API and implementation
 *   Kenn Hussey - 286329, 323181
 *   Kenn Hussey (CEA) - 327039, 351774, 418466
 *
 */
package org.eclipse.uml2.uml.internal.impl;

import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import java.util.Map;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EAnnotation;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.resource.Resource;

import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

import org.eclipse.uml2.common.util.CacheAdapter;
import org.eclipse.uml2.common.util.DerivedUnionEObjectEList;

import org.eclipse.uml2.uml.AggregationKind;
import org.eclipse.uml2.uml.Classifier;
import org.eclipse.uml2.uml.CollaborationUse;
import org.eclipse.uml2.uml.Comment;
import org.eclipse.uml2.uml.Constraint;
import org.eclipse.uml2.uml.ElementImport;
import org.eclipse.uml2.uml.Generalization;
import org.eclipse.uml2.uml.GeneralizationSet;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.Namespace;
import org.eclipse.uml2.uml.PackageImport;
import org.eclipse.uml2.uml.PackageableElement;
import org.eclipse.uml2.uml.ParameterableElement;
import org.eclipse.uml2.uml.Property;
import org.eclipse.uml2.uml.RedefinableElement;
import org.eclipse.uml2.uml.Signal;
import org.eclipse.uml2.uml.Stereotype;
import org.eclipse.uml2.uml.StringExpression;
import org.eclipse.uml2.uml.Substitution;
import org.eclipse.uml2.uml.TemplateBinding;
import org.eclipse.uml2.uml.TemplateParameter;
import org.eclipse.uml2.uml.TemplateSignature;
import org.eclipse.uml2.uml.Type;
import org.eclipse.uml2.uml.UMLPackage;
import org.eclipse.uml2.uml.UseCase;
import org.eclipse.uml2.uml.VisibilityKind;

import org.eclipse.uml2.uml.internal.operations.SignalOperations;

/**
 * 
 * An implementation of the model object 'Signal'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.eclipse.uml2.uml.internal.impl.SignalImpl#getAttributes Attribute}
  • *
  • {@link org.eclipse.uml2.uml.internal.impl.SignalImpl#getOwnedMembers Owned Member}
  • *
  • {@link org.eclipse.uml2.uml.internal.impl.SignalImpl#getOwnedAttributes Owned Attribute}
  • *
*

* * @generated */ public class SignalImpl extends ClassifierImpl implements Signal { /** * The cached value of the '{@link #getOwnedAttributes() Owned Attribute}' containment reference list. * * * @see #getOwnedAttributes() * @generated * @ordered */ protected EList ownedAttributes; /** * * * @generated */ protected SignalImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return UMLPackage.Literals.SIGNAL; } /** * * * @generated */ @Override public EList getAttributes() { CacheAdapter cache = getCacheAdapter(); if (cache != null) { Resource eResource = eResource(); @SuppressWarnings("unchecked") EList attributes = (EList) cache.get(eResource, this, UMLPackage.Literals.CLASSIFIER__ATTRIBUTE); if (attributes == null) { cache.put(eResource, this, UMLPackage.Literals.CLASSIFIER__ATTRIBUTE, attributes = new DerivedUnionEObjectEList( Property.class, this, UMLPackage.SIGNAL__ATTRIBUTE, ATTRIBUTE_ESUBSETS)); } return attributes; } return new DerivedUnionEObjectEList(Property.class, this, UMLPackage.SIGNAL__ATTRIBUTE, ATTRIBUTE_ESUBSETS); } /** * * * @generated */ @Override public EList getOwnedMembers() { CacheAdapter cache = getCacheAdapter(); if (cache != null) { Resource eResource = eResource(); @SuppressWarnings("unchecked") EList ownedMembers = (EList) cache.get( eResource, this, UMLPackage.Literals.NAMESPACE__OWNED_MEMBER); if (ownedMembers == null) { cache .put( eResource, this, UMLPackage.Literals.NAMESPACE__OWNED_MEMBER, ownedMembers = new DerivedUnionEObjectEList( NamedElement.class, this, UMLPackage.SIGNAL__OWNED_MEMBER, OWNED_MEMBER_ESUBSETS)); } return ownedMembers; } return new DerivedUnionEObjectEList(NamedElement.class, this, UMLPackage.SIGNAL__OWNED_MEMBER, OWNED_MEMBER_ESUBSETS); } /** * * * @generated */ public EList getOwnedAttributes() { if (ownedAttributes == null) { ownedAttributes = new EObjectContainmentEList.Resolving( Property.class, this, UMLPackage.SIGNAL__OWNED_ATTRIBUTE); } return ownedAttributes; } /** * * * @generated */ public Property createOwnedAttribute(String name, Type type, EClass eClass) { Property newOwnedAttribute = (Property) create(eClass); getOwnedAttributes().add(newOwnedAttribute); if (name != null) newOwnedAttribute.setName(name); if (type != null) newOwnedAttribute.setType(type); return newOwnedAttribute; } /** * * * @generated */ public Property createOwnedAttribute(String name, Type type) { return createOwnedAttribute(name, type, UMLPackage.Literals.PROPERTY); } /** * * * @generated */ public Property getOwnedAttribute(String name, Type type) { return getOwnedAttribute(name, type, false, null, false); } /** * * * @generated */ public Property getOwnedAttribute(String name, Type type, boolean ignoreCase, EClass eClass, boolean createOnDemand) { ownedAttributeLoop : for (Property ownedAttribute : getOwnedAttributes()) { if (eClass != null && !eClass.isInstance(ownedAttribute)) continue ownedAttributeLoop; if (name != null && !(ignoreCase ? name.equalsIgnoreCase(ownedAttribute.getName()) : name.equals(ownedAttribute.getName()))) continue ownedAttributeLoop; if (type != null && !type.equals(ownedAttribute.getType())) continue ownedAttributeLoop; return ownedAttribute; } return createOnDemand && eClass != null ? createOwnedAttribute(name, type, eClass) : null; } /** * * * @generated */ public Property createOwnedAttribute(String name, Type type, int lower, int upper) { return SignalOperations.createOwnedAttribute(this, name, type, lower, upper); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case UMLPackage.SIGNAL__EANNOTATIONS : return ((InternalEList) getEAnnotations()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__OWNED_COMMENT : return ((InternalEList) getOwnedComments()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__NAME_EXPRESSION : return basicSetNameExpression(null, msgs); case UMLPackage.SIGNAL__OWNED_RULE : return ((InternalEList) getOwnedRules()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__ELEMENT_IMPORT : return ((InternalEList) getElementImports()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__PACKAGE_IMPORT : return ((InternalEList) getPackageImports()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__OWNING_TEMPLATE_PARAMETER : return basicSetOwningTemplateParameter(null, msgs); case UMLPackage.SIGNAL__TEMPLATE_PARAMETER : return basicSetTemplateParameter(null, msgs); case UMLPackage.SIGNAL__TEMPLATE_BINDING : return ((InternalEList) getTemplateBindings()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__OWNED_TEMPLATE_SIGNATURE : return basicSetOwnedTemplateSignature(null, msgs); case UMLPackage.SIGNAL__COLLABORATION_USE : return ((InternalEList) getCollaborationUses()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__GENERALIZATION : return ((InternalEList) getGeneralizations()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__POWERTYPE_EXTENT : return ((InternalEList) getPowertypeExtents()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__OWNED_USE_CASE : return ((InternalEList) getOwnedUseCases()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__USE_CASE : return ((InternalEList) getUseCases()).basicRemove(otherEnd, msgs); case UMLPackage.SIGNAL__SUBSTITUTION : return ((InternalEList) getSubstitutions()).basicRemove( otherEnd, msgs); case UMLPackage.SIGNAL__OWNED_ATTRIBUTE : return ((InternalEList) getOwnedAttributes()).basicRemove( otherEnd, msgs); } return eDynamicInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case UMLPackage.SIGNAL__EANNOTATIONS : return getEAnnotations(); case UMLPackage.SIGNAL__OWNED_COMMENT : return getOwnedComments(); case UMLPackage.SIGNAL__OWNED_ELEMENT : return getOwnedElements(); case UMLPackage.SIGNAL__OWNER : if (resolve) return getOwner(); return basicGetOwner(); case UMLPackage.SIGNAL__CLIENT_DEPENDENCY : return getClientDependencies(); case UMLPackage.SIGNAL__NAME : return getName(); case UMLPackage.SIGNAL__NAME_EXPRESSION : if (resolve) return getNameExpression(); return basicGetNameExpression(); case UMLPackage.SIGNAL__NAMESPACE : if (resolve) return getNamespace(); return basicGetNamespace(); case UMLPackage.SIGNAL__QUALIFIED_NAME : return getQualifiedName(); case UMLPackage.SIGNAL__VISIBILITY : return getVisibility(); case UMLPackage.SIGNAL__OWNED_RULE : return getOwnedRules(); case UMLPackage.SIGNAL__ELEMENT_IMPORT : return getElementImports(); case UMLPackage.SIGNAL__PACKAGE_IMPORT : return getPackageImports(); case UMLPackage.SIGNAL__OWNED_MEMBER : return getOwnedMembers(); case UMLPackage.SIGNAL__IMPORTED_MEMBER : return getImportedMembers(); case UMLPackage.SIGNAL__MEMBER : return getMembers(); case UMLPackage.SIGNAL__IS_LEAF : return isLeaf(); case UMLPackage.SIGNAL__REDEFINED_ELEMENT : return getRedefinedElements(); case UMLPackage.SIGNAL__REDEFINITION_CONTEXT : return getRedefinitionContexts(); case UMLPackage.SIGNAL__OWNING_TEMPLATE_PARAMETER : if (resolve) return getOwningTemplateParameter(); return basicGetOwningTemplateParameter(); case UMLPackage.SIGNAL__TEMPLATE_PARAMETER : if (resolve) return getTemplateParameter(); return basicGetTemplateParameter(); case UMLPackage.SIGNAL__PACKAGE : if (resolve) return getPackage(); return basicGetPackage(); case UMLPackage.SIGNAL__TEMPLATE_BINDING : return getTemplateBindings(); case UMLPackage.SIGNAL__OWNED_TEMPLATE_SIGNATURE : if (resolve) return getOwnedTemplateSignature(); return basicGetOwnedTemplateSignature(); case UMLPackage.SIGNAL__FEATURE : return getFeatures(); case UMLPackage.SIGNAL__ATTRIBUTE : return getAttributes(); case UMLPackage.SIGNAL__COLLABORATION_USE : return getCollaborationUses(); case UMLPackage.SIGNAL__GENERAL : return getGenerals(); case UMLPackage.SIGNAL__GENERALIZATION : return getGeneralizations(); case UMLPackage.SIGNAL__POWERTYPE_EXTENT : return getPowertypeExtents(); case UMLPackage.SIGNAL__INHERITED_MEMBER : return getInheritedMembers(); case UMLPackage.SIGNAL__IS_ABSTRACT : return isAbstract(); case UMLPackage.SIGNAL__IS_FINAL_SPECIALIZATION : return isFinalSpecialization(); case UMLPackage.SIGNAL__OWNED_USE_CASE : return getOwnedUseCases(); case UMLPackage.SIGNAL__USE_CASE : return getUseCases(); case UMLPackage.SIGNAL__REDEFINED_CLASSIFIER : return getRedefinedClassifiers(); case UMLPackage.SIGNAL__REPRESENTATION : if (resolve) return getRepresentation(); return basicGetRepresentation(); case UMLPackage.SIGNAL__SUBSTITUTION : return getSubstitutions(); case UMLPackage.SIGNAL__OWNED_ATTRIBUTE : return getOwnedAttributes(); } return eDynamicGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case UMLPackage.SIGNAL__EANNOTATIONS : getEAnnotations().clear(); getEAnnotations().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__OWNED_COMMENT : getOwnedComments().clear(); getOwnedComments().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__NAME : setName((String) newValue); return; case UMLPackage.SIGNAL__NAME_EXPRESSION : setNameExpression((StringExpression) newValue); return; case UMLPackage.SIGNAL__VISIBILITY : setVisibility((VisibilityKind) newValue); return; case UMLPackage.SIGNAL__OWNED_RULE : getOwnedRules().clear(); getOwnedRules().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__ELEMENT_IMPORT : getElementImports().clear(); getElementImports().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__PACKAGE_IMPORT : getPackageImports().clear(); getPackageImports().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__IS_LEAF : setIsLeaf((Boolean) newValue); return; case UMLPackage.SIGNAL__OWNING_TEMPLATE_PARAMETER : setOwningTemplateParameter((TemplateParameter) newValue); return; case UMLPackage.SIGNAL__TEMPLATE_PARAMETER : setTemplateParameter((TemplateParameter) newValue); return; case UMLPackage.SIGNAL__PACKAGE : setPackage((org.eclipse.uml2.uml.Package) newValue); return; case UMLPackage.SIGNAL__TEMPLATE_BINDING : getTemplateBindings().clear(); getTemplateBindings().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__OWNED_TEMPLATE_SIGNATURE : setOwnedTemplateSignature((TemplateSignature) newValue); return; case UMLPackage.SIGNAL__COLLABORATION_USE : getCollaborationUses().clear(); getCollaborationUses().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__GENERAL : getGenerals().clear(); getGenerals().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__GENERALIZATION : getGeneralizations().clear(); getGeneralizations().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__POWERTYPE_EXTENT : getPowertypeExtents().clear(); getPowertypeExtents().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__IS_ABSTRACT : setIsAbstract((Boolean) newValue); return; case UMLPackage.SIGNAL__IS_FINAL_SPECIALIZATION : setIsFinalSpecialization((Boolean) newValue); return; case UMLPackage.SIGNAL__OWNED_USE_CASE : getOwnedUseCases().clear(); getOwnedUseCases().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__USE_CASE : getUseCases().clear(); getUseCases().addAll((Collection) newValue); return; case UMLPackage.SIGNAL__REDEFINED_CLASSIFIER : getRedefinedClassifiers().clear(); getRedefinedClassifiers().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__REPRESENTATION : setRepresentation((CollaborationUse) newValue); return; case UMLPackage.SIGNAL__SUBSTITUTION : getSubstitutions().clear(); getSubstitutions().addAll( (Collection) newValue); return; case UMLPackage.SIGNAL__OWNED_ATTRIBUTE : getOwnedAttributes().clear(); getOwnedAttributes().addAll( (Collection) newValue); return; } eDynamicSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case UMLPackage.SIGNAL__EANNOTATIONS : getEAnnotations().clear(); return; case UMLPackage.SIGNAL__OWNED_COMMENT : getOwnedComments().clear(); return; case UMLPackage.SIGNAL__NAME : unsetName(); return; case UMLPackage.SIGNAL__NAME_EXPRESSION : setNameExpression((StringExpression) null); return; case UMLPackage.SIGNAL__VISIBILITY : unsetVisibility(); return; case UMLPackage.SIGNAL__OWNED_RULE : getOwnedRules().clear(); return; case UMLPackage.SIGNAL__ELEMENT_IMPORT : getElementImports().clear(); return; case UMLPackage.SIGNAL__PACKAGE_IMPORT : getPackageImports().clear(); return; case UMLPackage.SIGNAL__IS_LEAF : setIsLeaf(IS_LEAF_EDEFAULT); return; case UMLPackage.SIGNAL__OWNING_TEMPLATE_PARAMETER : setOwningTemplateParameter((TemplateParameter) null); return; case UMLPackage.SIGNAL__TEMPLATE_PARAMETER : setTemplateParameter((TemplateParameter) null); return; case UMLPackage.SIGNAL__PACKAGE : setPackage((org.eclipse.uml2.uml.Package) null); return; case UMLPackage.SIGNAL__TEMPLATE_BINDING : getTemplateBindings().clear(); return; case UMLPackage.SIGNAL__OWNED_TEMPLATE_SIGNATURE : setOwnedTemplateSignature((TemplateSignature) null); return; case UMLPackage.SIGNAL__COLLABORATION_USE : getCollaborationUses().clear(); return; case UMLPackage.SIGNAL__GENERAL : getGenerals().clear(); return; case UMLPackage.SIGNAL__GENERALIZATION : getGeneralizations().clear(); return; case UMLPackage.SIGNAL__POWERTYPE_EXTENT : getPowertypeExtents().clear(); return; case UMLPackage.SIGNAL__IS_ABSTRACT : setIsAbstract(IS_ABSTRACT_EDEFAULT); return; case UMLPackage.SIGNAL__IS_FINAL_SPECIALIZATION : setIsFinalSpecialization(IS_FINAL_SPECIALIZATION_EDEFAULT); return; case UMLPackage.SIGNAL__OWNED_USE_CASE : getOwnedUseCases().clear(); return; case UMLPackage.SIGNAL__USE_CASE : getUseCases().clear(); return; case UMLPackage.SIGNAL__REDEFINED_CLASSIFIER : getRedefinedClassifiers().clear(); return; case UMLPackage.SIGNAL__REPRESENTATION : setRepresentation((CollaborationUse) null); return; case UMLPackage.SIGNAL__SUBSTITUTION : getSubstitutions().clear(); return; case UMLPackage.SIGNAL__OWNED_ATTRIBUTE : getOwnedAttributes().clear(); return; } eDynamicUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case UMLPackage.SIGNAL__EANNOTATIONS : return eAnnotations != null && !eAnnotations.isEmpty(); case UMLPackage.SIGNAL__OWNED_COMMENT : return ownedComments != null && !ownedComments.isEmpty(); case UMLPackage.SIGNAL__OWNED_ELEMENT : return isSetOwnedElements(); case UMLPackage.SIGNAL__OWNER : return isSetOwner(); case UMLPackage.SIGNAL__CLIENT_DEPENDENCY : return !getClientDependencies().isEmpty(); case UMLPackage.SIGNAL__NAME : return isSetName(); case UMLPackage.SIGNAL__NAME_EXPRESSION : return nameExpression != null; case UMLPackage.SIGNAL__NAMESPACE : return isSetNamespace(); case UMLPackage.SIGNAL__QUALIFIED_NAME : return QUALIFIED_NAME_EDEFAULT == null ? getQualifiedName() != null : !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName()); case UMLPackage.SIGNAL__VISIBILITY : return isSetVisibility(); case UMLPackage.SIGNAL__OWNED_RULE : return ownedRules != null && !ownedRules.isEmpty(); case UMLPackage.SIGNAL__ELEMENT_IMPORT : return elementImports != null && !elementImports.isEmpty(); case UMLPackage.SIGNAL__PACKAGE_IMPORT : return packageImports != null && !packageImports.isEmpty(); case UMLPackage.SIGNAL__OWNED_MEMBER : return isSetOwnedMembers(); case UMLPackage.SIGNAL__IMPORTED_MEMBER : return !getImportedMembers().isEmpty(); case UMLPackage.SIGNAL__MEMBER : return isSetMembers(); case UMLPackage.SIGNAL__IS_LEAF : return ((eFlags & IS_LEAF_EFLAG) != 0) != IS_LEAF_EDEFAULT; case UMLPackage.SIGNAL__REDEFINED_ELEMENT : return isSetRedefinedElements(); case UMLPackage.SIGNAL__REDEFINITION_CONTEXT : return isSetRedefinitionContexts(); case UMLPackage.SIGNAL__OWNING_TEMPLATE_PARAMETER : return basicGetOwningTemplateParameter() != null; case UMLPackage.SIGNAL__TEMPLATE_PARAMETER : return isSetTemplateParameter(); case UMLPackage.SIGNAL__PACKAGE : return basicGetPackage() != null; case UMLPackage.SIGNAL__TEMPLATE_BINDING : return templateBindings != null && !templateBindings.isEmpty(); case UMLPackage.SIGNAL__OWNED_TEMPLATE_SIGNATURE : return isSetOwnedTemplateSignature(); case UMLPackage.SIGNAL__FEATURE : return isSetFeatures(); case UMLPackage.SIGNAL__ATTRIBUTE : return isSetAttributes(); case UMLPackage.SIGNAL__COLLABORATION_USE : return collaborationUses != null && !collaborationUses.isEmpty(); case UMLPackage.SIGNAL__GENERAL : return !getGenerals().isEmpty(); case UMLPackage.SIGNAL__GENERALIZATION : return generalizations != null && !generalizations.isEmpty(); case UMLPackage.SIGNAL__POWERTYPE_EXTENT : return powertypeExtents != null && !powertypeExtents.isEmpty(); case UMLPackage.SIGNAL__INHERITED_MEMBER : return !getInheritedMembers().isEmpty(); case UMLPackage.SIGNAL__IS_ABSTRACT : return ((eFlags & IS_ABSTRACT_EFLAG) != 0) != IS_ABSTRACT_EDEFAULT; case UMLPackage.SIGNAL__IS_FINAL_SPECIALIZATION : return ((eFlags & IS_FINAL_SPECIALIZATION_EFLAG) != 0) != IS_FINAL_SPECIALIZATION_EDEFAULT; case UMLPackage.SIGNAL__OWNED_USE_CASE : return ownedUseCases != null && !ownedUseCases.isEmpty(); case UMLPackage.SIGNAL__USE_CASE : return useCases != null && !useCases.isEmpty(); case UMLPackage.SIGNAL__REDEFINED_CLASSIFIER : return redefinedClassifiers != null && !redefinedClassifiers.isEmpty(); case UMLPackage.SIGNAL__REPRESENTATION : return representation != null; case UMLPackage.SIGNAL__SUBSTITUTION : return substitutions != null && !substitutions.isEmpty(); case UMLPackage.SIGNAL__OWNED_ATTRIBUTE : return ownedAttributes != null && !ownedAttributes.isEmpty(); } return eDynamicIsSet(featureID); } /** * * * @generated */ @Override @SuppressWarnings("unchecked") public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { switch (operationID) { case UMLPackage.SIGNAL___GET_EANNOTATION__STRING : return getEAnnotation((String) arguments.get(0)); case UMLPackage.SIGNAL___VALIDATE_HAS_OWNER__DIAGNOSTICCHAIN_MAP : return validateHasOwner((DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___VALIDATE_NOT_OWN_SELF__DIAGNOSTICCHAIN_MAP : return validateNotOwnSelf((DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___ADD_KEYWORD__STRING : return addKeyword((String) arguments.get(0)); case UMLPackage.SIGNAL___APPLY_STEREOTYPE__STEREOTYPE : return applyStereotype((Stereotype) arguments.get(0)); case UMLPackage.SIGNAL___CREATE_EANNOTATION__STRING : return createEAnnotation((String) arguments.get(0)); case UMLPackage.SIGNAL___DESTROY : destroy(); return null; case UMLPackage.SIGNAL___GET_KEYWORDS : return getKeywords(); case UMLPackage.SIGNAL___GET_APPLICABLE_STEREOTYPE__STRING : return getApplicableStereotype((String) arguments.get(0)); case UMLPackage.SIGNAL___GET_APPLICABLE_STEREOTYPES : return getApplicableStereotypes(); case UMLPackage.SIGNAL___GET_APPLIED_STEREOTYPE__STRING : return getAppliedStereotype((String) arguments.get(0)); case UMLPackage.SIGNAL___GET_APPLIED_STEREOTYPES : return getAppliedStereotypes(); case UMLPackage.SIGNAL___GET_APPLIED_SUBSTEREOTYPE__STEREOTYPE_STRING : return getAppliedSubstereotype((Stereotype) arguments.get(0), (String) arguments.get(1)); case UMLPackage.SIGNAL___GET_APPLIED_SUBSTEREOTYPES__STEREOTYPE : return getAppliedSubstereotypes((Stereotype) arguments.get(0)); case UMLPackage.SIGNAL___GET_MODEL : return getModel(); case UMLPackage.SIGNAL___GET_NEAREST_PACKAGE : return getNearestPackage(); case UMLPackage.SIGNAL___GET_RELATIONSHIPS : return getRelationships(); case UMLPackage.SIGNAL___GET_RELATIONSHIPS__ECLASS : return getRelationships((EClass) arguments.get(0)); case UMLPackage.SIGNAL___GET_REQUIRED_STEREOTYPE__STRING : return getRequiredStereotype((String) arguments.get(0)); case UMLPackage.SIGNAL___GET_REQUIRED_STEREOTYPES : return getRequiredStereotypes(); case UMLPackage.SIGNAL___GET_SOURCE_DIRECTED_RELATIONSHIPS : return getSourceDirectedRelationships(); case UMLPackage.SIGNAL___GET_SOURCE_DIRECTED_RELATIONSHIPS__ECLASS : return getSourceDirectedRelationships((EClass) arguments.get(0)); case UMLPackage.SIGNAL___GET_STEREOTYPE_APPLICATION__STEREOTYPE : return getStereotypeApplication((Stereotype) arguments.get(0)); case UMLPackage.SIGNAL___GET_STEREOTYPE_APPLICATIONS : return getStereotypeApplications(); case UMLPackage.SIGNAL___GET_TARGET_DIRECTED_RELATIONSHIPS : return getTargetDirectedRelationships(); case UMLPackage.SIGNAL___GET_TARGET_DIRECTED_RELATIONSHIPS__ECLASS : return getTargetDirectedRelationships((EClass) arguments.get(0)); case UMLPackage.SIGNAL___GET_VALUE__STEREOTYPE_STRING : return getValue((Stereotype) arguments.get(0), (String) arguments.get(1)); case UMLPackage.SIGNAL___HAS_KEYWORD__STRING : return hasKeyword((String) arguments.get(0)); case UMLPackage.SIGNAL___HAS_VALUE__STEREOTYPE_STRING : return hasValue((Stereotype) arguments.get(0), (String) arguments.get(1)); case UMLPackage.SIGNAL___IS_STEREOTYPE_APPLICABLE__STEREOTYPE : return isStereotypeApplicable((Stereotype) arguments.get(0)); case UMLPackage.SIGNAL___IS_STEREOTYPE_APPLIED__STEREOTYPE : return isStereotypeApplied((Stereotype) arguments.get(0)); case UMLPackage.SIGNAL___IS_STEREOTYPE_REQUIRED__STEREOTYPE : return isStereotypeRequired((Stereotype) arguments.get(0)); case UMLPackage.SIGNAL___REMOVE_KEYWORD__STRING : return removeKeyword((String) arguments.get(0)); case UMLPackage.SIGNAL___SET_VALUE__STEREOTYPE_STRING_OBJECT : setValue((Stereotype) arguments.get(0), (String) arguments.get(1), arguments.get(2)); return null; case UMLPackage.SIGNAL___UNAPPLY_STEREOTYPE__STEREOTYPE : return unapplyStereotype((Stereotype) arguments.get(0)); case UMLPackage.SIGNAL___ALL_OWNED_ELEMENTS : return allOwnedElements(); case UMLPackage.SIGNAL___MUST_BE_OWNED : return mustBeOwned(); case UMLPackage.SIGNAL___VALIDATE_VISIBILITY_NEEDS_OWNERSHIP__DIAGNOSTICCHAIN_MAP : return validateVisibilityNeedsOwnership( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___VALIDATE_HAS_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP : return validateHasQualifiedName( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___VALIDATE_HAS_NO_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP : return validateHasNoQualifiedName( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___CREATE_DEPENDENCY__NAMEDELEMENT : return createDependency((NamedElement) arguments.get(0)); case UMLPackage.SIGNAL___CREATE_USAGE__NAMEDELEMENT : return createUsage((NamedElement) arguments.get(0)); case UMLPackage.SIGNAL___GET_LABEL : return getLabel(); case UMLPackage.SIGNAL___GET_LABEL__BOOLEAN : return getLabel((Boolean) arguments.get(0)); case UMLPackage.SIGNAL___GET_NAMESPACE : return getNamespace(); case UMLPackage.SIGNAL___ALL_NAMESPACES : return allNamespaces(); case UMLPackage.SIGNAL___ALL_OWNING_PACKAGES : return allOwningPackages(); case UMLPackage.SIGNAL___IS_DISTINGUISHABLE_FROM__NAMEDELEMENT_NAMESPACE : return isDistinguishableFrom((NamedElement) arguments.get(0), (Namespace) arguments.get(1)); case UMLPackage.SIGNAL___GET_QUALIFIED_NAME : return getQualifiedName(); case UMLPackage.SIGNAL___SEPARATOR : return separator(); case UMLPackage.SIGNAL___GET_CLIENT_DEPENDENCIES : return getClientDependencies(); case UMLPackage.SIGNAL___VALIDATE_MEMBERS_DISTINGUISHABLE__DIAGNOSTICCHAIN_MAP : return validateMembersDistinguishable( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___VALIDATE_CANNOT_IMPORT_SELF__DIAGNOSTICCHAIN_MAP : return validateCannotImportSelf( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___VALIDATE_CANNOT_IMPORT_OWNED_MEMBERS__DIAGNOSTICCHAIN_MAP : return validateCannotImportOwnedMembers( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___CREATE_ELEMENT_IMPORT__PACKAGEABLEELEMENT_VISIBILITYKIND : return createElementImport( (PackageableElement) arguments.get(0), (VisibilityKind) arguments.get(1)); case UMLPackage.SIGNAL___CREATE_PACKAGE_IMPORT__PACKAGE_VISIBILITYKIND : return createPackageImport( (org.eclipse.uml2.uml.Package) arguments.get(0), (VisibilityKind) arguments.get(1)); case UMLPackage.SIGNAL___GET_IMPORTED_ELEMENTS : return getImportedElements(); case UMLPackage.SIGNAL___GET_IMPORTED_PACKAGES : return getImportedPackages(); case UMLPackage.SIGNAL___GET_OWNED_MEMBERS : return getOwnedMembers(); case UMLPackage.SIGNAL___EXCLUDE_COLLISIONS__ELIST : return excludeCollisions((EList) arguments .get(0)); case UMLPackage.SIGNAL___GET_NAMES_OF_MEMBER__NAMEDELEMENT : return getNamesOfMember((NamedElement) arguments.get(0)); case UMLPackage.SIGNAL___IMPORT_MEMBERS__ELIST : return importMembers((EList) arguments .get(0)); case UMLPackage.SIGNAL___GET_IMPORTED_MEMBERS : return getImportedMembers(); case UMLPackage.SIGNAL___MEMBERS_ARE_DISTINGUISHABLE : return membersAreDistinguishable(); case UMLPackage.SIGNAL___VALIDATE_REDEFINITION_CONSISTENT__DIAGNOSTICCHAIN_MAP : return validateRedefinitionConsistent( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___VALIDATE_NON_LEAF_REDEFINITION__DIAGNOSTICCHAIN_MAP : return validateNonLeafRedefinition( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___VALIDATE_REDEFINITION_CONTEXT_VALID__DIAGNOSTICCHAIN_MAP : return validateRedefinitionContextValid( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___IS_CONSISTENT_WITH__REDEFINABLEELEMENT : return isConsistentWith((RedefinableElement) arguments.get(0)); case UMLPackage.SIGNAL___IS_REDEFINITION_CONTEXT_VALID__REDEFINABLEELEMENT : return isRedefinitionContextValid((RedefinableElement) arguments .get(0)); case UMLPackage.SIGNAL___IS_COMPATIBLE_WITH__PARAMETERABLEELEMENT : return isCompatibleWith((ParameterableElement) arguments.get(0)); case UMLPackage.SIGNAL___IS_TEMPLATE_PARAMETER : return isTemplateParameter(); case UMLPackage.SIGNAL___VALIDATE_NAMESPACE_NEEDS_VISIBILITY__DIAGNOSTICCHAIN_MAP : return validateNamespaceNeedsVisibility( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___CREATE_ASSOCIATION__BOOLEAN_AGGREGATIONKIND_STRING_INT_INT_TYPE_BOOLEAN_AGGREGATIONKIND_STRING_INT_INT : return createAssociation((Boolean) arguments.get(0), (AggregationKind) arguments.get(1), (String) arguments.get(2), (Integer) arguments.get(3), (Integer) arguments.get(4), (Type) arguments.get(5), (Boolean) arguments.get(6), (AggregationKind) arguments.get(7), (String) arguments.get(8), (Integer) arguments.get(9), (Integer) arguments.get(10)); case UMLPackage.SIGNAL___GET_ASSOCIATIONS : return getAssociations(); case UMLPackage.SIGNAL___CONFORMS_TO__TYPE : return conformsTo((Type) arguments.get(0)); case UMLPackage.SIGNAL___IS_TEMPLATE : return isTemplate(); case UMLPackage.SIGNAL___PARAMETERABLE_ELEMENTS : return parameterableElements(); case UMLPackage.SIGNAL___VALIDATE_SPECIALIZE_TYPE__DIAGNOSTICCHAIN_MAP : return validateSpecializeType( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___VALIDATE_MAPS_TO_GENERALIZATION_SET__DIAGNOSTICCHAIN_MAP : return validateMapsToGeneralizationSet( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___VALIDATE_NON_FINAL_PARENTS__DIAGNOSTICCHAIN_MAP : return validateNonFinalParents( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___VALIDATE_NO_CYCLES_IN_GENERALIZATION__DIAGNOSTICCHAIN_MAP : return validateNoCyclesInGeneralization( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.SIGNAL___GET_ALL_ATTRIBUTES : return getAllAttributes(); case UMLPackage.SIGNAL___GET_ALL_OPERATIONS : return getAllOperations(); case UMLPackage.SIGNAL___GET_ALL_USED_INTERFACES : return getAllUsedInterfaces(); case UMLPackage.SIGNAL___GET_OPERATION__STRING_ELIST_ELIST : return getOperation((String) arguments.get(0), (EList) arguments.get(1), (EList) arguments.get(2)); case UMLPackage.SIGNAL___GET_OPERATION__STRING_ELIST_ELIST_BOOLEAN : return getOperation((String) arguments.get(0), (EList) arguments.get(1), (EList) arguments.get(2), (Boolean) arguments.get(3)); case UMLPackage.SIGNAL___GET_OPERATIONS : return getOperations(); case UMLPackage.SIGNAL___GET_USED_INTERFACES : return getUsedInterfaces(); case UMLPackage.SIGNAL___ALL_FEATURES : return allFeatures(); case UMLPackage.SIGNAL___ALL_PARENTS : return allParents(); case UMLPackage.SIGNAL___GET_GENERALS : return getGenerals(); case UMLPackage.SIGNAL___HAS_VISIBILITY_OF__NAMEDELEMENT : return hasVisibilityOf((NamedElement) arguments.get(0)); case UMLPackage.SIGNAL___INHERIT__ELIST : return inherit((EList) arguments.get(0)); case UMLPackage.SIGNAL___INHERITABLE_MEMBERS__CLASSIFIER : return inheritableMembers((Classifier) arguments.get(0)); case UMLPackage.SIGNAL___GET_INHERITED_MEMBERS : return getInheritedMembers(); case UMLPackage.SIGNAL___MAY_SPECIALIZE_TYPE__CLASSIFIER : return maySpecializeType((Classifier) arguments.get(0)); case UMLPackage.SIGNAL___PARENTS : return parents(); case UMLPackage.SIGNAL___DIRECTLY_REALIZED_INTERFACES : return directlyRealizedInterfaces(); case UMLPackage.SIGNAL___DIRECTLY_USED_INTERFACES : return directlyUsedInterfaces(); case UMLPackage.SIGNAL___ALL_REALIZED_INTERFACES : return allRealizedInterfaces(); case UMLPackage.SIGNAL___ALL_USED_INTERFACES : return allUsedInterfaces(); case UMLPackage.SIGNAL___IS_SUBSTITUTABLE_FOR__CLASSIFIER : return isSubstitutableFor((Classifier) arguments.get(0)); case UMLPackage.SIGNAL___ALL_ATTRIBUTES : return allAttributes(); case UMLPackage.SIGNAL___ALL_SLOTTABLE_FEATURES : return allSlottableFeatures(); case UMLPackage.SIGNAL___CREATE_OWNED_ATTRIBUTE__STRING_TYPE_INT_INT : return createOwnedAttribute((String) arguments.get(0), (Type) arguments.get(1), (Integer) arguments.get(2), (Integer) arguments.get(3)); } return eDynamicInvoke(operationID, arguments); } /** * * * @generated */ @Override public boolean isSetAttributes() { return super.isSetAttributes() || eIsSet(UMLPackage.SIGNAL__OWNED_ATTRIBUTE); } /** * The array of subset feature identifiers for the '{@link #getAttributes() Attribute}' reference list. * * * @see #getAttributes() * @generated * @ordered */ protected static final int[] ATTRIBUTE_ESUBSETS = new int[]{UMLPackage.SIGNAL__OWNED_ATTRIBUTE}; /** * The array of subset feature identifiers for the '{@link #getOwnedMembers() Owned Member}' reference list. * * * @see #getOwnedMembers() * @generated * @ordered */ protected static final int[] OWNED_MEMBER_ESUBSETS = new int[]{ UMLPackage.SIGNAL__OWNED_RULE, UMLPackage.SIGNAL__OWNED_USE_CASE, UMLPackage.SIGNAL__OWNED_ATTRIBUTE}; /** * * * @generated */ @Override public boolean isSetOwnedMembers() { return super.isSetOwnedMembers() || eIsSet(UMLPackage.SIGNAL__OWNED_ATTRIBUTE); } } //SignalImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy