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

org.eclipse.uml2.uml.internal.impl.StateMachineImpl 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.EObjectContainmentWithInverseEList;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
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.Behavior;
import org.eclipse.uml2.uml.BehavioralFeature;
import org.eclipse.uml2.uml.Classifier;
import org.eclipse.uml2.uml.CollaborationUse;
import org.eclipse.uml2.uml.Comment;
import org.eclipse.uml2.uml.Connector;
import org.eclipse.uml2.uml.Constraint;
import org.eclipse.uml2.uml.Element;
import org.eclipse.uml2.uml.ElementImport;
import org.eclipse.uml2.uml.Generalization;
import org.eclipse.uml2.uml.GeneralizationSet;
import org.eclipse.uml2.uml.InterfaceRealization;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.Namespace;
import org.eclipse.uml2.uml.Operation;
import org.eclipse.uml2.uml.PackageImport;
import org.eclipse.uml2.uml.PackageableElement;
import org.eclipse.uml2.uml.Parameter;
import org.eclipse.uml2.uml.ParameterSet;
import org.eclipse.uml2.uml.ParameterableElement;
import org.eclipse.uml2.uml.Property;
import org.eclipse.uml2.uml.Pseudostate;
import org.eclipse.uml2.uml.Reception;
import org.eclipse.uml2.uml.RedefinableElement;
import org.eclipse.uml2.uml.Region;
import org.eclipse.uml2.uml.State;
import org.eclipse.uml2.uml.StateMachine;
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.Vertex;
import org.eclipse.uml2.uml.VisibilityKind;

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

