blob: c05b3d564682de0ecaaaeb274022a5bd78b8a4bc [file] [log] [blame]
/*
* Copyright (c) 2005, 2006 IBM Corporation 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
*
* $Id: SignalImpl.java,v 1.20 2006/03/01 17:56:38 khussey Exp $
*/
package org.eclipse.uml2.uml.internal.impl;
import java.util.Collection;
import java.util.Iterator;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.uml2.common.util.DerivedUnionEObjectEList;
import org.eclipse.uml2.uml.CollaborationUse;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.Property;
import org.eclipse.uml2.uml.Signal;
import org.eclipse.uml2.uml.StringExpression;
import org.eclipse.uml2.uml.TemplateParameter;
import org.eclipse.uml2.uml.TemplateSignature;
import org.eclipse.uml2.uml.Type;
import org.eclipse.uml2.uml.UMLFactory;
import org.eclipse.uml2.uml.UMLPackage;
import org.eclipse.uml2.uml.VisibilityKind;
import org.eclipse.uml2.uml.internal.operations.SignalOperations;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Signal</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.uml2.uml.internal.impl.SignalImpl#getAttributes <em>Attribute</em>}</li>
* <li>{@link org.eclipse.uml2.uml.internal.impl.SignalImpl#getOwnedMembers <em>Owned Member</em>}</li>
* <li>{@link org.eclipse.uml2.uml.internal.impl.SignalImpl#getOwnedAttributes <em>Owned Attribute</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class SignalImpl
extends ClassifierImpl
implements Signal {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected SignalImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EClass eStaticClass() {
return UMLPackage.Literals.SIGNAL;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList getAttributes() {
EList attribute = (EList) eVirtualGet(UMLPackage.SIGNAL__ATTRIBUTE);
if (attribute == null) {
eVirtualSet(UMLPackage.SIGNAL__ATTRIBUTE,
attribute = new DerivedUnionEObjectEList(Property.class, this,
UMLPackage.SIGNAL__ATTRIBUTE,
new int[]{UMLPackage.SIGNAL__OWNED_ATTRIBUTE}));
}
return attribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList getOwnedMembers() {
EList ownedMember = (EList) eVirtualGet(UMLPackage.SIGNAL__OWNED_MEMBER);
if (ownedMember == null) {
eVirtualSet(UMLPackage.SIGNAL__OWNED_MEMBER,
ownedMember = new DerivedUnionEObjectEList(NamedElement.class,
this, UMLPackage.SIGNAL__OWNED_MEMBER, new int[]{
UMLPackage.SIGNAL__OWNED_RULE,
UMLPackage.SIGNAL__OWNED_USE_CASE,
UMLPackage.SIGNAL__OWNED_ATTRIBUTE}));
}
return ownedMember;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList getOwnedAttributes() {
EList ownedAttribute = (EList) eVirtualGet(UMLPackage.SIGNAL__OWNED_ATTRIBUTE);
if (ownedAttribute == null) {
eVirtualSet(UMLPackage.SIGNAL__OWNED_ATTRIBUTE,
ownedAttribute = new EObjectContainmentEList.Resolving(
Property.class, this, UMLPackage.SIGNAL__OWNED_ATTRIBUTE));
}
return ownedAttribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Property createOwnedAttribute(String name, Type type, EClass eClass) {
Property newOwnedAttribute = (Property) EcoreUtil.create(eClass);
if (name != null)
newOwnedAttribute.setName(name);
if (type != null)
newOwnedAttribute.setType(type);
getOwnedAttributes().add(newOwnedAttribute);
return newOwnedAttribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Property createOwnedAttribute(String name, Type type) {
Property newOwnedAttribute = UMLFactory.eINSTANCE.createProperty();
if (name != null)
newOwnedAttribute.setName(name);
if (type != null)
newOwnedAttribute.setType(type);
getOwnedAttributes().add(newOwnedAttribute);
return newOwnedAttribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Property getOwnedAttribute(String name, Type type) {
return getOwnedAttribute(name, type, false, null, false);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Property getOwnedAttribute(String name, Type type,
boolean ignoreCase, EClass eClass, boolean createOnDemand) {
ownedAttributeLoop : for (Iterator i = getOwnedAttributes().iterator(); i
.hasNext();) {
Property ownedAttribute = (Property) i.next();
if (eClass != null && !eClass.isInstance(ownedAttribute))
continue ownedAttributeLoop;
if (name != null && !(ignoreCase
? name.equalsIgnoreCase(ownedAttribute.getName())
: name.equals(ownedAttribute.getName())))
continue ownedAttributeLoop;
if (type != null && !type.equals(ownedAttribute.getType()))
continue ownedAttributeLoop;
return ownedAttribute;
}
return createOnDemand && eClass != null
? createOwnedAttribute(name, type, eClass)
: null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Property createOwnedAttribute(String name, Type type, int lower,
int upper) {
return SignalOperations.createOwnedAttribute(this, name, type, lower,
upper);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID, NotificationChain msgs) {
switch (featureID) {
case UMLPackage.SIGNAL__EANNOTATIONS :
return ((InternalEList) getEAnnotations()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__OWNED_COMMENT :
return ((InternalEList) getOwnedComments()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__CLIENT_DEPENDENCY :
return ((InternalEList) getClientDependencies()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__NAME_EXPRESSION :
return basicSetNameExpression(null, msgs);
case UMLPackage.SIGNAL__ELEMENT_IMPORT :
return ((InternalEList) getElementImports()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__PACKAGE_IMPORT :
return ((InternalEList) getPackageImports()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__OWNED_RULE :
return ((InternalEList) getOwnedRules()).basicRemove(otherEnd,
msgs);
case UMLPackage.SIGNAL__OWNING_TEMPLATE_PARAMETER :
return basicSetOwningTemplateParameter(null, msgs);
case UMLPackage.SIGNAL__TEMPLATE_PARAMETER :
return basicSetTemplateParameter(null, msgs);
case UMLPackage.SIGNAL__TEMPLATE_BINDING :
return ((InternalEList) getTemplateBindings()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__OWNED_TEMPLATE_SIGNATURE :
return basicSetOwnedTemplateSignature(null, msgs);
case UMLPackage.SIGNAL__GENERALIZATION :
return ((InternalEList) getGeneralizations()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__POWERTYPE_EXTENT :
return ((InternalEList) getPowertypeExtents()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__SUBSTITUTION :
return ((InternalEList) getSubstitutions()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__COLLABORATION_USE :
return ((InternalEList) getCollaborationUses()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__OWNED_USE_CASE :
return ((InternalEList) getOwnedUseCases()).basicRemove(
otherEnd, msgs);
case UMLPackage.SIGNAL__USE_CASE :
return ((InternalEList) getUseCases()).basicRemove(otherEnd,
msgs);
case UMLPackage.SIGNAL__OWNED_ATTRIBUTE :
return ((InternalEList) getOwnedAttributes()).basicRemove(
otherEnd, msgs);
}
return eDynamicInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case UMLPackage.SIGNAL__EANNOTATIONS :
return getEAnnotations();
case UMLPackage.SIGNAL__OWNED_ELEMENT :
return getOwnedElements();
case UMLPackage.SIGNAL__OWNER :
if (resolve)
return getOwner();
return basicGetOwner();
case UMLPackage.SIGNAL__OWNED_COMMENT :
return getOwnedComments();
case UMLPackage.SIGNAL__NAME :
return getName();
case UMLPackage.SIGNAL__VISIBILITY :
return getVisibility();
case UMLPackage.SIGNAL__QUALIFIED_NAME :
return getQualifiedName();
case UMLPackage.SIGNAL__CLIENT_DEPENDENCY :
return getClientDependencies();
case UMLPackage.SIGNAL__NAMESPACE :
if (resolve)
return getNamespace();
return basicGetNamespace();
case UMLPackage.SIGNAL__NAME_EXPRESSION :
if (resolve)
return getNameExpression();
return basicGetNameExpression();
case UMLPackage.SIGNAL__ELEMENT_IMPORT :
return getElementImports();
case UMLPackage.SIGNAL__PACKAGE_IMPORT :
return getPackageImports();
case UMLPackage.SIGNAL__OWNED_RULE :
return getOwnedRules();
case UMLPackage.SIGNAL__MEMBER :
return getMembers();
case UMLPackage.SIGNAL__IMPORTED_MEMBER :
return getImportedMembers();
case UMLPackage.SIGNAL__OWNED_MEMBER :
return getOwnedMembers();
case UMLPackage.SIGNAL__IS_LEAF :
return isLeaf()
? Boolean.TRUE
: Boolean.FALSE;
case UMLPackage.SIGNAL__REDEFINED_ELEMENT :
return getRedefinedElements();
case UMLPackage.SIGNAL__REDEFINITION_CONTEXT :
return getRedefinitionContexts();
case UMLPackage.SIGNAL__OWNING_TEMPLATE_PARAMETER :
if (resolve)
return getOwningTemplateParameter();
return basicGetOwningTemplateParameter();
case UMLPackage.SIGNAL__TEMPLATE_PARAMETER :
if (resolve)
return getTemplateParameter();
return basicGetTemplateParameter();
case UMLPackage.SIGNAL__PACKAGE :
if (resolve)
return getPackage();
return basicGetPackage();
case UMLPackage.SIGNAL__TEMPLATE_BINDING :
return getTemplateBindings();
case UMLPackage.SIGNAL__OWNED_TEMPLATE_SIGNATURE :
if (resolve)
return getOwnedTemplateSignature();
return basicGetOwnedTemplateSignature();
case UMLPackage.SIGNAL__IS_ABSTRACT :
return isAbstract()
? Boolean.TRUE
: Boolean.FALSE;
case UMLPackage.SIGNAL__GENERALIZATION :
return getGeneralizations();
case UMLPackage.SIGNAL__POWERTYPE_EXTENT :
return getPowertypeExtents();
case UMLPackage.SIGNAL__FEATURE :
return getFeatures();
case UMLPackage.SIGNAL__INHERITED_MEMBER :
return getInheritedMembers();
case UMLPackage.SIGNAL__REDEFINED_CLASSIFIER :
return getRedefinedClassifiers();
case UMLPackage.SIGNAL__GENERAL :
return getGenerals();
case UMLPackage.SIGNAL__SUBSTITUTION :
return getSubstitutions();
case UMLPackage.SIGNAL__ATTRIBUTE :
return getAttributes();
case UMLPackage.SIGNAL__REPRESENTATION :
if (resolve)
return getRepresentation();
return basicGetRepresentation();
case UMLPackage.SIGNAL__COLLABORATION_USE :
return getCollaborationUses();
case UMLPackage.SIGNAL__OWNED_USE_CASE :
return getOwnedUseCases();
case UMLPackage.SIGNAL__USE_CASE :
return getUseCases();
case UMLPackage.SIGNAL__OWNED_ATTRIBUTE :
return getOwnedAttributes();
}
return eDynamicGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case UMLPackage.SIGNAL__EANNOTATIONS :
getEAnnotations().clear();
getEAnnotations().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__OWNED_COMMENT :
getOwnedComments().clear();
getOwnedComments().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__NAME :
setName((String) newValue);
return;
case UMLPackage.SIGNAL__VISIBILITY :
setVisibility((VisibilityKind) newValue);
return;
case UMLPackage.SIGNAL__CLIENT_DEPENDENCY :
getClientDependencies().clear();
getClientDependencies().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__NAME_EXPRESSION :
setNameExpression((StringExpression) newValue);
return;
case UMLPackage.SIGNAL__ELEMENT_IMPORT :
getElementImports().clear();
getElementImports().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__PACKAGE_IMPORT :
getPackageImports().clear();
getPackageImports().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__OWNED_RULE :
getOwnedRules().clear();
getOwnedRules().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__IS_LEAF :
setIsLeaf(((Boolean) newValue).booleanValue());
return;
case UMLPackage.SIGNAL__OWNING_TEMPLATE_PARAMETER :
setOwningTemplateParameter((TemplateParameter) newValue);
return;
case UMLPackage.SIGNAL__TEMPLATE_PARAMETER :
setTemplateParameter((TemplateParameter) newValue);
return;
case UMLPackage.SIGNAL__PACKAGE :
setPackage((org.eclipse.uml2.uml.Package) newValue);
return;
case UMLPackage.SIGNAL__TEMPLATE_BINDING :
getTemplateBindings().clear();
getTemplateBindings().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__OWNED_TEMPLATE_SIGNATURE :
setOwnedTemplateSignature((TemplateSignature) newValue);
return;
case UMLPackage.SIGNAL__IS_ABSTRACT :
setIsAbstract(((Boolean) newValue).booleanValue());
return;
case UMLPackage.SIGNAL__GENERALIZATION :
getGeneralizations().clear();
getGeneralizations().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__POWERTYPE_EXTENT :
getPowertypeExtents().clear();
getPowertypeExtents().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__REDEFINED_CLASSIFIER :
getRedefinedClassifiers().clear();
getRedefinedClassifiers().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__GENERAL :
getGenerals().clear();
getGenerals().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__SUBSTITUTION :
getSubstitutions().clear();
getSubstitutions().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__REPRESENTATION :
setRepresentation((CollaborationUse) newValue);
return;
case UMLPackage.SIGNAL__COLLABORATION_USE :
getCollaborationUses().clear();
getCollaborationUses().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__OWNED_USE_CASE :
getOwnedUseCases().clear();
getOwnedUseCases().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__USE_CASE :
getUseCases().clear();
getUseCases().addAll((Collection) newValue);
return;
case UMLPackage.SIGNAL__OWNED_ATTRIBUTE :
getOwnedAttributes().clear();
getOwnedAttributes().addAll((Collection) newValue);
return;
}
eDynamicSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case UMLPackage.SIGNAL__EANNOTATIONS :
getEAnnotations().clear();
return;
case UMLPackage.SIGNAL__OWNED_COMMENT :
getOwnedComments().clear();
return;
case UMLPackage.SIGNAL__NAME :
unsetName();
return;
case UMLPackage.SIGNAL__VISIBILITY :
unsetVisibility();
return;
case UMLPackage.SIGNAL__CLIENT_DEPENDENCY :
getClientDependencies().clear();
return;
case UMLPackage.SIGNAL__NAME_EXPRESSION :
setNameExpression((StringExpression) null);
return;
case UMLPackage.SIGNAL__ELEMENT_IMPORT :
getElementImports().clear();
return;
case UMLPackage.SIGNAL__PACKAGE_IMPORT :
getPackageImports().clear();
return;
case UMLPackage.SIGNAL__OWNED_RULE :
getOwnedRules().clear();
return;
case UMLPackage.SIGNAL__IS_LEAF :
setIsLeaf(IS_LEAF_EDEFAULT);
return;
case UMLPackage.SIGNAL__OWNING_TEMPLATE_PARAMETER :
setOwningTemplateParameter((TemplateParameter) null);
return;
case UMLPackage.SIGNAL__TEMPLATE_PARAMETER :
setTemplateParameter((TemplateParameter) null);
return;
case UMLPackage.SIGNAL__PACKAGE :
setPackage((org.eclipse.uml2.uml.Package) null);
return;
case UMLPackage.SIGNAL__TEMPLATE_BINDING :
getTemplateBindings().clear();
return;
case UMLPackage.SIGNAL__OWNED_TEMPLATE_SIGNATURE :
setOwnedTemplateSignature((TemplateSignature) null);
return;
case UMLPackage.SIGNAL__IS_ABSTRACT :
setIsAbstract(IS_ABSTRACT_EDEFAULT);
return;
case UMLPackage.SIGNAL__GENERALIZATION :
getGeneralizations().clear();
return;
case UMLPackage.SIGNAL__POWERTYPE_EXTENT :
getPowertypeExtents().clear();
return;
case UMLPackage.SIGNAL__REDEFINED_CLASSIFIER :
getRedefinedClassifiers().clear();
return;
case UMLPackage.SIGNAL__GENERAL :
getGenerals().clear();
return;
case UMLPackage.SIGNAL__SUBSTITUTION :
getSubstitutions().clear();
return;
case UMLPackage.SIGNAL__REPRESENTATION :
setRepresentation((CollaborationUse) null);
return;
case UMLPackage.SIGNAL__COLLABORATION_USE :
getCollaborationUses().clear();
return;
case UMLPackage.SIGNAL__OWNED_USE_CASE :
getOwnedUseCases().clear();
return;
case UMLPackage.SIGNAL__USE_CASE :
getUseCases().clear();
return;
case UMLPackage.SIGNAL__OWNED_ATTRIBUTE :
getOwnedAttributes().clear();
return;
}
eDynamicUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case UMLPackage.SIGNAL__EANNOTATIONS :
EList eAnnotations = (EList) eVirtualGet(UMLPackage.SIGNAL__EANNOTATIONS);
return eAnnotations != null && !eAnnotations.isEmpty();
case UMLPackage.SIGNAL__OWNED_ELEMENT :
return isSetOwnedElements();
case UMLPackage.SIGNAL__OWNER :
return isSetOwner();
case UMLPackage.SIGNAL__OWNED_COMMENT :
EList ownedComment = (EList) eVirtualGet(UMLPackage.SIGNAL__OWNED_COMMENT);
return ownedComment != null && !ownedComment.isEmpty();
case UMLPackage.SIGNAL__NAME :
return isSetName();
case UMLPackage.SIGNAL__VISIBILITY :
return isSetVisibility();
case UMLPackage.SIGNAL__QUALIFIED_NAME :
return QUALIFIED_NAME_EDEFAULT == null
? getQualifiedName() != null
: !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName());
case UMLPackage.SIGNAL__CLIENT_DEPENDENCY :
EList clientDependency = (EList) eVirtualGet(UMLPackage.SIGNAL__CLIENT_DEPENDENCY);
return clientDependency != null && !clientDependency.isEmpty();
case UMLPackage.SIGNAL__NAMESPACE :
return isSetNamespace();
case UMLPackage.SIGNAL__NAME_EXPRESSION :
return eVirtualGet(UMLPackage.SIGNAL__NAME_EXPRESSION) != null;
case UMLPackage.SIGNAL__ELEMENT_IMPORT :
EList elementImport = (EList) eVirtualGet(UMLPackage.SIGNAL__ELEMENT_IMPORT);
return elementImport != null && !elementImport.isEmpty();
case UMLPackage.SIGNAL__PACKAGE_IMPORT :
EList packageImport = (EList) eVirtualGet(UMLPackage.SIGNAL__PACKAGE_IMPORT);
return packageImport != null && !packageImport.isEmpty();
case UMLPackage.SIGNAL__OWNED_RULE :
EList ownedRule = (EList) eVirtualGet(UMLPackage.SIGNAL__OWNED_RULE);
return ownedRule != null && !ownedRule.isEmpty();
case UMLPackage.SIGNAL__MEMBER :
return isSetMembers();
case UMLPackage.SIGNAL__IMPORTED_MEMBER :
return !getImportedMembers().isEmpty();
case UMLPackage.SIGNAL__OWNED_MEMBER :
return isSetOwnedMembers();
case UMLPackage.SIGNAL__IS_LEAF :
return ((eFlags & IS_LEAF_EFLAG) != 0) != IS_LEAF_EDEFAULT;
case UMLPackage.SIGNAL__REDEFINED_ELEMENT :
return isSetRedefinedElements();
case UMLPackage.SIGNAL__REDEFINITION_CONTEXT :
return isSetRedefinitionContexts();
case UMLPackage.SIGNAL__OWNING_TEMPLATE_PARAMETER :
return basicGetOwningTemplateParameter() != null;
case UMLPackage.SIGNAL__TEMPLATE_PARAMETER :
return isSetTemplateParameter();
case UMLPackage.SIGNAL__PACKAGE :
return basicGetPackage() != null;
case UMLPackage.SIGNAL__TEMPLATE_BINDING :
EList templateBinding = (EList) eVirtualGet(UMLPackage.SIGNAL__TEMPLATE_BINDING);
return templateBinding != null && !templateBinding.isEmpty();
case UMLPackage.SIGNAL__OWNED_TEMPLATE_SIGNATURE :
return isSetOwnedTemplateSignature();
case UMLPackage.SIGNAL__IS_ABSTRACT :
return ((eFlags & IS_ABSTRACT_EFLAG) != 0) != IS_ABSTRACT_EDEFAULT;
case UMLPackage.SIGNAL__GENERALIZATION :
EList generalization = (EList) eVirtualGet(UMLPackage.SIGNAL__GENERALIZATION);
return generalization != null && !generalization.isEmpty();
case UMLPackage.SIGNAL__POWERTYPE_EXTENT :
EList powertypeExtent = (EList) eVirtualGet(UMLPackage.SIGNAL__POWERTYPE_EXTENT);
return powertypeExtent != null && !powertypeExtent.isEmpty();
case UMLPackage.SIGNAL__FEATURE :
return isSetFeatures();
case UMLPackage.SIGNAL__INHERITED_MEMBER :
return !getInheritedMembers().isEmpty();
case UMLPackage.SIGNAL__REDEFINED_CLASSIFIER :
EList redefinedClassifier = (EList) eVirtualGet(UMLPackage.SIGNAL__REDEFINED_CLASSIFIER);
return redefinedClassifier != null
&& !redefinedClassifier.isEmpty();
case UMLPackage.SIGNAL__GENERAL :
return !getGenerals().isEmpty();
case UMLPackage.SIGNAL__SUBSTITUTION :
EList substitution = (EList) eVirtualGet(UMLPackage.SIGNAL__SUBSTITUTION);
return substitution != null && !substitution.isEmpty();
case UMLPackage.SIGNAL__ATTRIBUTE :
return isSetAttributes();
case UMLPackage.SIGNAL__REPRESENTATION :
return eVirtualGet(UMLPackage.SIGNAL__REPRESENTATION) != null;
case UMLPackage.SIGNAL__COLLABORATION_USE :
EList collaborationUse = (EList) eVirtualGet(UMLPackage.SIGNAL__COLLABORATION_USE);
return collaborationUse != null && !collaborationUse.isEmpty();
case UMLPackage.SIGNAL__OWNED_USE_CASE :
EList ownedUseCase = (EList) eVirtualGet(UMLPackage.SIGNAL__OWNED_USE_CASE);
return ownedUseCase != null && !ownedUseCase.isEmpty();
case UMLPackage.SIGNAL__USE_CASE :
EList useCase = (EList) eVirtualGet(UMLPackage.SIGNAL__USE_CASE);
return useCase != null && !useCase.isEmpty();
case UMLPackage.SIGNAL__OWNED_ATTRIBUTE :
EList ownedAttribute = (EList) eVirtualGet(UMLPackage.SIGNAL__OWNED_ATTRIBUTE);
return ownedAttribute != null && !ownedAttribute.isEmpty();
}
return eDynamicIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetAttributes() {
return super.isSetAttributes()
|| eIsSet(UMLPackage.SIGNAL__OWNED_ATTRIBUTE);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetOwnedMembers() {
return super.isSetOwnedMembers()
|| eIsSet(UMLPackage.SIGNAL__OWNED_ATTRIBUTE);
}
} //SignalImpl