Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.eclipse.uml2.uml.internal.impl.NodeImpl Maven / Gradle / Ivy
/*
* Copyright (c) 2005, 2011 IBM Corporation, Embarcadero Technologies, 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 (Embarcadero Technologies) - 205188
* Kenn Hussey - 286329, 323181
* Kenn Hussey (CEA) - 327039, 351774
*
*/
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.common.util.SubsetSupersetEObjectContainmentWithInverseEList;
import org.eclipse.uml2.common.util.SubsetSupersetEObjectWithInverseResolvingEList;
import org.eclipse.uml2.uml.AggregationKind;
import org.eclipse.uml2.uml.Behavior;
import org.eclipse.uml2.uml.Classifier;
import org.eclipse.uml2.uml.CollaborationUse;
import org.eclipse.uml2.uml.Comment;
import org.eclipse.uml2.uml.CommunicationPath;
import org.eclipse.uml2.uml.Connector;
import org.eclipse.uml2.uml.Constraint;
import org.eclipse.uml2.uml.Dependency;
import org.eclipse.uml2.uml.Deployment;
import org.eclipse.uml2.uml.DeploymentTarget;
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.Node;
import org.eclipse.uml2.uml.Operation;
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.Reception;
import org.eclipse.uml2.uml.RedefinableElement;
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.DeploymentTargetOperations;
import org.eclipse.uml2.uml.internal.operations.NodeOperations;
/**
*
* An implementation of the model object 'Node '.
*
*
* The following features are implemented:
*
* {@link org.eclipse.uml2.uml.internal.impl.NodeImpl#getOwnedElements Owned Element }
* {@link org.eclipse.uml2.uml.internal.impl.NodeImpl#getClientDependencies Client Dependency }
* {@link org.eclipse.uml2.uml.internal.impl.NodeImpl#getDeployedElements Deployed Element }
* {@link org.eclipse.uml2.uml.internal.impl.NodeImpl#getDeployments Deployment }
* {@link org.eclipse.uml2.uml.internal.impl.NodeImpl#getOwnedMembers Owned Member }
* {@link org.eclipse.uml2.uml.internal.impl.NodeImpl#getNestedNodes Nested Node }
*
*
*
* @generated
*/
public class NodeImpl
extends ClassImpl
implements Node {
/**
* The cached value of the '{@link #getDeployments() Deployment }' containment reference list.
*
*
* @see #getDeployments()
* @generated
* @ordered
*/
protected EList deployments;
/**
* The cached value of the '{@link #getNestedNodes() Nested Node }' containment reference list.
*
*
* @see #getNestedNodes()
* @generated
* @ordered
*/
protected EList nestedNodes;
/**
*
*
* @generated
*/
protected NodeImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return UMLPackage.Literals.NODE;
}
/**
*
*
* @generated
*/
@Override
public EList getOwnedElements() {
CacheAdapter cache = getCacheAdapter();
if (cache != null) {
Resource eResource = eResource();
@SuppressWarnings("unchecked")
EList ownedElements = (EList) cache.get(
eResource, this, UMLPackage.Literals.ELEMENT__OWNED_ELEMENT);
if (ownedElements == null) {
cache.put(eResource, this,
UMLPackage.Literals.ELEMENT__OWNED_ELEMENT,
ownedElements = new DerivedUnionEObjectEList(
Element.class, this, UMLPackage.NODE__OWNED_ELEMENT,
OWNED_ELEMENT_ESUBSETS));
}
return ownedElements;
}
return new DerivedUnionEObjectEList(Element.class, this,
UMLPackage.NODE__OWNED_ELEMENT, OWNED_ELEMENT_ESUBSETS);
}
/**
*
*
* @generated
*/
@Override
public EList getClientDependencies() {
if (clientDependencies == null) {
clientDependencies = new SubsetSupersetEObjectWithInverseResolvingEList.ManyInverse(
Dependency.class, this, UMLPackage.NODE__CLIENT_DEPENDENCY,
null, CLIENT_DEPENDENCY_ESUBSETS, UMLPackage.DEPENDENCY__CLIENT);
}
return clientDependencies;
}
/**
*
*
* @generated
*/
public EList getDeployments() {
if (deployments == null) {
deployments = new SubsetSupersetEObjectContainmentWithInverseEList.Resolving(
Deployment.class, this, UMLPackage.NODE__DEPLOYMENT,
DEPLOYMENT_ESUPERSETS, null, UMLPackage.DEPLOYMENT__LOCATION);
}
return deployments;
}
/**
*
*
* @generated
*/
public EList getDeployedElements() {
CacheAdapter cache = getCacheAdapter();
if (cache != null) {
@SuppressWarnings("unchecked")
EList result = (EList) cache
.get(this,
UMLPackage.Literals.DEPLOYMENT_TARGET__DEPLOYED_ELEMENT);
if (result == null) {
cache.put(
this,
UMLPackage.Literals.DEPLOYMENT_TARGET__DEPLOYED_ELEMENT,
result = DeploymentTargetOperations
.getDeployedElements(this));
}
return result;
}
return DeploymentTargetOperations.getDeployedElements(this);
}
/**
*
*
* @generated
*/
public PackageableElement getDeployedElement(String name) {
return getDeployedElement(name, false, null);
}
/**
*
*
* @generated
*/
public PackageableElement getDeployedElement(String name,
boolean ignoreCase, EClass eClass) {
deployedElementLoop : for (PackageableElement deployedElement : getDeployedElements()) {
if (eClass != null && !eClass.isInstance(deployedElement))
continue deployedElementLoop;
if (name != null && !(ignoreCase
? name.equalsIgnoreCase(deployedElement.getName())
: name.equals(deployedElement.getName())))
continue deployedElementLoop;
return deployedElement;
}
return null;
}
/**
*
*
* @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.NODE__OWNED_MEMBER, OWNED_MEMBER_ESUBSETS));
}
return ownedMembers;
}
return new DerivedUnionEObjectEList(NamedElement.class,
this, UMLPackage.NODE__OWNED_MEMBER, OWNED_MEMBER_ESUBSETS);
}
/**
*
*
* @generated
*/
public EList getNestedNodes() {
if (nestedNodes == null) {
nestedNodes = new EObjectContainmentEList.Resolving(
Node.class, this, UMLPackage.NODE__NESTED_NODE);
}
return nestedNodes;
}
/**
*
*
* @generated
*/
public Node createNestedNode(String name, EClass eClass) {
Node newNestedNode = (Node) create(eClass);
getNestedNodes().add(newNestedNode);
if (name != null)
newNestedNode.setName(name);
return newNestedNode;
}
/**
*
*
* @generated
*/
public Node createNestedNode(String name) {
return createNestedNode(name, UMLPackage.Literals.NODE);
}
/**
*
*
* @generated
*/
public Node getNestedNode(String name) {
return getNestedNode(name, false, null, false);
}
/**
*
*
* @generated
*/
public Node getNestedNode(String name, boolean ignoreCase, EClass eClass,
boolean createOnDemand) {
nestedNodeLoop : for (Node nestedNode : getNestedNodes()) {
if (eClass != null && !eClass.isInstance(nestedNode))
continue nestedNodeLoop;
if (name != null && !(ignoreCase
? name.equalsIgnoreCase(nestedNode.getName())
: name.equals(nestedNode.getName())))
continue nestedNodeLoop;
return nestedNode;
}
return createOnDemand && eClass != null
? createNestedNode(name, eClass)
: null;
}
/**
*
*
* @generated
*/
public boolean validateInternalStructure(DiagnosticChain diagnostics,
Map context) {
return NodeOperations.validateInternalStructure(this, diagnostics,
context);
}
/**
*
*
* @generated
*/
public CommunicationPath createCommunicationPath(boolean end1IsNavigable,
AggregationKind end1Aggregation, String end1Name, int end1Lower,
int end1Upper, Node end1Node, boolean end2IsNavigable,
AggregationKind end2Aggregation, String end2Name, int end2Lower,
int end2Upper) {
return NodeOperations.createCommunicationPath(this, end1IsNavigable,
end1Aggregation, end1Name, end1Lower, end1Upper, end1Node,
end2IsNavigable, end2Aggregation, end2Name, end2Lower, end2Upper);
}
/**
*
*
* @generated
*/
public EList getCommunicationPaths() {
CacheAdapter cache = getCacheAdapter();
if (cache != null) {
@SuppressWarnings("unchecked")
EList result = (EList) cache
.get(this, UMLPackage.Literals.NODE___GET_COMMUNICATION_PATHS);
if (result == null) {
cache.put(this,
UMLPackage.Literals.NODE___GET_COMMUNICATION_PATHS,
result = NodeOperations.getCommunicationPaths(this));
}
return result;
}
return NodeOperations.getCommunicationPaths(this);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID, NotificationChain msgs) {
switch (featureID) {
case UMLPackage.NODE__EANNOTATIONS :
return ((InternalEList) (InternalEList>) getEAnnotations())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__CLIENT_DEPENDENCY :
return ((InternalEList) (InternalEList>) getClientDependencies())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__ELEMENT_IMPORT :
return ((InternalEList) (InternalEList>) getElementImports())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__PACKAGE_IMPORT :
return ((InternalEList) (InternalEList>) getPackageImports())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__OWNED_RULE :
return ((InternalEList) (InternalEList>) getOwnedRules())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__OWNING_TEMPLATE_PARAMETER :
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
return basicSetOwningTemplateParameter(
(TemplateParameter) otherEnd, msgs);
case UMLPackage.NODE__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.NODE__OWNED_TEMPLATE_SIGNATURE :
if (ownedTemplateSignature != null)
msgs = ((InternalEObject) ownedTemplateSignature)
.eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- UMLPackage.NODE__OWNED_TEMPLATE_SIGNATURE, null,
msgs);
return basicSetOwnedTemplateSignature(
(TemplateSignature) otherEnd, msgs);
case UMLPackage.NODE__TEMPLATE_BINDING :
return ((InternalEList) (InternalEList>) getTemplateBindings())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__GENERALIZATION :
return ((InternalEList) (InternalEList>) getGeneralizations())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__POWERTYPE_EXTENT :
return ((InternalEList) (InternalEList>) getPowertypeExtents())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__USE_CASE :
return ((InternalEList) (InternalEList>) getUseCases())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__SUBSTITUTION :
return ((InternalEList) (InternalEList>) getSubstitutions())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__INTERFACE_REALIZATION :
return ((InternalEList) (InternalEList>) getInterfaceRealizations())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__OWNED_OPERATION :
return ((InternalEList) (InternalEList>) getOwnedOperations())
.basicAdd(otherEnd, msgs);
case UMLPackage.NODE__DEPLOYMENT :
return ((InternalEList) (InternalEList>) getDeployments())
.basicAdd(otherEnd, msgs);
}
return eDynamicInverseAdd(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID, NotificationChain msgs) {
switch (featureID) {
case UMLPackage.NODE__EANNOTATIONS :
return ((InternalEList>) getEAnnotations()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__OWNED_COMMENT :
return ((InternalEList>) getOwnedComments()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__CLIENT_DEPENDENCY :
return ((InternalEList>) getClientDependencies())
.basicRemove(otherEnd, msgs);
case UMLPackage.NODE__NAME_EXPRESSION :
return basicSetNameExpression(null, msgs);
case UMLPackage.NODE__ELEMENT_IMPORT :
return ((InternalEList>) getElementImports()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__PACKAGE_IMPORT :
return ((InternalEList>) getPackageImports()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__OWNED_RULE :
return ((InternalEList>) getOwnedRules()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__OWNING_TEMPLATE_PARAMETER :
return basicSetOwningTemplateParameter(null, msgs);
case UMLPackage.NODE__TEMPLATE_PARAMETER :
return basicSetTemplateParameter(null, msgs);
case UMLPackage.NODE__OWNED_TEMPLATE_SIGNATURE :
return basicSetOwnedTemplateSignature(null, msgs);
case UMLPackage.NODE__TEMPLATE_BINDING :
return ((InternalEList>) getTemplateBindings()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__COLLABORATION_USE :
return ((InternalEList>) getCollaborationUses()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__GENERALIZATION :
return ((InternalEList>) getGeneralizations()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__POWERTYPE_EXTENT :
return ((InternalEList>) getPowertypeExtents()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__OWNED_USE_CASE :
return ((InternalEList>) getOwnedUseCases()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__USE_CASE :
return ((InternalEList>) getUseCases()).basicRemove(otherEnd,
msgs);
case UMLPackage.NODE__SUBSTITUTION :
return ((InternalEList>) getSubstitutions()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__OWNED_ATTRIBUTE :
return ((InternalEList>) getOwnedAttributes()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__OWNED_CONNECTOR :
return ((InternalEList>) getOwnedConnectors()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__INTERFACE_REALIZATION :
return ((InternalEList>) getInterfaceRealizations())
.basicRemove(otherEnd, msgs);
case UMLPackage.NODE__OWNED_BEHAVIOR :
return ((InternalEList>) getOwnedBehaviors()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__OWNED_OPERATION :
return ((InternalEList>) getOwnedOperations()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__NESTED_CLASSIFIER :
return ((InternalEList>) getNestedClassifiers()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__OWNED_RECEPTION :
return ((InternalEList>) getOwnedReceptions()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__DEPLOYMENT :
return ((InternalEList>) getDeployments()).basicRemove(
otherEnd, msgs);
case UMLPackage.NODE__NESTED_NODE :
return ((InternalEList>) getNestedNodes()).basicRemove(
otherEnd, msgs);
}
return eDynamicInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case UMLPackage.NODE__EANNOTATIONS :
return getEAnnotations();
case UMLPackage.NODE__OWNED_COMMENT :
return getOwnedComments();
case UMLPackage.NODE__OWNED_ELEMENT :
return getOwnedElements();
case UMLPackage.NODE__OWNER :
if (resolve)
return getOwner();
return basicGetOwner();
case UMLPackage.NODE__CLIENT_DEPENDENCY :
return getClientDependencies();
case UMLPackage.NODE__NAME :
return getName();
case UMLPackage.NODE__NAME_EXPRESSION :
if (resolve)
return getNameExpression();
return basicGetNameExpression();
case UMLPackage.NODE__NAMESPACE :
if (resolve)
return getNamespace();
return basicGetNamespace();
case UMLPackage.NODE__QUALIFIED_NAME :
return getQualifiedName();
case UMLPackage.NODE__VISIBILITY :
return getVisibility();
case UMLPackage.NODE__ELEMENT_IMPORT :
return getElementImports();
case UMLPackage.NODE__PACKAGE_IMPORT :
return getPackageImports();
case UMLPackage.NODE__OWNED_RULE :
return getOwnedRules();
case UMLPackage.NODE__OWNED_MEMBER :
return getOwnedMembers();
case UMLPackage.NODE__IMPORTED_MEMBER :
return getImportedMembers();
case UMLPackage.NODE__MEMBER :
return getMembers();
case UMLPackage.NODE__IS_LEAF :
return isLeaf();
case UMLPackage.NODE__REDEFINED_ELEMENT :
return getRedefinedElements();
case UMLPackage.NODE__REDEFINITION_CONTEXT :
return getRedefinitionContexts();
case UMLPackage.NODE__OWNING_TEMPLATE_PARAMETER :
if (resolve)
return getOwningTemplateParameter();
return basicGetOwningTemplateParameter();
case UMLPackage.NODE__TEMPLATE_PARAMETER :
if (resolve)
return getTemplateParameter();
return basicGetTemplateParameter();
case UMLPackage.NODE__PACKAGE :
if (resolve)
return getPackage();
return basicGetPackage();
case UMLPackage.NODE__OWNED_TEMPLATE_SIGNATURE :
if (resolve)
return getOwnedTemplateSignature();
return basicGetOwnedTemplateSignature();
case UMLPackage.NODE__TEMPLATE_BINDING :
return getTemplateBindings();
case UMLPackage.NODE__FEATURE :
return getFeatures();
case UMLPackage.NODE__ATTRIBUTE :
return getAttributes();
case UMLPackage.NODE__COLLABORATION_USE :
return getCollaborationUses();
case UMLPackage.NODE__GENERAL :
return getGenerals();
case UMLPackage.NODE__GENERALIZATION :
return getGeneralizations();
case UMLPackage.NODE__POWERTYPE_EXTENT :
return getPowertypeExtents();
case UMLPackage.NODE__INHERITED_MEMBER :
return getInheritedMembers();
case UMLPackage.NODE__IS_ABSTRACT :
return isAbstract();
case UMLPackage.NODE__IS_FINAL_SPECIALIZATION :
return isFinalSpecialization();
case UMLPackage.NODE__OWNED_USE_CASE :
return getOwnedUseCases();
case UMLPackage.NODE__USE_CASE :
return getUseCases();
case UMLPackage.NODE__REDEFINED_CLASSIFIER :
return getRedefinedClassifiers();
case UMLPackage.NODE__REPRESENTATION :
if (resolve)
return getRepresentation();
return basicGetRepresentation();
case UMLPackage.NODE__SUBSTITUTION :
return getSubstitutions();
case UMLPackage.NODE__OWNED_ATTRIBUTE :
return getOwnedAttributes();
case UMLPackage.NODE__OWNED_CONNECTOR :
return getOwnedConnectors();
case UMLPackage.NODE__PART :
return getParts();
case UMLPackage.NODE__ROLE :
return getRoles();
case UMLPackage.NODE__OWNED_PORT :
return getOwnedPorts();
case UMLPackage.NODE__CLASSIFIER_BEHAVIOR :
if (resolve)
return getClassifierBehavior();
return basicGetClassifierBehavior();
case UMLPackage.NODE__INTERFACE_REALIZATION :
return getInterfaceRealizations();
case UMLPackage.NODE__OWNED_BEHAVIOR :
return getOwnedBehaviors();
case UMLPackage.NODE__OWNED_OPERATION :
return getOwnedOperations();
case UMLPackage.NODE__EXTENSION :
return getExtensions();
case UMLPackage.NODE__IS_ACTIVE :
return isActive();
case UMLPackage.NODE__NESTED_CLASSIFIER :
return getNestedClassifiers();
case UMLPackage.NODE__OWNED_RECEPTION :
return getOwnedReceptions();
case UMLPackage.NODE__SUPER_CLASS :
return getSuperClasses();
case UMLPackage.NODE__DEPLOYED_ELEMENT :
return getDeployedElements();
case UMLPackage.NODE__DEPLOYMENT :
return getDeployments();
case UMLPackage.NODE__NESTED_NODE :
return getNestedNodes();
}
return eDynamicGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case UMLPackage.NODE__EANNOTATIONS :
getEAnnotations().clear();
getEAnnotations().addAll(
(Collection extends EAnnotation>) newValue);
return;
case UMLPackage.NODE__OWNED_COMMENT :
getOwnedComments().clear();
getOwnedComments().addAll(
(Collection extends Comment>) newValue);
return;
case UMLPackage.NODE__CLIENT_DEPENDENCY :
getClientDependencies().clear();
getClientDependencies().addAll(
(Collection extends Dependency>) newValue);
return;
case UMLPackage.NODE__NAME :
setName((String) newValue);
return;
case UMLPackage.NODE__NAME_EXPRESSION :
setNameExpression((StringExpression) newValue);
return;
case UMLPackage.NODE__VISIBILITY :
setVisibility((VisibilityKind) newValue);
return;
case UMLPackage.NODE__ELEMENT_IMPORT :
getElementImports().clear();
getElementImports().addAll(
(Collection extends ElementImport>) newValue);
return;
case UMLPackage.NODE__PACKAGE_IMPORT :
getPackageImports().clear();
getPackageImports().addAll(
(Collection extends PackageImport>) newValue);
return;
case UMLPackage.NODE__OWNED_RULE :
getOwnedRules().clear();
getOwnedRules().addAll(
(Collection extends Constraint>) newValue);
return;
case UMLPackage.NODE__IS_LEAF :
setIsLeaf((Boolean) newValue);
return;
case UMLPackage.NODE__OWNING_TEMPLATE_PARAMETER :
setOwningTemplateParameter((TemplateParameter) newValue);
return;
case UMLPackage.NODE__TEMPLATE_PARAMETER :
setTemplateParameter((TemplateParameter) newValue);
return;
case UMLPackage.NODE__PACKAGE :
setPackage((org.eclipse.uml2.uml.Package) newValue);
return;
case UMLPackage.NODE__OWNED_TEMPLATE_SIGNATURE :
setOwnedTemplateSignature((TemplateSignature) newValue);
return;
case UMLPackage.NODE__TEMPLATE_BINDING :
getTemplateBindings().clear();
getTemplateBindings().addAll(
(Collection extends TemplateBinding>) newValue);
return;
case UMLPackage.NODE__COLLABORATION_USE :
getCollaborationUses().clear();
getCollaborationUses().addAll(
(Collection extends CollaborationUse>) newValue);
return;
case UMLPackage.NODE__GENERAL :
getGenerals().clear();
getGenerals().addAll(
(Collection extends Classifier>) newValue);
return;
case UMLPackage.NODE__GENERALIZATION :
getGeneralizations().clear();
getGeneralizations().addAll(
(Collection extends Generalization>) newValue);
return;
case UMLPackage.NODE__POWERTYPE_EXTENT :
getPowertypeExtents().clear();
getPowertypeExtents().addAll(
(Collection extends GeneralizationSet>) newValue);
return;
case UMLPackage.NODE__IS_ABSTRACT :
setIsAbstract((Boolean) newValue);
return;
case UMLPackage.NODE__IS_FINAL_SPECIALIZATION :
setIsFinalSpecialization((Boolean) newValue);
return;
case UMLPackage.NODE__OWNED_USE_CASE :
getOwnedUseCases().clear();
getOwnedUseCases().addAll(
(Collection extends UseCase>) newValue);
return;
case UMLPackage.NODE__USE_CASE :
getUseCases().clear();
getUseCases().addAll((Collection extends UseCase>) newValue);
return;
case UMLPackage.NODE__REDEFINED_CLASSIFIER :
getRedefinedClassifiers().clear();
getRedefinedClassifiers().addAll(
(Collection extends Classifier>) newValue);
return;
case UMLPackage.NODE__REPRESENTATION :
setRepresentation((CollaborationUse) newValue);
return;
case UMLPackage.NODE__SUBSTITUTION :
getSubstitutions().clear();
getSubstitutions().addAll(
(Collection extends Substitution>) newValue);
return;
case UMLPackage.NODE__OWNED_ATTRIBUTE :
getOwnedAttributes().clear();
getOwnedAttributes().addAll(
(Collection extends Property>) newValue);
return;
case UMLPackage.NODE__OWNED_CONNECTOR :
getOwnedConnectors().clear();
getOwnedConnectors().addAll(
(Collection extends Connector>) newValue);
return;
case UMLPackage.NODE__CLASSIFIER_BEHAVIOR :
setClassifierBehavior((Behavior) newValue);
return;
case UMLPackage.NODE__INTERFACE_REALIZATION :
getInterfaceRealizations().clear();
getInterfaceRealizations().addAll(
(Collection extends InterfaceRealization>) newValue);
return;
case UMLPackage.NODE__OWNED_BEHAVIOR :
getOwnedBehaviors().clear();
getOwnedBehaviors().addAll(
(Collection extends Behavior>) newValue);
return;
case UMLPackage.NODE__OWNED_OPERATION :
getOwnedOperations().clear();
getOwnedOperations().addAll(
(Collection extends Operation>) newValue);
return;
case UMLPackage.NODE__IS_ACTIVE :
setIsActive((Boolean) newValue);
return;
case UMLPackage.NODE__NESTED_CLASSIFIER :
getNestedClassifiers().clear();
getNestedClassifiers().addAll(
(Collection extends Classifier>) newValue);
return;
case UMLPackage.NODE__OWNED_RECEPTION :
getOwnedReceptions().clear();
getOwnedReceptions().addAll(
(Collection extends Reception>) newValue);
return;
case UMLPackage.NODE__SUPER_CLASS :
getSuperClasses().clear();
getSuperClasses()
.addAll(
(Collection extends org.eclipse.uml2.uml.Class>) newValue);
return;
case UMLPackage.NODE__DEPLOYMENT :
getDeployments().clear();
getDeployments().addAll(
(Collection extends Deployment>) newValue);
return;
case UMLPackage.NODE__NESTED_NODE :
getNestedNodes().clear();
getNestedNodes().addAll((Collection extends Node>) newValue);
return;
}
eDynamicSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case UMLPackage.NODE__EANNOTATIONS :
getEAnnotations().clear();
return;
case UMLPackage.NODE__OWNED_COMMENT :
getOwnedComments().clear();
return;
case UMLPackage.NODE__CLIENT_DEPENDENCY :
getClientDependencies().clear();
return;
case UMLPackage.NODE__NAME :
unsetName();
return;
case UMLPackage.NODE__NAME_EXPRESSION :
setNameExpression((StringExpression) null);
return;
case UMLPackage.NODE__VISIBILITY :
unsetVisibility();
return;
case UMLPackage.NODE__ELEMENT_IMPORT :
getElementImports().clear();
return;
case UMLPackage.NODE__PACKAGE_IMPORT :
getPackageImports().clear();
return;
case UMLPackage.NODE__OWNED_RULE :
getOwnedRules().clear();
return;
case UMLPackage.NODE__IS_LEAF :
setIsLeaf(IS_LEAF_EDEFAULT);
return;
case UMLPackage.NODE__OWNING_TEMPLATE_PARAMETER :
setOwningTemplateParameter((TemplateParameter) null);
return;
case UMLPackage.NODE__TEMPLATE_PARAMETER :
setTemplateParameter((TemplateParameter) null);
return;
case UMLPackage.NODE__PACKAGE :
setPackage((org.eclipse.uml2.uml.Package) null);
return;
case UMLPackage.NODE__OWNED_TEMPLATE_SIGNATURE :
setOwnedTemplateSignature((TemplateSignature) null);
return;
case UMLPackage.NODE__TEMPLATE_BINDING :
getTemplateBindings().clear();
return;
case UMLPackage.NODE__COLLABORATION_USE :
getCollaborationUses().clear();
return;
case UMLPackage.NODE__GENERAL :
getGenerals().clear();
return;
case UMLPackage.NODE__GENERALIZATION :
getGeneralizations().clear();
return;
case UMLPackage.NODE__POWERTYPE_EXTENT :
getPowertypeExtents().clear();
return;
case UMLPackage.NODE__IS_ABSTRACT :
setIsAbstract(IS_ABSTRACT_EDEFAULT);
return;
case UMLPackage.NODE__IS_FINAL_SPECIALIZATION :
setIsFinalSpecialization(IS_FINAL_SPECIALIZATION_EDEFAULT);
return;
case UMLPackage.NODE__OWNED_USE_CASE :
getOwnedUseCases().clear();
return;
case UMLPackage.NODE__USE_CASE :
getUseCases().clear();
return;
case UMLPackage.NODE__REDEFINED_CLASSIFIER :
getRedefinedClassifiers().clear();
return;
case UMLPackage.NODE__REPRESENTATION :
setRepresentation((CollaborationUse) null);
return;
case UMLPackage.NODE__SUBSTITUTION :
getSubstitutions().clear();
return;
case UMLPackage.NODE__OWNED_ATTRIBUTE :
getOwnedAttributes().clear();
return;
case UMLPackage.NODE__OWNED_CONNECTOR :
getOwnedConnectors().clear();
return;
case UMLPackage.NODE__CLASSIFIER_BEHAVIOR :
setClassifierBehavior((Behavior) null);
return;
case UMLPackage.NODE__INTERFACE_REALIZATION :
getInterfaceRealizations().clear();
return;
case UMLPackage.NODE__OWNED_BEHAVIOR :
getOwnedBehaviors().clear();
return;
case UMLPackage.NODE__OWNED_OPERATION :
getOwnedOperations().clear();
return;
case UMLPackage.NODE__IS_ACTIVE :
setIsActive(IS_ACTIVE_EDEFAULT);
return;
case UMLPackage.NODE__NESTED_CLASSIFIER :
getNestedClassifiers().clear();
return;
case UMLPackage.NODE__OWNED_RECEPTION :
getOwnedReceptions().clear();
return;
case UMLPackage.NODE__SUPER_CLASS :
getSuperClasses().clear();
return;
case UMLPackage.NODE__DEPLOYMENT :
getDeployments().clear();
return;
case UMLPackage.NODE__NESTED_NODE :
getNestedNodes().clear();
return;
}
eDynamicUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case UMLPackage.NODE__EANNOTATIONS :
return eAnnotations != null && !eAnnotations.isEmpty();
case UMLPackage.NODE__OWNED_COMMENT :
return ownedComments != null && !ownedComments.isEmpty();
case UMLPackage.NODE__OWNED_ELEMENT :
return isSetOwnedElements();
case UMLPackage.NODE__OWNER :
return isSetOwner();
case UMLPackage.NODE__CLIENT_DEPENDENCY :
return clientDependencies != null
&& !clientDependencies.isEmpty();
case UMLPackage.NODE__NAME :
return isSetName();
case UMLPackage.NODE__NAME_EXPRESSION :
return nameExpression != null;
case UMLPackage.NODE__NAMESPACE :
return isSetNamespace();
case UMLPackage.NODE__QUALIFIED_NAME :
return QUALIFIED_NAME_EDEFAULT == null
? getQualifiedName() != null
: !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName());
case UMLPackage.NODE__VISIBILITY :
return isSetVisibility();
case UMLPackage.NODE__ELEMENT_IMPORT :
return elementImports != null && !elementImports.isEmpty();
case UMLPackage.NODE__PACKAGE_IMPORT :
return packageImports != null && !packageImports.isEmpty();
case UMLPackage.NODE__OWNED_RULE :
return ownedRules != null && !ownedRules.isEmpty();
case UMLPackage.NODE__OWNED_MEMBER :
return isSetOwnedMembers();
case UMLPackage.NODE__IMPORTED_MEMBER :
return !getImportedMembers().isEmpty();
case UMLPackage.NODE__MEMBER :
return isSetMembers();
case UMLPackage.NODE__IS_LEAF :
return ((eFlags & IS_LEAF_EFLAG) != 0) != IS_LEAF_EDEFAULT;
case UMLPackage.NODE__REDEFINED_ELEMENT :
return isSetRedefinedElements();
case UMLPackage.NODE__REDEFINITION_CONTEXT :
return isSetRedefinitionContexts();
case UMLPackage.NODE__OWNING_TEMPLATE_PARAMETER :
return basicGetOwningTemplateParameter() != null;
case UMLPackage.NODE__TEMPLATE_PARAMETER :
return isSetTemplateParameter();
case UMLPackage.NODE__PACKAGE :
return basicGetPackage() != null;
case UMLPackage.NODE__OWNED_TEMPLATE_SIGNATURE :
return isSetOwnedTemplateSignature();
case UMLPackage.NODE__TEMPLATE_BINDING :
return templateBindings != null && !templateBindings.isEmpty();
case UMLPackage.NODE__FEATURE :
return isSetFeatures();
case UMLPackage.NODE__ATTRIBUTE :
return isSetAttributes();
case UMLPackage.NODE__COLLABORATION_USE :
return collaborationUses != null
&& !collaborationUses.isEmpty();
case UMLPackage.NODE__GENERAL :
return isSetGenerals();
case UMLPackage.NODE__GENERALIZATION :
return generalizations != null && !generalizations.isEmpty();
case UMLPackage.NODE__POWERTYPE_EXTENT :
return powertypeExtents != null && !powertypeExtents.isEmpty();
case UMLPackage.NODE__INHERITED_MEMBER :
return !getInheritedMembers().isEmpty();
case UMLPackage.NODE__IS_ABSTRACT :
return isSetIsAbstract();
case UMLPackage.NODE__IS_FINAL_SPECIALIZATION :
return ((eFlags & IS_FINAL_SPECIALIZATION_EFLAG) != 0) != IS_FINAL_SPECIALIZATION_EDEFAULT;
case UMLPackage.NODE__OWNED_USE_CASE :
return ownedUseCases != null && !ownedUseCases.isEmpty();
case UMLPackage.NODE__USE_CASE :
return useCases != null && !useCases.isEmpty();
case UMLPackage.NODE__REDEFINED_CLASSIFIER :
return redefinedClassifiers != null
&& !redefinedClassifiers.isEmpty();
case UMLPackage.NODE__REPRESENTATION :
return representation != null;
case UMLPackage.NODE__SUBSTITUTION :
return substitutions != null && !substitutions.isEmpty();
case UMLPackage.NODE__OWNED_ATTRIBUTE :
return isSetOwnedAttributes();
case UMLPackage.NODE__OWNED_CONNECTOR :
return ownedConnectors != null && !ownedConnectors.isEmpty();
case UMLPackage.NODE__PART :
return !getParts().isEmpty();
case UMLPackage.NODE__ROLE :
return isSetRoles();
case UMLPackage.NODE__OWNED_PORT :
return !getOwnedPorts().isEmpty();
case UMLPackage.NODE__CLASSIFIER_BEHAVIOR :
return classifierBehavior != null;
case UMLPackage.NODE__INTERFACE_REALIZATION :
return interfaceRealizations != null
&& !interfaceRealizations.isEmpty();
case UMLPackage.NODE__OWNED_BEHAVIOR :
return ownedBehaviors != null && !ownedBehaviors.isEmpty();
case UMLPackage.NODE__OWNED_OPERATION :
return ownedOperations != null && !ownedOperations.isEmpty();
case UMLPackage.NODE__EXTENSION :
return !getExtensions().isEmpty();
case UMLPackage.NODE__IS_ACTIVE :
return ((eFlags & IS_ACTIVE_EFLAG) != 0) != IS_ACTIVE_EDEFAULT;
case UMLPackage.NODE__NESTED_CLASSIFIER :
return nestedClassifiers != null
&& !nestedClassifiers.isEmpty();
case UMLPackage.NODE__OWNED_RECEPTION :
return ownedReceptions != null && !ownedReceptions.isEmpty();
case UMLPackage.NODE__SUPER_CLASS :
return isSetSuperClasses();
case UMLPackage.NODE__DEPLOYED_ELEMENT :
return !getDeployedElements().isEmpty();
case UMLPackage.NODE__DEPLOYMENT :
return deployments != null && !deployments.isEmpty();
case UMLPackage.NODE__NESTED_NODE :
return nestedNodes != null && !nestedNodes.isEmpty();
}
return eDynamicIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class> baseClass) {
if (baseClass == DeploymentTarget.class) {
switch (derivedFeatureID) {
case UMLPackage.NODE__DEPLOYED_ELEMENT :
return UMLPackage.DEPLOYMENT_TARGET__DEPLOYED_ELEMENT;
case UMLPackage.NODE__DEPLOYMENT :
return UMLPackage.DEPLOYMENT_TARGET__DEPLOYMENT;
default :
return -1;
}
}
return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
}
/**
*
*
* @generated
*/
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class> baseClass) {
if (baseClass == DeploymentTarget.class) {
switch (baseFeatureID) {
case UMLPackage.DEPLOYMENT_TARGET__DEPLOYED_ELEMENT :
return UMLPackage.NODE__DEPLOYED_ELEMENT;
case UMLPackage.DEPLOYMENT_TARGET__DEPLOYMENT :
return UMLPackage.NODE__DEPLOYMENT;
default :
return -1;
}
}
return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
}
/**
*
*
* @generated
*/
@Override
@SuppressWarnings("unchecked")
public Object eInvoke(int operationID, EList> arguments)
throws InvocationTargetException {
switch (operationID) {
case UMLPackage.NODE___GET_EANNOTATION__STRING :
return getEAnnotation((String) arguments.get(0));
case UMLPackage.NODE___VALIDATE_HAS_OWNER__DIAGNOSTICCHAIN_MAP :
return validateHasOwner((DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___VALIDATE_NOT_OWN_SELF__DIAGNOSTICCHAIN_MAP :
return validateNotOwnSelf((DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___ADD_KEYWORD__STRING :
return addKeyword((String) arguments.get(0));
case UMLPackage.NODE___APPLY_STEREOTYPE__STEREOTYPE :
return applyStereotype((Stereotype) arguments.get(0));
case UMLPackage.NODE___CREATE_EANNOTATION__STRING :
return createEAnnotation((String) arguments.get(0));
case UMLPackage.NODE___DESTROY :
destroy();
return null;
case UMLPackage.NODE___GET_KEYWORDS :
return getKeywords();
case UMLPackage.NODE___GET_APPLICABLE_STEREOTYPE__STRING :
return getApplicableStereotype((String) arguments.get(0));
case UMLPackage.NODE___GET_APPLICABLE_STEREOTYPES :
return getApplicableStereotypes();
case UMLPackage.NODE___GET_APPLIED_STEREOTYPE__STRING :
return getAppliedStereotype((String) arguments.get(0));
case UMLPackage.NODE___GET_APPLIED_STEREOTYPES :
return getAppliedStereotypes();
case UMLPackage.NODE___GET_APPLIED_SUBSTEREOTYPE__STEREOTYPE_STRING :
return getAppliedSubstereotype((Stereotype) arguments.get(0),
(String) arguments.get(1));
case UMLPackage.NODE___GET_APPLIED_SUBSTEREOTYPES__STEREOTYPE :
return getAppliedSubstereotypes((Stereotype) arguments.get(0));
case UMLPackage.NODE___GET_MODEL :
return getModel();
case UMLPackage.NODE___GET_NEAREST_PACKAGE :
return getNearestPackage();
case UMLPackage.NODE___GET_RELATIONSHIPS :
return getRelationships();
case UMLPackage.NODE___GET_RELATIONSHIPS__ECLASS :
return getRelationships((EClass) arguments.get(0));
case UMLPackage.NODE___GET_REQUIRED_STEREOTYPE__STRING :
return getRequiredStereotype((String) arguments.get(0));
case UMLPackage.NODE___GET_REQUIRED_STEREOTYPES :
return getRequiredStereotypes();
case UMLPackage.NODE___GET_SOURCE_DIRECTED_RELATIONSHIPS :
return getSourceDirectedRelationships();
case UMLPackage.NODE___GET_SOURCE_DIRECTED_RELATIONSHIPS__ECLASS :
return getSourceDirectedRelationships((EClass) arguments.get(0));
case UMLPackage.NODE___GET_STEREOTYPE_APPLICATION__STEREOTYPE :
return getStereotypeApplication((Stereotype) arguments.get(0));
case UMLPackage.NODE___GET_STEREOTYPE_APPLICATIONS :
return getStereotypeApplications();
case UMLPackage.NODE___GET_TARGET_DIRECTED_RELATIONSHIPS :
return getTargetDirectedRelationships();
case UMLPackage.NODE___GET_TARGET_DIRECTED_RELATIONSHIPS__ECLASS :
return getTargetDirectedRelationships((EClass) arguments.get(0));
case UMLPackage.NODE___GET_VALUE__STEREOTYPE_STRING :
return getValue((Stereotype) arguments.get(0),
(String) arguments.get(1));
case UMLPackage.NODE___HAS_KEYWORD__STRING :
return hasKeyword((String) arguments.get(0));
case UMLPackage.NODE___HAS_VALUE__STEREOTYPE_STRING :
return hasValue((Stereotype) arguments.get(0),
(String) arguments.get(1));
case UMLPackage.NODE___IS_STEREOTYPE_APPLICABLE__STEREOTYPE :
return isStereotypeApplicable((Stereotype) arguments.get(0));
case UMLPackage.NODE___IS_STEREOTYPE_APPLIED__STEREOTYPE :
return isStereotypeApplied((Stereotype) arguments.get(0));
case UMLPackage.NODE___IS_STEREOTYPE_REQUIRED__STEREOTYPE :
return isStereotypeRequired((Stereotype) arguments.get(0));
case UMLPackage.NODE___REMOVE_KEYWORD__STRING :
return removeKeyword((String) arguments.get(0));
case UMLPackage.NODE___SET_VALUE__STEREOTYPE_STRING_OBJECT :
setValue((Stereotype) arguments.get(0),
(String) arguments.get(1), arguments.get(2));
return null;
case UMLPackage.NODE___UNAPPLY_STEREOTYPE__STEREOTYPE :
return unapplyStereotype((Stereotype) arguments.get(0));
case UMLPackage.NODE___ALL_OWNED_ELEMENTS :
return allOwnedElements();
case UMLPackage.NODE___MUST_BE_OWNED :
return mustBeOwned();
case UMLPackage.NODE___VALIDATE_HAS_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP :
return validateHasQualifiedName(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___VALIDATE_HAS_NO_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP :
return validateHasNoQualifiedName(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___VALIDATE_VISIBILITY_NEEDS_OWNERSHIP__DIAGNOSTICCHAIN_MAP :
return validateVisibilityNeedsOwnership(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___CREATE_DEPENDENCY__NAMEDELEMENT :
return createDependency((NamedElement) arguments.get(0));
case UMLPackage.NODE___CREATE_USAGE__NAMEDELEMENT :
return createUsage((NamedElement) arguments.get(0));
case UMLPackage.NODE___GET_LABEL :
return getLabel();
case UMLPackage.NODE___GET_LABEL__BOOLEAN :
return getLabel((Boolean) arguments.get(0));
case UMLPackage.NODE___ALL_NAMESPACES :
return allNamespaces();
case UMLPackage.NODE___ALL_OWNING_PACKAGES :
return allOwningPackages();
case UMLPackage.NODE___IS_DISTINGUISHABLE_FROM__NAMEDELEMENT_NAMESPACE :
return isDistinguishableFrom((NamedElement) arguments.get(0),
(Namespace) arguments.get(1));
case UMLPackage.NODE___GET_NAMESPACE :
return getNamespace();
case UMLPackage.NODE___GET_QUALIFIED_NAME :
return getQualifiedName();
case UMLPackage.NODE___SEPARATOR :
return separator();
case UMLPackage.NODE___VALIDATE_MEMBERS_DISTINGUISHABLE__DIAGNOSTICCHAIN_MAP :
return validateMembersDistinguishable(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___CREATE_ELEMENT_IMPORT__PACKAGEABLEELEMENT_VISIBILITYKIND :
return createElementImport(
(PackageableElement) arguments.get(0),
(VisibilityKind) arguments.get(1));
case UMLPackage.NODE___CREATE_PACKAGE_IMPORT__PACKAGE_VISIBILITYKIND :
return createPackageImport(
(org.eclipse.uml2.uml.Package) arguments.get(0),
(VisibilityKind) arguments.get(1));
case UMLPackage.NODE___GET_IMPORTED_ELEMENTS :
return getImportedElements();
case UMLPackage.NODE___GET_IMPORTED_PACKAGES :
return getImportedPackages();
case UMLPackage.NODE___EXCLUDE_COLLISIONS__ELIST :
return excludeCollisions((EList) arguments
.get(0));
case UMLPackage.NODE___GET_NAMES_OF_MEMBER__NAMEDELEMENT :
return getNamesOfMember((NamedElement) arguments.get(0));
case UMLPackage.NODE___IMPORT_MEMBERS__ELIST :
return importMembers((EList) arguments
.get(0));
case UMLPackage.NODE___GET_IMPORTED_MEMBERS :
return getImportedMembers();
case UMLPackage.NODE___MEMBERS_ARE_DISTINGUISHABLE :
return membersAreDistinguishable();
case UMLPackage.NODE___GET_OWNED_MEMBERS :
return getOwnedMembers();
case UMLPackage.NODE___VALIDATE_REDEFINITION_CONSISTENT__DIAGNOSTICCHAIN_MAP :
return validateRedefinitionConsistent(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___VALIDATE_NON_LEAF_REDEFINITION__DIAGNOSTICCHAIN_MAP :
return validateNonLeafRedefinition(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___VALIDATE_REDEFINITION_CONTEXT_VALID__DIAGNOSTICCHAIN_MAP :
return validateRedefinitionContextValid(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___IS_CONSISTENT_WITH__REDEFINABLEELEMENT :
return isConsistentWith((RedefinableElement) arguments.get(0));
case UMLPackage.NODE___IS_REDEFINITION_CONTEXT_VALID__REDEFINABLEELEMENT :
return isRedefinitionContextValid((RedefinableElement) arguments
.get(0));
case UMLPackage.NODE___IS_COMPATIBLE_WITH__PARAMETERABLEELEMENT :
return isCompatibleWith((ParameterableElement) arguments.get(0));
case UMLPackage.NODE___IS_TEMPLATE_PARAMETER :
return isTemplateParameter();
case UMLPackage.NODE___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.NODE___GET_ASSOCIATIONS :
return getAssociations();
case UMLPackage.NODE___CONFORMS_TO__TYPE :
return conformsTo((Type) arguments.get(0));
case UMLPackage.NODE___IS_TEMPLATE :
return isTemplate();
case UMLPackage.NODE___PARAMETERABLE_ELEMENTS :
return parameterableElements();
case UMLPackage.NODE___VALIDATE_NON_FINAL_PARENTS__DIAGNOSTICCHAIN_MAP :
return validateNonFinalParents(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___VALIDATE_NO_CYCLES_IN_GENERALIZATION__DIAGNOSTICCHAIN_MAP :
return validateNoCyclesInGeneralization(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___VALIDATE_SPECIALIZE_TYPE__DIAGNOSTICCHAIN_MAP :
return validateSpecializeType(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___VALIDATE_MAPS_TO_GENERALIZATION_SET__DIAGNOSTICCHAIN_MAP :
return validateMapsToGeneralizationSet(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___GET_ALL_ATTRIBUTES :
return getAllAttributes();
case UMLPackage.NODE___GET_ALL_OPERATIONS :
return getAllOperations();
case UMLPackage.NODE___GET_ALL_USED_INTERFACES :
return getAllUsedInterfaces();
case UMLPackage.NODE___GET_OPERATION__STRING_ELIST_ELIST :
return getOperation((String) arguments.get(0),
(EList) arguments.get(1),
(EList) arguments.get(2));
case UMLPackage.NODE___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.NODE___GET_OPERATIONS :
return getOperations();
case UMLPackage.NODE___GET_USED_INTERFACES :
return getUsedInterfaces();
case UMLPackage.NODE___ALL_FEATURES :
return allFeatures();
case UMLPackage.NODE___ALL_PARENTS :
return allParents();
case UMLPackage.NODE___CONFORMS_TO__CLASSIFIER :
return conformsTo((Classifier) arguments.get(0));
case UMLPackage.NODE___GET_GENERALS :
return getGenerals();
case UMLPackage.NODE___HAS_VISIBILITY_OF__NAMEDELEMENT :
return hasVisibilityOf((NamedElement) arguments.get(0));
case UMLPackage.NODE___INHERIT__ELIST :
return inherit((EList) arguments.get(0));
case UMLPackage.NODE___INHERITABLE_MEMBERS__CLASSIFIER :
return inheritableMembers((Classifier) arguments.get(0));
case UMLPackage.NODE___GET_INHERITED_MEMBERS :
return getInheritedMembers();
case UMLPackage.NODE___MAY_SPECIALIZE_TYPE__CLASSIFIER :
return maySpecializeType((Classifier) arguments.get(0));
case UMLPackage.NODE___PARENTS :
return parents();
case UMLPackage.NODE___VALIDATE_MULTIPLICITIES__DIAGNOSTICCHAIN_MAP :
return validateMultiplicities(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___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.NODE___GET_PARTS :
return getParts();
case UMLPackage.NODE___GET_OWNED_PORTS :
return getOwnedPorts();
case UMLPackage.NODE___VALIDATE_CLASS_BEHAVIOR__DIAGNOSTICCHAIN_MAP :
return validateClassBehavior(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___GET_ALL_IMPLEMENTED_INTERFACES :
return getAllImplementedInterfaces();
case UMLPackage.NODE___GET_IMPLEMENTED_INTERFACES :
return getImplementedInterfaces();
case UMLPackage.NODE___VALIDATE_PASSIVE_CLASS__DIAGNOSTICCHAIN_MAP :
return validatePassiveClass((DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___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.NODE___IS_METACLASS :
return isMetaclass();
case UMLPackage.NODE___GET_EXTENSIONS :
return getExtensions();
case UMLPackage.NODE___GET_SUPER_CLASSES :
return getSuperClasses();
case UMLPackage.NODE___GET_DEPLOYED_ELEMENTS :
return getDeployedElements();
case UMLPackage.NODE___VALIDATE_INTERNAL_STRUCTURE__DIAGNOSTICCHAIN_MAP :
return validateInternalStructure(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.NODE___CREATE_COMMUNICATION_PATH__BOOLEAN_AGGREGATIONKIND_STRING_INT_INT_NODE_BOOLEAN_AGGREGATIONKIND_STRING_INT_INT :
return createCommunicationPath((Boolean) arguments.get(0),
(AggregationKind) arguments.get(1),
(String) arguments.get(2), (Integer) arguments.get(3),
(Integer) arguments.get(4), (Node) 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.NODE___GET_COMMUNICATION_PATHS :
return getCommunicationPaths();
}
return eDynamicInvoke(operationID, arguments);
}
/**
* The array of subset feature identifiers for the '{@link #getOwnedElements() Owned Element }' reference list.
*
*
* @see #getOwnedElements()
* @generated
* @ordered
*/
protected static final int[] OWNED_ELEMENT_ESUBSETS = new int[]{
UMLPackage.NODE__OWNED_COMMENT, UMLPackage.NODE__NAME_EXPRESSION,
UMLPackage.NODE__ELEMENT_IMPORT, UMLPackage.NODE__PACKAGE_IMPORT,
UMLPackage.NODE__OWNED_MEMBER,
UMLPackage.NODE__OWNED_TEMPLATE_SIGNATURE,
UMLPackage.NODE__TEMPLATE_BINDING, UMLPackage.NODE__COLLABORATION_USE,
UMLPackage.NODE__GENERALIZATION, UMLPackage.NODE__SUBSTITUTION,
UMLPackage.NODE__INTERFACE_REALIZATION, UMLPackage.NODE__DEPLOYMENT};
/**
* The array of subset feature identifiers for the '{@link #getClientDependencies() Client Dependency }' reference list.
*
*
* @see #getClientDependencies()
* @generated
* @ordered
*/
protected static final int[] CLIENT_DEPENDENCY_ESUBSETS = new int[]{
UMLPackage.NODE__SUBSTITUTION, UMLPackage.NODE__INTERFACE_REALIZATION,
UMLPackage.NODE__DEPLOYMENT};
/**
* The array of superset feature identifiers for the '{@link #getDeployments() Deployment }' containment reference list.
*
*
* @see #getDeployments()
* @generated
* @ordered
*/
protected static final int[] DEPLOYMENT_ESUPERSETS = new int[]{UMLPackage.NODE__CLIENT_DEPENDENCY};
/**
*
*
* @generated
*/
public Deployment createDeployment(String name) {
Deployment newDeployment = (Deployment) create(UMLPackage.Literals.DEPLOYMENT);
getDeployments().add(newDeployment);
if (name != null)
newDeployment.setName(name);
return newDeployment;
}
/**
*
*
* @generated
*/
public Deployment getDeployment(String name) {
return getDeployment(name, false, false);
}
/**
*
*
* @generated
*/
public Deployment getDeployment(String name, boolean ignoreCase,
boolean createOnDemand) {
deploymentLoop : for (Deployment deployment : getDeployments()) {
if (name != null && !(ignoreCase
? name.equalsIgnoreCase(deployment.getName())
: name.equals(deployment.getName())))
continue deploymentLoop;
return deployment;
}
return createOnDemand
? createDeployment(name)
: null;
}
/**
*
*
* @generated
*/
@Override
public boolean isSetOwnedElements() {
return super.isSetOwnedElements()
|| eIsSet(UMLPackage.NODE__DEPLOYMENT);
}
/**
* 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.NODE__OWNED_RULE, UMLPackage.NODE__OWNED_USE_CASE,
UMLPackage.NODE__OWNED_ATTRIBUTE, UMLPackage.NODE__OWNED_CONNECTOR,
UMLPackage.NODE__OWNED_BEHAVIOR, UMLPackage.NODE__OWNED_OPERATION,
UMLPackage.NODE__NESTED_CLASSIFIER, UMLPackage.NODE__OWNED_RECEPTION,
UMLPackage.NODE__NESTED_NODE};
/**
*
*
* @generated
*/
@Override
public boolean isSetOwnedMembers() {
return super.isSetOwnedMembers()
|| eIsSet(UMLPackage.NODE__NESTED_NODE);
}
} //NodeImpl