/**
 * 
 * An implementation of the model object 'State Machine'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.eclipse.uml2.uml.internal.impl.StateMachineImpl#getOwnedMembers Owned Member}
  • *
  • {@link org.eclipse.uml2.uml.internal.impl.StateMachineImpl#getConnectionPoints Connection Point}
  • *
  • {@link org.eclipse.uml2.uml.internal.impl.StateMachineImpl#getSubmachineStates Submachine State}
  • *
  • {@link org.eclipse.uml2.uml.internal.impl.StateMachineImpl#getRegions Region}
  • *
  • {@link org.eclipse.uml2.uml.internal.impl.StateMachineImpl#getExtendedStateMachines Extended State Machine}
  • *
*

* * @generated */ public class StateMachineImpl extends BehaviorImpl implements StateMachine { /** * The cached value of the '{@link #getConnectionPoints() Connection Point}' containment reference list. * * * @see #getConnectionPoints() * @generated * @ordered */ protected EList connectionPoints; /** * The cached value of the '{@link #getSubmachineStates() Submachine State}' reference list. * * * @see #getSubmachineStates() * @generated * @ordered */ protected EList submachineStates; /** * The cached value of the '{@link #getRegions() Region}' containment reference list. * * * @see #getRegions() * @generated * @ordered */ protected EList regions; /** * The cached value of the '{@link #getExtendedStateMachines() Extended State Machine}' reference list. * * * @see #getExtendedStateMachines() * @generated * @ordered */ protected EList extendedStateMachines; /** * * * @generated */ protected StateMachineImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return UMLPackage.Literals.STATE_MACHINE; } /** * * * @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.STATE_MACHINE__OWNED_MEMBER, OWNED_MEMBER_ESUBSETS)); } return ownedMembers; } return new DerivedUnionEObjectEList(NamedElement.class, this, UMLPackage.STATE_MACHINE__OWNED_MEMBER, OWNED_MEMBER_ESUBSETS); } /** * * * @generated */ public EList getRegions() { if (regions == null) { regions = new EObjectContainmentWithInverseEList.Resolving( Region.class, this, UMLPackage.STATE_MACHINE__REGION, UMLPackage.REGION__STATE_MACHINE); } return regions; } /** * * * @generated */ public Region createRegion(String name) { Region newRegion = (Region) create(UMLPackage.Literals.REGION); getRegions().add(newRegion); if (name != null) newRegion.setName(name); return newRegion; } /** * * * @generated */ public Region getRegion(String name) { return getRegion(name, false, false); } /** * * * @generated */ public Region getRegion(String name, boolean ignoreCase, boolean createOnDemand) { regionLoop : for (Region region : getRegions()) { if (name != null && !(ignoreCase ? name.equalsIgnoreCase(region.getName()) : name.equals(region.getName()))) continue regionLoop; return region; } return createOnDemand ? createRegion(name) : null; } /** * * * @generated */ public EList getSubmachineStates() { if (submachineStates == null) { submachineStates = new EObjectWithInverseResolvingEList( State.class, this, UMLPackage.STATE_MACHINE__SUBMACHINE_STATE, UMLPackage.STATE__SUBMACHINE); } return submachineStates; } /** * * * @generated */ public State getSubmachineState(String name) { return getSubmachineState(name, false, null); } /** * * * @generated */ public State getSubmachineState(String name, boolean ignoreCase, EClass eClass) { submachineStateLoop : for (State submachineState : getSubmachineStates()) { if (eClass != null && !eClass.isInstance(submachineState)) continue submachineStateLoop; if (name != null && !(ignoreCase ? name.equalsIgnoreCase(submachineState.getName()) : name.equals(submachineState.getName()))) continue submachineStateLoop; return submachineState; } return null; } /** * * * @generated */ public EList getConnectionPoints() { if (connectionPoints == null) { connectionPoints = new EObjectContainmentWithInverseEList.Resolving( Pseudostate.class, this, UMLPackage.STATE_MACHINE__CONNECTION_POINT, UMLPackage.PSEUDOSTATE__STATE_MACHINE); } return connectionPoints; } /** * * * @generated */ public Pseudostate createConnectionPoint(String name) { Pseudostate newConnectionPoint = (Pseudostate) create(UMLPackage.Literals.PSEUDOSTATE); getConnectionPoints().add(newConnectionPoint); if (name != null) newConnectionPoint.setName(name); return newConnectionPoint; } /** * * * @generated */ public Pseudostate getConnectionPoint(String name) { return getConnectionPoint(name, false, false); } /** * * * @generated */ public Pseudostate getConnectionPoint(String name, boolean ignoreCase, boolean createOnDemand) { connectionPointLoop : for (Pseudostate connectionPoint : getConnectionPoints()) { if (name != null && !(ignoreCase ? name.equalsIgnoreCase(connectionPoint.getName()) : name.equals(connectionPoint.getName()))) continue connectionPointLoop; return connectionPoint; } return createOnDemand ? createConnectionPoint(name) : null; } /** * * * @generated */ public EList getExtendedStateMachines() { if (extendedStateMachines == null) { extendedStateMachines = new EObjectResolvingEList( StateMachine.class, this, UMLPackage.STATE_MACHINE__EXTENDED_STATE_MACHINE); } return extendedStateMachines; } /** * * * @generated */ public StateMachine getExtendedStateMachine(String name) { return getExtendedStateMachine(name, false, null); } /** * * * @generated */ public StateMachine getExtendedStateMachine(String name, boolean ignoreCase, EClass eClass) { extendedStateMachineLoop : for (StateMachine extendedStateMachine : getExtendedStateMachines()) { if (eClass != null && !eClass.isInstance(extendedStateMachine)) continue extendedStateMachineLoop; if (name != null && !(ignoreCase ? name.equalsIgnoreCase(extendedStateMachine.getName()) : name.equals(extendedStateMachine.getName()))) continue extendedStateMachineLoop; return extendedStateMachine; } return null; } /** * * * @generated */ public boolean isSetExtendedStateMachines() { return extendedStateMachines != null && !extendedStateMachines.isEmpty(); } /** * * * @generated */ public boolean validateClassifierContext(DiagnosticChain diagnostics, Map context) { return StateMachineOperations.validateClassifierContext(this, diagnostics, context); } /** * * * @generated */ public boolean validateContextClassifier(DiagnosticChain diagnostics, Map context) { return StateMachineOperations.validateContextClassifier(this, diagnostics, context); } /** * * * @generated */ public Region LCA(Vertex s1, Vertex s2) { return StateMachineOperations.LCA(this, s1, s2); } /** * * * @generated */ public boolean ancestor(Vertex s1, Vertex s2) { return StateMachineOperations.ancestor(this, s1, s2); } /** * * * @generated */ public State LCAState(Vertex v1, Vertex v2) { return StateMachineOperations.LCAState(this, v1, v2); } /** * * * @generated */ public boolean validateConnectionPoints(DiagnosticChain diagnostics, Map context) { return StateMachineOperations.validateConnectionPoints(this, diagnostics, context); } /** * * * @generated */ public boolean validateMethod(DiagnosticChain diagnostics, Map context) { return StateMachineOperations .validateMethod(this, diagnostics, context); } /** * * * @generated */ @Override public boolean isConsistentWith(RedefinableElement redefiningElement) { return StateMachineOperations.isConsistentWith(this, redefiningElement); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case UMLPackage.STATE_MACHINE__EANNOTATIONS : return ((InternalEList) (InternalEList) getEAnnotations()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_RULE : return ((InternalEList) (InternalEList) getOwnedRules()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__ELEMENT_IMPORT : return ((InternalEList) (InternalEList) getElementImports()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__PACKAGE_IMPORT : return ((InternalEList) (InternalEList) getPackageImports()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNING_TEMPLATE_PARAMETER : if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return basicSetOwningTemplateParameter( (TemplateParameter) otherEnd, msgs); case UMLPackage.STATE_MACHINE__TEMPLATE_PARAMETER : if (templateParameter != null) msgs = ((InternalEObject) templateParameter) .eInverseRemove(this, UMLPackage.TEMPLATE_PARAMETER__PARAMETERED_ELEMENT, TemplateParameter.class, msgs); return basicSetTemplateParameter((TemplateParameter) otherEnd, msgs); case UMLPackage.STATE_MACHINE__TEMPLATE_BINDING : return ((InternalEList) (InternalEList) getTemplateBindings()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_TEMPLATE_SIGNATURE : if (ownedTemplateSignature != null) msgs = ((InternalEObject) ownedTemplateSignature) .eInverseRemove( this, EOPPOSITE_FEATURE_BASE - UMLPackage.STATE_MACHINE__OWNED_TEMPLATE_SIGNATURE, null, msgs); return basicSetOwnedTemplateSignature( (TemplateSignature) otherEnd, msgs); case UMLPackage.STATE_MACHINE__GENERALIZATION : return ((InternalEList) (InternalEList) getGeneralizations()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__POWERTYPE_EXTENT : return ((InternalEList) (InternalEList) getPowertypeExtents()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__USE_CASE : return ((InternalEList) (InternalEList) getUseCases()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__SUBSTITUTION : return ((InternalEList) (InternalEList) getSubstitutions()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__INTERFACE_REALIZATION : return ((InternalEList) (InternalEList) getInterfaceRealizations()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_OPERATION : return ((InternalEList) (InternalEList) getOwnedOperations()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__SPECIFICATION : if (specification != null) msgs = ((InternalEObject) specification).eInverseRemove( this, UMLPackage.BEHAVIORAL_FEATURE__METHOD, BehavioralFeature.class, msgs); return basicSetSpecification((BehavioralFeature) otherEnd, msgs); case UMLPackage.STATE_MACHINE__CONNECTION_POINT : return ((InternalEList) (InternalEList) getConnectionPoints()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__SUBMACHINE_STATE : return ((InternalEList) (InternalEList) getSubmachineStates()) .basicAdd(otherEnd, msgs); case UMLPackage.STATE_MACHINE__REGION : return ((InternalEList) (InternalEList) getRegions()) .basicAdd(otherEnd, msgs); } return eDynamicInverseAdd(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case UMLPackage.STATE_MACHINE__EANNOTATIONS : return ((InternalEList) getEAnnotations()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_COMMENT : return ((InternalEList) getOwnedComments()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__NAME_EXPRESSION : return basicSetNameExpression(null, msgs); case UMLPackage.STATE_MACHINE__OWNED_RULE : return ((InternalEList) getOwnedRules()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__ELEMENT_IMPORT : return ((InternalEList) getElementImports()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__PACKAGE_IMPORT : return ((InternalEList) getPackageImports()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNING_TEMPLATE_PARAMETER : return basicSetOwningTemplateParameter(null, msgs); case UMLPackage.STATE_MACHINE__TEMPLATE_PARAMETER : return basicSetTemplateParameter(null, msgs); case UMLPackage.STATE_MACHINE__TEMPLATE_BINDING : return ((InternalEList) getTemplateBindings()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_TEMPLATE_SIGNATURE : return basicSetOwnedTemplateSignature(null, msgs); case UMLPackage.STATE_MACHINE__COLLABORATION_USE : return ((InternalEList) getCollaborationUses()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__GENERALIZATION : return ((InternalEList) getGeneralizations()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__POWERTYPE_EXTENT : return ((InternalEList) getPowertypeExtents()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_USE_CASE : return ((InternalEList) getOwnedUseCases()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__USE_CASE : return ((InternalEList) getUseCases()).basicRemove(otherEnd, msgs); case UMLPackage.STATE_MACHINE__SUBSTITUTION : return ((InternalEList) getSubstitutions()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_ATTRIBUTE : return ((InternalEList) getOwnedAttributes()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_CONNECTOR : return ((InternalEList) getOwnedConnectors()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__INTERFACE_REALIZATION : return ((InternalEList) getInterfaceRealizations()) .basicRemove(otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_BEHAVIOR : return ((InternalEList) getOwnedBehaviors()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_OPERATION : return ((InternalEList) getOwnedOperations()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__NESTED_CLASSIFIER : return ((InternalEList) getNestedClassifiers()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_RECEPTION : return ((InternalEList) getOwnedReceptions()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__SPECIFICATION : return basicSetSpecification(null, msgs); case UMLPackage.STATE_MACHINE__OWNED_PARAMETER : return ((InternalEList) getOwnedParameters()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__OWNED_PARAMETER_SET : return ((InternalEList) getOwnedParameterSets()) .basicRemove(otherEnd, msgs); case UMLPackage.STATE_MACHINE__CONNECTION_POINT : return ((InternalEList) getConnectionPoints()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__SUBMACHINE_STATE : return ((InternalEList) getSubmachineStates()).basicRemove( otherEnd, msgs); case UMLPackage.STATE_MACHINE__REGION : return ((InternalEList) getRegions()).basicRemove(otherEnd, msgs); } return eDynamicInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case UMLPackage.STATE_MACHINE__EANNOTATIONS : return getEAnnotations(); case UMLPackage.STATE_MACHINE__OWNED_COMMENT : return getOwnedComments(); case UMLPackage.STATE_MACHINE__OWNED_ELEMENT : return getOwnedElements(); case UMLPackage.STATE_MACHINE__OWNER : if (resolve) return getOwner(); return basicGetOwner(); case UMLPackage.STATE_MACHINE__CLIENT_DEPENDENCY : return getClientDependencies(); case UMLPackage.STATE_MACHINE__NAME : return getName(); case UMLPackage.STATE_MACHINE__NAME_EXPRESSION : if (resolve) return getNameExpression(); return basicGetNameExpression(); case UMLPackage.STATE_MACHINE__NAMESPACE : if (resolve) return getNamespace(); return basicGetNamespace(); case UMLPackage.STATE_MACHINE__QUALIFIED_NAME : return getQualifiedName(); case UMLPackage.STATE_MACHINE__VISIBILITY : return getVisibility(); case UMLPackage.STATE_MACHINE__OWNED_RULE : return getOwnedRules(); case UMLPackage.STATE_MACHINE__ELEMENT_IMPORT : return getElementImports(); case UMLPackage.STATE_MACHINE__PACKAGE_IMPORT : return getPackageImports(); case UMLPackage.STATE_MACHINE__OWNED_MEMBER : return getOwnedMembers(); case UMLPackage.STATE_MACHINE__IMPORTED_MEMBER : return getImportedMembers(); case UMLPackage.STATE_MACHINE__MEMBER : return getMembers(); case UMLPackage.STATE_MACHINE__IS_LEAF : return isLeaf(); case UMLPackage.STATE_MACHINE__REDEFINED_ELEMENT : return getRedefinedElements(); case UMLPackage.STATE_MACHINE__REDEFINITION_CONTEXT : return getRedefinitionContexts(); case UMLPackage.STATE_MACHINE__OWNING_TEMPLATE_PARAMETER : if (resolve) return getOwningTemplateParameter(); return basicGetOwningTemplateParameter(); case UMLPackage.STATE_MACHINE__TEMPLATE_PARAMETER : if (resolve) return getTemplateParameter(); return basicGetTemplateParameter(); case UMLPackage.STATE_MACHINE__PACKAGE : if (resolve) return getPackage(); return basicGetPackage(); case UMLPackage.STATE_MACHINE__TEMPLATE_BINDING : return getTemplateBindings(); case UMLPackage.STATE_MACHINE__OWNED_TEMPLATE_SIGNATURE : if (resolve) return getOwnedTemplateSignature(); return basicGetOwnedTemplateSignature(); case UMLPackage.STATE_MACHINE__FEATURE : return getFeatures(); case UMLPackage.STATE_MACHINE__ATTRIBUTE : return getAttributes(); case UMLPackage.STATE_MACHINE__COLLABORATION_USE : return getCollaborationUses(); case UMLPackage.STATE_MACHINE__GENERAL : return getGenerals(); case UMLPackage.STATE_MACHINE__GENERALIZATION : return getGeneralizations(); case UMLPackage.STATE_MACHINE__POWERTYPE_EXTENT : return getPowertypeExtents(); case UMLPackage.STATE_MACHINE__INHERITED_MEMBER : return getInheritedMembers(); case UMLPackage.STATE_MACHINE__IS_ABSTRACT : return isAbstract(); case UMLPackage.STATE_MACHINE__IS_FINAL_SPECIALIZATION : return isFinalSpecialization(); case UMLPackage.STATE_MACHINE__OWNED_USE_CASE : return getOwnedUseCases(); case UMLPackage.STATE_MACHINE__USE_CASE : return getUseCases(); case UMLPackage.STATE_MACHINE__REDEFINED_CLASSIFIER : return getRedefinedClassifiers(); case UMLPackage.STATE_MACHINE__REPRESENTATION : if (resolve) return getRepresentation(); return basicGetRepresentation(); case UMLPackage.STATE_MACHINE__SUBSTITUTION : return getSubstitutions(); case UMLPackage.STATE_MACHINE__OWNED_ATTRIBUTE : return getOwnedAttributes(); case UMLPackage.STATE_MACHINE__OWNED_CONNECTOR : return getOwnedConnectors(); case UMLPackage.STATE_MACHINE__PART : return getParts(); case UMLPackage.STATE_MACHINE__ROLE : return getRoles(); case UMLPackage.STATE_MACHINE__OWNED_PORT : return getOwnedPorts(); case UMLPackage.STATE_MACHINE__CLASSIFIER_BEHAVIOR : if (resolve) return getClassifierBehavior(); return basicGetClassifierBehavior(); case UMLPackage.STATE_MACHINE__INTERFACE_REALIZATION : return getInterfaceRealizations(); case UMLPackage.STATE_MACHINE__OWNED_BEHAVIOR : return getOwnedBehaviors(); case UMLPackage.STATE_MACHINE__OWNED_OPERATION : return getOwnedOperations(); case UMLPackage.STATE_MACHINE__EXTENSION : return getExtensions(); case UMLPackage.STATE_MACHINE__IS_ACTIVE : return isActive(); case UMLPackage.STATE_MACHINE__NESTED_CLASSIFIER : return getNestedClassifiers(); case UMLPackage.STATE_MACHINE__OWNED_RECEPTION : return getOwnedReceptions(); case UMLPackage.STATE_MACHINE__SUPER_CLASS : return getSuperClasses(); case UMLPackage.STATE_MACHINE__SPECIFICATION : if (resolve) return getSpecification(); return basicGetSpecification(); case UMLPackage.STATE_MACHINE__CONTEXT : if (resolve) return getContext(); return basicGetContext(); case UMLPackage.STATE_MACHINE__IS_REENTRANT : return isReentrant(); case UMLPackage.STATE_MACHINE__OWNED_PARAMETER : return getOwnedParameters(); case UMLPackage.STATE_MACHINE__OWNED_PARAMETER_SET : return getOwnedParameterSets(); case UMLPackage.STATE_MACHINE__POSTCONDITION : return getPostconditions(); case UMLPackage.STATE_MACHINE__PRECONDITION : return getPreconditions(); case UMLPackage.STATE_MACHINE__REDEFINED_BEHAVIOR : return getRedefinedBehaviors(); case UMLPackage.STATE_MACHINE__CONNECTION_POINT : return getConnectionPoints(); case UMLPackage.STATE_MACHINE__SUBMACHINE_STATE : return getSubmachineStates(); case UMLPackage.STATE_MACHINE__REGION : return getRegions(); case UMLPackage.STATE_MACHINE__EXTENDED_STATE_MACHINE : return getExtendedStateMachines(); } return eDynamicGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case UMLPackage.STATE_MACHINE__EANNOTATIONS : getEAnnotations().clear(); getEAnnotations().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_COMMENT : getOwnedComments().clear(); getOwnedComments().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__NAME : setName((String) newValue); return; case UMLPackage.STATE_MACHINE__NAME_EXPRESSION : setNameExpression((StringExpression) newValue); return; case UMLPackage.STATE_MACHINE__VISIBILITY : setVisibility((VisibilityKind) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_RULE : getOwnedRules().clear(); getOwnedRules().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__ELEMENT_IMPORT : getElementImports().clear(); getElementImports().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__PACKAGE_IMPORT : getPackageImports().clear(); getPackageImports().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__IS_LEAF : setIsLeaf((Boolean) newValue); return; case UMLPackage.STATE_MACHINE__OWNING_TEMPLATE_PARAMETER : setOwningTemplateParameter((TemplateParameter) newValue); return; case UMLPackage.STATE_MACHINE__TEMPLATE_PARAMETER : setTemplateParameter((TemplateParameter) newValue); return; case UMLPackage.STATE_MACHINE__PACKAGE : setPackage((org.eclipse.uml2.uml.Package) newValue); return; case UMLPackage.STATE_MACHINE__TEMPLATE_BINDING : getTemplateBindings().clear(); getTemplateBindings().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_TEMPLATE_SIGNATURE : setOwnedTemplateSignature((TemplateSignature) newValue); return; case UMLPackage.STATE_MACHINE__COLLABORATION_USE : getCollaborationUses().clear(); getCollaborationUses().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__GENERAL : getGenerals().clear(); getGenerals().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__GENERALIZATION : getGeneralizations().clear(); getGeneralizations().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__POWERTYPE_EXTENT : getPowertypeExtents().clear(); getPowertypeExtents().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__IS_ABSTRACT : setIsAbstract((Boolean) newValue); return; case UMLPackage.STATE_MACHINE__IS_FINAL_SPECIALIZATION : setIsFinalSpecialization((Boolean) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_USE_CASE : getOwnedUseCases().clear(); getOwnedUseCases().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__USE_CASE : getUseCases().clear(); getUseCases().addAll((Collection) newValue); return; case UMLPackage.STATE_MACHINE__REDEFINED_CLASSIFIER : getRedefinedClassifiers().clear(); getRedefinedClassifiers().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__REPRESENTATION : setRepresentation((CollaborationUse) newValue); return; case UMLPackage.STATE_MACHINE__SUBSTITUTION : getSubstitutions().clear(); getSubstitutions().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_ATTRIBUTE : getOwnedAttributes().clear(); getOwnedAttributes().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_CONNECTOR : getOwnedConnectors().clear(); getOwnedConnectors().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__CLASSIFIER_BEHAVIOR : setClassifierBehavior((Behavior) newValue); return; case UMLPackage.STATE_MACHINE__INTERFACE_REALIZATION : getInterfaceRealizations().clear(); getInterfaceRealizations().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_BEHAVIOR : getOwnedBehaviors().clear(); getOwnedBehaviors().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_OPERATION : getOwnedOperations().clear(); getOwnedOperations().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__IS_ACTIVE : setIsActive((Boolean) newValue); return; case UMLPackage.STATE_MACHINE__NESTED_CLASSIFIER : getNestedClassifiers().clear(); getNestedClassifiers().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_RECEPTION : getOwnedReceptions().clear(); getOwnedReceptions().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__SUPER_CLASS : getSuperClasses().clear(); getSuperClasses() .addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__SPECIFICATION : setSpecification((BehavioralFeature) newValue); return; case UMLPackage.STATE_MACHINE__IS_REENTRANT : setIsReentrant((Boolean) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_PARAMETER : getOwnedParameters().clear(); getOwnedParameters().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__OWNED_PARAMETER_SET : getOwnedParameterSets().clear(); getOwnedParameterSets().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__POSTCONDITION : getPostconditions().clear(); getPostconditions().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__PRECONDITION : getPreconditions().clear(); getPreconditions().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__REDEFINED_BEHAVIOR : getRedefinedBehaviors().clear(); getRedefinedBehaviors().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__CONNECTION_POINT : getConnectionPoints().clear(); getConnectionPoints().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__SUBMACHINE_STATE : getSubmachineStates().clear(); getSubmachineStates().addAll( (Collection) newValue); return; case UMLPackage.STATE_MACHINE__REGION : getRegions().clear(); getRegions().addAll((Collection) newValue); return; case UMLPackage.STATE_MACHINE__EXTENDED_STATE_MACHINE : getExtendedStateMachines().clear(); getExtendedStateMachines().addAll( (Collection) newValue); return; } eDynamicSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case UMLPackage.STATE_MACHINE__EANNOTATIONS : getEAnnotations().clear(); return; case UMLPackage.STATE_MACHINE__OWNED_COMMENT : getOwnedComments().clear(); return; case UMLPackage.STATE_MACHINE__NAME : unsetName(); return; case UMLPackage.STATE_MACHINE__NAME_EXPRESSION : setNameExpression((StringExpression) null); return; case UMLPackage.STATE_MACHINE__VISIBILITY : unsetVisibility(); return; case UMLPackage.STATE_MACHINE__OWNED_RULE : getOwnedRules().clear(); return; case UMLPackage.STATE_MACHINE__ELEMENT_IMPORT : getElementImports().clear(); return; case UMLPackage.STATE_MACHINE__PACKAGE_IMPORT : getPackageImports().clear(); return; case UMLPackage.STATE_MACHINE__IS_LEAF : setIsLeaf(IS_LEAF_EDEFAULT); return; case UMLPackage.STATE_MACHINE__OWNING_TEMPLATE_PARAMETER : setOwningTemplateParameter((TemplateParameter) null); return; case UMLPackage.STATE_MACHINE__TEMPLATE_PARAMETER : setTemplateParameter((TemplateParameter) null); return; case UMLPackage.STATE_MACHINE__PACKAGE : setPackage((org.eclipse.uml2.uml.Package) null); return; case UMLPackage.STATE_MACHINE__TEMPLATE_BINDING : getTemplateBindings().clear(); return; case UMLPackage.STATE_MACHINE__OWNED_TEMPLATE_SIGNATURE : setOwnedTemplateSignature((TemplateSignature) null); return; case UMLPackage.STATE_MACHINE__COLLABORATION_USE : getCollaborationUses().clear(); return; case UMLPackage.STATE_MACHINE__GENERAL : getGenerals().clear(); return; case UMLPackage.STATE_MACHINE__GENERALIZATION : getGeneralizations().clear(); return; case UMLPackage.STATE_MACHINE__POWERTYPE_EXTENT : getPowertypeExtents().clear(); return; case UMLPackage.STATE_MACHINE__IS_ABSTRACT : setIsAbstract(IS_ABSTRACT_EDEFAULT); return; case UMLPackage.STATE_MACHINE__IS_FINAL_SPECIALIZATION : setIsFinalSpecialization(IS_FINAL_SPECIALIZATION_EDEFAULT); return; case UMLPackage.STATE_MACHINE__OWNED_USE_CASE : getOwnedUseCases().clear(); return; case UMLPackage.STATE_MACHINE__USE_CASE : getUseCases().clear(); return; case UMLPackage.STATE_MACHINE__REDEFINED_CLASSIFIER : getRedefinedClassifiers().clear(); return; case UMLPackage.STATE_MACHINE__REPRESENTATION : setRepresentation((CollaborationUse) null); return; case UMLPackage.STATE_MACHINE__SUBSTITUTION : getSubstitutions().clear(); return; case UMLPackage.STATE_MACHINE__OWNED_ATTRIBUTE : getOwnedAttributes().clear(); return; case UMLPackage.STATE_MACHINE__OWNED_CONNECTOR : getOwnedConnectors().clear(); return; case UMLPackage.STATE_MACHINE__CLASSIFIER_BEHAVIOR : setClassifierBehavior((Behavior) null); return; case UMLPackage.STATE_MACHINE__INTERFACE_REALIZATION : getInterfaceRealizations().clear(); return; case UMLPackage.STATE_MACHINE__OWNED_BEHAVIOR : getOwnedBehaviors().clear(); return; case UMLPackage.STATE_MACHINE__OWNED_OPERATION : getOwnedOperations().clear(); return; case UMLPackage.STATE_MACHINE__IS_ACTIVE : setIsActive(IS_ACTIVE_EDEFAULT); return; case UMLPackage.STATE_MACHINE__NESTED_CLASSIFIER : getNestedClassifiers().clear(); return; case UMLPackage.STATE_MACHINE__OWNED_RECEPTION : getOwnedReceptions().clear(); return; case UMLPackage.STATE_MACHINE__SUPER_CLASS : getSuperClasses().clear(); return; case UMLPackage.STATE_MACHINE__SPECIFICATION : setSpecification((BehavioralFeature) null); return; case UMLPackage.STATE_MACHINE__IS_REENTRANT : unsetIsReentrant(); return; case UMLPackage.STATE_MACHINE__OWNED_PARAMETER : getOwnedParameters().clear(); return; case UMLPackage.STATE_MACHINE__OWNED_PARAMETER_SET : getOwnedParameterSets().clear(); return; case UMLPackage.STATE_MACHINE__POSTCONDITION : getPostconditions().clear(); return; case UMLPackage.STATE_MACHINE__PRECONDITION : getPreconditions().clear(); return; case UMLPackage.STATE_MACHINE__REDEFINED_BEHAVIOR : getRedefinedBehaviors().clear(); return; case UMLPackage.STATE_MACHINE__CONNECTION_POINT : getConnectionPoints().clear(); return; case UMLPackage.STATE_MACHINE__SUBMACHINE_STATE : getSubmachineStates().clear(); return; case UMLPackage.STATE_MACHINE__REGION : getRegions().clear(); return; case UMLPackage.STATE_MACHINE__EXTENDED_STATE_MACHINE : getExtendedStateMachines().clear(); return; } eDynamicUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case UMLPackage.STATE_MACHINE__EANNOTATIONS : return eAnnotations != null && !eAnnotations.isEmpty(); case UMLPackage.STATE_MACHINE__OWNED_COMMENT : return ownedComments != null && !ownedComments.isEmpty(); case UMLPackage.STATE_MACHINE__OWNED_ELEMENT : return isSetOwnedElements(); case UMLPackage.STATE_MACHINE__OWNER : return isSetOwner(); case UMLPackage.STATE_MACHINE__CLIENT_DEPENDENCY : return !getClientDependencies().isEmpty(); case UMLPackage.STATE_MACHINE__NAME : return isSetName(); case UMLPackage.STATE_MACHINE__NAME_EXPRESSION : return nameExpression != null; case UMLPackage.STATE_MACHINE__NAMESPACE : return isSetNamespace(); case UMLPackage.STATE_MACHINE__QUALIFIED_NAME : return QUALIFIED_NAME_EDEFAULT == null ? getQualifiedName() != null : !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName()); case UMLPackage.STATE_MACHINE__VISIBILITY : return isSetVisibility(); case UMLPackage.STATE_MACHINE__OWNED_RULE : return ownedRules != null && !ownedRules.isEmpty(); case UMLPackage.STATE_MACHINE__ELEMENT_IMPORT : return elementImports != null && !elementImports.isEmpty(); case UMLPackage.STATE_MACHINE__PACKAGE_IMPORT : return packageImports != null && !packageImports.isEmpty(); case UMLPackage.STATE_MACHINE__OWNED_MEMBER : return isSetOwnedMembers(); case UMLPackage.STATE_MACHINE__IMPORTED_MEMBER : return !getImportedMembers().isEmpty(); case UMLPackage.STATE_MACHINE__MEMBER : return isSetMembers(); case UMLPackage.STATE_MACHINE__IS_LEAF : return ((eFlags & IS_LEAF_EFLAG) != 0) != IS_LEAF_EDEFAULT; case UMLPackage.STATE_MACHINE__REDEFINED_ELEMENT : return isSetRedefinedElements(); case UMLPackage.STATE_MACHINE__REDEFINITION_CONTEXT : return isSetRedefinitionContexts(); case UMLPackage.STATE_MACHINE__OWNING_TEMPLATE_PARAMETER : return basicGetOwningTemplateParameter() != null; case UMLPackage.STATE_MACHINE__TEMPLATE_PARAMETER : return isSetTemplateParameter(); case UMLPackage.STATE_MACHINE__PACKAGE : return basicGetPackage() != null; case UMLPackage.STATE_MACHINE__TEMPLATE_BINDING : return templateBindings != null && !templateBindings.isEmpty(); case UMLPackage.STATE_MACHINE__OWNED_TEMPLATE_SIGNATURE : return isSetOwnedTemplateSignature(); case UMLPackage.STATE_MACHINE__FEATURE : return isSetFeatures(); case UMLPackage.STATE_MACHINE__ATTRIBUTE : return isSetAttributes(); case UMLPackage.STATE_MACHINE__COLLABORATION_USE : return collaborationUses != null && !collaborationUses.isEmpty(); case UMLPackage.STATE_MACHINE__GENERAL : return isSetGenerals(); case UMLPackage.STATE_MACHINE__GENERALIZATION : return generalizations != null && !generalizations.isEmpty(); case UMLPackage.STATE_MACHINE__POWERTYPE_EXTENT : return powertypeExtents != null && !powertypeExtents.isEmpty(); case UMLPackage.STATE_MACHINE__INHERITED_MEMBER : return !getInheritedMembers().isEmpty(); case UMLPackage.STATE_MACHINE__IS_ABSTRACT : return isSetIsAbstract(); case UMLPackage.STATE_MACHINE__IS_FINAL_SPECIALIZATION : return ((eFlags & IS_FINAL_SPECIALIZATION_EFLAG) != 0) != IS_FINAL_SPECIALIZATION_EDEFAULT; case UMLPackage.STATE_MACHINE__OWNED_USE_CASE : return ownedUseCases != null && !ownedUseCases.isEmpty(); case UMLPackage.STATE_MACHINE__USE_CASE : return useCases != null && !useCases.isEmpty(); case UMLPackage.STATE_MACHINE__REDEFINED_CLASSIFIER : return redefinedClassifiers != null && !redefinedClassifiers.isEmpty(); case UMLPackage.STATE_MACHINE__REPRESENTATION : return representation != null; case UMLPackage.STATE_MACHINE__SUBSTITUTION : return substitutions != null && !substitutions.isEmpty(); case UMLPackage.STATE_MACHINE__OWNED_ATTRIBUTE : return isSetOwnedAttributes(); case UMLPackage.STATE_MACHINE__OWNED_CONNECTOR : return ownedConnectors != null && !ownedConnectors.isEmpty(); case UMLPackage.STATE_MACHINE__PART : return !getParts().isEmpty(); case UMLPackage.STATE_MACHINE__ROLE : return isSetRoles(); case UMLPackage.STATE_MACHINE__OWNED_PORT : return !getOwnedPorts().isEmpty(); case UMLPackage.STATE_MACHINE__CLASSIFIER_BEHAVIOR : return classifierBehavior != null; case UMLPackage.STATE_MACHINE__INTERFACE_REALIZATION : return interfaceRealizations != null && !interfaceRealizations.isEmpty(); case UMLPackage.STATE_MACHINE__OWNED_BEHAVIOR : return ownedBehaviors != null && !ownedBehaviors.isEmpty(); case UMLPackage.STATE_MACHINE__OWNED_OPERATION : return ownedOperations != null && !ownedOperations.isEmpty(); case UMLPackage.STATE_MACHINE__EXTENSION : return !getExtensions().isEmpty(); case UMLPackage.STATE_MACHINE__IS_ACTIVE : return ((eFlags & IS_ACTIVE_EFLAG) != 0) != IS_ACTIVE_EDEFAULT; case UMLPackage.STATE_MACHINE__NESTED_CLASSIFIER : return nestedClassifiers != null && !nestedClassifiers.isEmpty(); case UMLPackage.STATE_MACHINE__OWNED_RECEPTION : return ownedReceptions != null && !ownedReceptions.isEmpty(); case UMLPackage.STATE_MACHINE__SUPER_CLASS : return isSetSuperClasses(); case UMLPackage.STATE_MACHINE__SPECIFICATION : return specification != null; case UMLPackage.STATE_MACHINE__CONTEXT : return basicGetContext() != null; case UMLPackage.STATE_MACHINE__IS_REENTRANT : return isSetIsReentrant(); case UMLPackage.STATE_MACHINE__OWNED_PARAMETER : return ownedParameters != null && !ownedParameters.isEmpty(); case UMLPackage.STATE_MACHINE__OWNED_PARAMETER_SET : return ownedParameterSets != null && !ownedParameterSets.isEmpty(); case UMLPackage.STATE_MACHINE__POSTCONDITION : return postconditions != null && !postconditions.isEmpty(); case UMLPackage.STATE_MACHINE__PRECONDITION : return preconditions != null && !preconditions.isEmpty(); case UMLPackage.STATE_MACHINE__REDEFINED_BEHAVIOR : return isSetRedefinedBehaviors(); case UMLPackage.STATE_MACHINE__CONNECTION_POINT : return connectionPoints != null && !connectionPoints.isEmpty(); case UMLPackage.STATE_MACHINE__SUBMACHINE_STATE : return submachineStates != null && !submachineStates.isEmpty(); case UMLPackage.STATE_MACHINE__REGION : return regions != null && !regions.isEmpty(); case UMLPackage.STATE_MACHINE__EXTENDED_STATE_MACHINE : return isSetExtendedStateMachines(); } return eDynamicIsSet(featureID); } /** * * * @generated */ @Override @SuppressWarnings("unchecked") public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { switch (operationID) { case UMLPackage.STATE_MACHINE___GET_EANNOTATION__STRING : return getEAnnotation((String) arguments.get(0)); case UMLPackage.STATE_MACHINE___VALIDATE_HAS_OWNER__DIAGNOSTICCHAIN_MAP : return validateHasOwner((DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_NOT_OWN_SELF__DIAGNOSTICCHAIN_MAP : return validateNotOwnSelf((DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___ADD_KEYWORD__STRING : return addKeyword((String) arguments.get(0)); case UMLPackage.STATE_MACHINE___APPLY_STEREOTYPE__STEREOTYPE : return applyStereotype((Stereotype) arguments.get(0)); case UMLPackage.STATE_MACHINE___CREATE_EANNOTATION__STRING : return createEAnnotation((String) arguments.get(0)); case UMLPackage.STATE_MACHINE___DESTROY : destroy(); return null; case UMLPackage.STATE_MACHINE___GET_KEYWORDS : return getKeywords(); case UMLPackage.STATE_MACHINE___GET_APPLICABLE_STEREOTYPE__STRING : return getApplicableStereotype((String) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_APPLICABLE_STEREOTYPES : return getApplicableStereotypes(); case UMLPackage.STATE_MACHINE___GET_APPLIED_STEREOTYPE__STRING : return getAppliedStereotype((String) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_APPLIED_STEREOTYPES : return getAppliedStereotypes(); case UMLPackage.STATE_MACHINE___GET_APPLIED_SUBSTEREOTYPE__STEREOTYPE_STRING : return getAppliedSubstereotype((Stereotype) arguments.get(0), (String) arguments.get(1)); case UMLPackage.STATE_MACHINE___GET_APPLIED_SUBSTEREOTYPES__STEREOTYPE : return getAppliedSubstereotypes((Stereotype) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_MODEL : return getModel(); case UMLPackage.STATE_MACHINE___GET_NEAREST_PACKAGE : return getNearestPackage(); case UMLPackage.STATE_MACHINE___GET_RELATIONSHIPS : return getRelationships(); case UMLPackage.STATE_MACHINE___GET_RELATIONSHIPS__ECLASS : return getRelationships((EClass) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_REQUIRED_STEREOTYPE__STRING : return getRequiredStereotype((String) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_REQUIRED_STEREOTYPES : return getRequiredStereotypes(); case UMLPackage.STATE_MACHINE___GET_SOURCE_DIRECTED_RELATIONSHIPS : return getSourceDirectedRelationships(); case UMLPackage.STATE_MACHINE___GET_SOURCE_DIRECTED_RELATIONSHIPS__ECLASS : return getSourceDirectedRelationships((EClass) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_STEREOTYPE_APPLICATION__STEREOTYPE : return getStereotypeApplication((Stereotype) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_STEREOTYPE_APPLICATIONS : return getStereotypeApplications(); case UMLPackage.STATE_MACHINE___GET_TARGET_DIRECTED_RELATIONSHIPS : return getTargetDirectedRelationships(); case UMLPackage.STATE_MACHINE___GET_TARGET_DIRECTED_RELATIONSHIPS__ECLASS : return getTargetDirectedRelationships((EClass) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_VALUE__STEREOTYPE_STRING : return getValue((Stereotype) arguments.get(0), (String) arguments.get(1)); case UMLPackage.STATE_MACHINE___HAS_KEYWORD__STRING : return hasKeyword((String) arguments.get(0)); case UMLPackage.STATE_MACHINE___HAS_VALUE__STEREOTYPE_STRING : return hasValue((Stereotype) arguments.get(0), (String) arguments.get(1)); case UMLPackage.STATE_MACHINE___IS_STEREOTYPE_APPLICABLE__STEREOTYPE : return isStereotypeApplicable((Stereotype) arguments.get(0)); case UMLPackage.STATE_MACHINE___IS_STEREOTYPE_APPLIED__STEREOTYPE : return isStereotypeApplied((Stereotype) arguments.get(0)); case UMLPackage.STATE_MACHINE___IS_STEREOTYPE_REQUIRED__STEREOTYPE : return isStereotypeRequired((Stereotype) arguments.get(0)); case UMLPackage.STATE_MACHINE___REMOVE_KEYWORD__STRING : return removeKeyword((String) arguments.get(0)); case UMLPackage.STATE_MACHINE___SET_VALUE__STEREOTYPE_STRING_OBJECT : setValue((Stereotype) arguments.get(0), (String) arguments.get(1), arguments.get(2)); return null; case UMLPackage.STATE_MACHINE___UNAPPLY_STEREOTYPE__STEREOTYPE : return unapplyStereotype((Stereotype) arguments.get(0)); case UMLPackage.STATE_MACHINE___ALL_OWNED_ELEMENTS : return allOwnedElements(); case UMLPackage.STATE_MACHINE___MUST_BE_OWNED : return mustBeOwned(); case UMLPackage.STATE_MACHINE___VALIDATE_VISIBILITY_NEEDS_OWNERSHIP__DIAGNOSTICCHAIN_MAP : return validateVisibilityNeedsOwnership( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_HAS_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP : return validateHasQualifiedName( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_HAS_NO_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP : return validateHasNoQualifiedName( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___CREATE_DEPENDENCY__NAMEDELEMENT : return createDependency((NamedElement) arguments.get(0)); case UMLPackage.STATE_MACHINE___CREATE_USAGE__NAMEDELEMENT : return createUsage((NamedElement) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_LABEL : return getLabel(); case UMLPackage.STATE_MACHINE___GET_LABEL__BOOLEAN : return getLabel((Boolean) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_NAMESPACE : return getNamespace(); case UMLPackage.STATE_MACHINE___ALL_NAMESPACES : return allNamespaces(); case UMLPackage.STATE_MACHINE___ALL_OWNING_PACKAGES : return allOwningPackages(); case UMLPackage.STATE_MACHINE___IS_DISTINGUISHABLE_FROM__NAMEDELEMENT_NAMESPACE : return isDistinguishableFrom((NamedElement) arguments.get(0), (Namespace) arguments.get(1)); case UMLPackage.STATE_MACHINE___GET_QUALIFIED_NAME : return getQualifiedName(); case UMLPackage.STATE_MACHINE___SEPARATOR : return separator(); case UMLPackage.STATE_MACHINE___GET_CLIENT_DEPENDENCIES : return getClientDependencies(); case UMLPackage.STATE_MACHINE___VALIDATE_MEMBERS_DISTINGUISHABLE__DIAGNOSTICCHAIN_MAP : return validateMembersDistinguishable( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_CANNOT_IMPORT_SELF__DIAGNOSTICCHAIN_MAP : return validateCannotImportSelf( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_CANNOT_IMPORT_OWNED_MEMBERS__DIAGNOSTICCHAIN_MAP : return validateCannotImportOwnedMembers( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___CREATE_ELEMENT_IMPORT__PACKAGEABLEELEMENT_VISIBILITYKIND : return createElementImport( (PackageableElement) arguments.get(0), (VisibilityKind) arguments.get(1)); case UMLPackage.STATE_MACHINE___CREATE_PACKAGE_IMPORT__PACKAGE_VISIBILITYKIND : return createPackageImport( (org.eclipse.uml2.uml.Package) arguments.get(0), (VisibilityKind) arguments.get(1)); case UMLPackage.STATE_MACHINE___GET_IMPORTED_ELEMENTS : return getImportedElements(); case UMLPackage.STATE_MACHINE___GET_IMPORTED_PACKAGES : return getImportedPackages(); case UMLPackage.STATE_MACHINE___GET_OWNED_MEMBERS : return getOwnedMembers(); case UMLPackage.STATE_MACHINE___EXCLUDE_COLLISIONS__ELIST : return excludeCollisions((EList) arguments .get(0)); case UMLPackage.STATE_MACHINE___GET_NAMES_OF_MEMBER__NAMEDELEMENT : return getNamesOfMember((NamedElement) arguments.get(0)); case UMLPackage.STATE_MACHINE___IMPORT_MEMBERS__ELIST : return importMembers((EList) arguments .get(0)); case UMLPackage.STATE_MACHINE___GET_IMPORTED_MEMBERS : return getImportedMembers(); case UMLPackage.STATE_MACHINE___MEMBERS_ARE_DISTINGUISHABLE : return membersAreDistinguishable(); case UMLPackage.STATE_MACHINE___VALIDATE_REDEFINITION_CONSISTENT__DIAGNOSTICCHAIN_MAP : return validateRedefinitionConsistent( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_NON_LEAF_REDEFINITION__DIAGNOSTICCHAIN_MAP : return validateNonLeafRedefinition( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_REDEFINITION_CONTEXT_VALID__DIAGNOSTICCHAIN_MAP : return validateRedefinitionContextValid( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___IS_CONSISTENT_WITH__REDEFINABLEELEMENT : return isConsistentWith((RedefinableElement) arguments.get(0)); case UMLPackage.STATE_MACHINE___IS_REDEFINITION_CONTEXT_VALID__REDEFINABLEELEMENT : return isRedefinitionContextValid((RedefinableElement) arguments .get(0)); case UMLPackage.STATE_MACHINE___IS_COMPATIBLE_WITH__PARAMETERABLEELEMENT : return isCompatibleWith((ParameterableElement) arguments.get(0)); case UMLPackage.STATE_MACHINE___IS_TEMPLATE_PARAMETER : return isTemplateParameter(); case UMLPackage.STATE_MACHINE___VALIDATE_NAMESPACE_NEEDS_VISIBILITY__DIAGNOSTICCHAIN_MAP : return validateNamespaceNeedsVisibility( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___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.STATE_MACHINE___GET_ASSOCIATIONS : return getAssociations(); case UMLPackage.STATE_MACHINE___CONFORMS_TO__TYPE : return conformsTo((Type) arguments.get(0)); case UMLPackage.STATE_MACHINE___IS_TEMPLATE : return isTemplate(); case UMLPackage.STATE_MACHINE___PARAMETERABLE_ELEMENTS : return parameterableElements(); case UMLPackage.STATE_MACHINE___VALIDATE_SPECIALIZE_TYPE__DIAGNOSTICCHAIN_MAP : return validateSpecializeType( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_MAPS_TO_GENERALIZATION_SET__DIAGNOSTICCHAIN_MAP : return validateMapsToGeneralizationSet( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_NON_FINAL_PARENTS__DIAGNOSTICCHAIN_MAP : return validateNonFinalParents( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_NO_CYCLES_IN_GENERALIZATION__DIAGNOSTICCHAIN_MAP : return validateNoCyclesInGeneralization( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___GET_ALL_ATTRIBUTES : return getAllAttributes(); case UMLPackage.STATE_MACHINE___GET_ALL_OPERATIONS : return getAllOperations(); case UMLPackage.STATE_MACHINE___GET_ALL_USED_INTERFACES : return getAllUsedInterfaces(); case UMLPackage.STATE_MACHINE___GET_OPERATION__STRING_ELIST_ELIST : return getOperation((String) arguments.get(0), (EList) arguments.get(1), (EList) arguments.get(2)); case UMLPackage.STATE_MACHINE___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.STATE_MACHINE___GET_OPERATIONS : return getOperations(); case UMLPackage.STATE_MACHINE___GET_USED_INTERFACES : return getUsedInterfaces(); case UMLPackage.STATE_MACHINE___ALL_FEATURES : return allFeatures(); case UMLPackage.STATE_MACHINE___ALL_PARENTS : return allParents(); case UMLPackage.STATE_MACHINE___GET_GENERALS : return getGenerals(); case UMLPackage.STATE_MACHINE___HAS_VISIBILITY_OF__NAMEDELEMENT : return hasVisibilityOf((NamedElement) arguments.get(0)); case UMLPackage.STATE_MACHINE___INHERIT__ELIST : return inherit((EList) arguments.get(0)); case UMLPackage.STATE_MACHINE___INHERITABLE_MEMBERS__CLASSIFIER : return inheritableMembers((Classifier) arguments.get(0)); case UMLPackage.STATE_MACHINE___GET_INHERITED_MEMBERS : return getInheritedMembers(); case UMLPackage.STATE_MACHINE___MAY_SPECIALIZE_TYPE__CLASSIFIER : return maySpecializeType((Classifier) arguments.get(0)); case UMLPackage.STATE_MACHINE___PARENTS : return parents(); case UMLPackage.STATE_MACHINE___DIRECTLY_REALIZED_INTERFACES : return directlyRealizedInterfaces(); case UMLPackage.STATE_MACHINE___DIRECTLY_USED_INTERFACES : return directlyUsedInterfaces(); case UMLPackage.STATE_MACHINE___ALL_REALIZED_INTERFACES : return allRealizedInterfaces(); case UMLPackage.STATE_MACHINE___ALL_USED_INTERFACES : return allUsedInterfaces(); case UMLPackage.STATE_MACHINE___IS_SUBSTITUTABLE_FOR__CLASSIFIER : return isSubstitutableFor((Classifier) arguments.get(0)); case UMLPackage.STATE_MACHINE___ALL_ATTRIBUTES : return allAttributes(); case UMLPackage.STATE_MACHINE___ALL_SLOTTABLE_FEATURES : return allSlottableFeatures(); case UMLPackage.STATE_MACHINE___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)); case UMLPackage.STATE_MACHINE___GET_PARTS : return getParts(); case UMLPackage.STATE_MACHINE___ALL_ROLES : return allRoles(); case UMLPackage.STATE_MACHINE___GET_OWNED_PORTS : return getOwnedPorts(); case UMLPackage.STATE_MACHINE___VALIDATE_CLASS_BEHAVIOR__DIAGNOSTICCHAIN_MAP : return validateClassBehavior( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___GET_ALL_IMPLEMENTED_INTERFACES : return getAllImplementedInterfaces(); case UMLPackage.STATE_MACHINE___GET_IMPLEMENTED_INTERFACES : return getImplementedInterfaces(); case UMLPackage.STATE_MACHINE___VALIDATE_PASSIVE_CLASS__DIAGNOSTICCHAIN_MAP : return validatePassiveClass((DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___CREATE_OWNED_OPERATION__STRING_ELIST_ELIST_TYPE : return createOwnedOperation((String) arguments.get(0), (EList) arguments.get(1), (EList) arguments.get(2), (Type) arguments.get(3)); case UMLPackage.STATE_MACHINE___IS_METACLASS : return isMetaclass(); case UMLPackage.STATE_MACHINE___GET_EXTENSIONS : return getExtensions(); case UMLPackage.STATE_MACHINE___GET_SUPER_CLASSES : return getSuperClasses(); case UMLPackage.STATE_MACHINE___VALIDATE_MOST_ONE_BEHAVIOR__DIAGNOSTICCHAIN_MAP : return validateMostOneBehavior( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_PARAMETERS_MATCH__DIAGNOSTICCHAIN_MAP : return validateParametersMatch( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_FEATURE_OF_CONTEXT_CLASSIFIER__DIAGNOSTICCHAIN_MAP : return validateFeatureOfContextClassifier( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___GET_CONTEXT : return getContext(); case UMLPackage.STATE_MACHINE___BEHAVIORED_CLASSIFIER__ELEMENT : return behavioredClassifier((Element) arguments.get(0)); case UMLPackage.STATE_MACHINE___INPUT_PARAMETERS : return inputParameters(); case UMLPackage.STATE_MACHINE___OUTPUT_PARAMETERS : return outputParameters(); case UMLPackage.STATE_MACHINE___VALIDATE_CONNECTION_POINTS__DIAGNOSTICCHAIN_MAP : return validateConnectionPoints( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_CLASSIFIER_CONTEXT__DIAGNOSTICCHAIN_MAP : return validateClassifierContext( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_METHOD__DIAGNOSTICCHAIN_MAP : return validateMethod((DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___VALIDATE_CONTEXT_CLASSIFIER__DIAGNOSTICCHAIN_MAP : return validateContextClassifier( (DiagnosticChain) arguments.get(0), (Map) arguments.get(1)); case UMLPackage.STATE_MACHINE___LCA__VERTEX_VERTEX : return LCA((Vertex) arguments.get(0), (Vertex) arguments.get(1)); case UMLPackage.STATE_MACHINE___ANCESTOR__VERTEX_VERTEX : return ancestor((Vertex) arguments.get(0), (Vertex) arguments.get(1)); case UMLPackage.STATE_MACHINE___LCA_STATE__VERTEX_VERTEX : return LCAState((Vertex) arguments.get(0), (Vertex) arguments.get(1)); } return eDynamicInvoke(operationID, arguments); } /** * 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.STATE_MACHINE__OWNED_RULE, UMLPackage.STATE_MACHINE__OWNED_USE_CASE, UMLPackage.STATE_MACHINE__OWNED_ATTRIBUTE, UMLPackage.STATE_MACHINE__OWNED_CONNECTOR, UMLPackage.STATE_MACHINE__OWNED_BEHAVIOR, UMLPackage.STATE_MACHINE__OWNED_OPERATION, UMLPackage.STATE_MACHINE__NESTED_CLASSIFIER, UMLPackage.STATE_MACHINE__OWNED_RECEPTION, UMLPackage.STATE_MACHINE__OWNED_PARAMETER, UMLPackage.STATE_MACHINE__OWNED_PARAMETER_SET, UMLPackage.STATE_MACHINE__CONNECTION_POINT, UMLPackage.STATE_MACHINE__REGION}; /** * * * @generated */ @Override public boolean isSetOwnedMembers() { return super.isSetOwnedMembers() || eIsSet(UMLPackage.STATE_MACHINE__CONNECTION_POINT) || eIsSet(UMLPackage.STATE_MACHINE__REGION); } /** * * * @generated */ @Override public EList getRedefinedBehaviors() { @SuppressWarnings("unchecked") EList extendedStateMachine = (EList) ((EList) getExtendedStateMachines()); return extendedStateMachine; } /** * The array of superset feature identifiers for the '{@link #getRedefinedBehaviors() Redefined Behavior}' reference list. * * * @see #getRedefinedBehaviors() * @generated * @ordered */ protected static final int[] REDEFINED_BEHAVIOR_ESUPERSETS = new int[]{UMLPackage.STATE_MACHINE__REDEFINED_CLASSIFIER}; /** * * * @generated */ public boolean isSetRedefinedBehaviors() { return false; } /** * * * @generated */ public boolean isRedefinitionContextValidGen( RedefinableElement redefinedElement) { return StateMachineOperations.isRedefinitionContextValid(this, redefinedElement); } @Override public boolean isRedefinitionContextValid(RedefinableElement redefined) { return redefined instanceof StateMachine && isRedefinitionContextValid((StateMachine) redefined); } } //StateMachineImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy