| /* |
| * Copyright (c) 2005 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: PropertyImpl.java,v 1.2 2005/11/16 19:03:04 khussey Exp $ |
| */ |
| package org.eclipse.uml2.uml.internal.impl; |
| |
| import java.util.Collection; |
| import java.util.Iterator; |
| import java.util.List; |
| import java.util.Map; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| import org.eclipse.emf.common.notify.NotificationChain; |
| |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.ecore.EStructuralFeature; |
| import org.eclipse.emf.ecore.InternalEObject; |
| |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| |
| 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.EcoreUtil; |
| 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.SubsetEObjectContainmentWithInverseEList; |
| import org.eclipse.uml2.common.util.SupersetEObjectWithInverseResolvingEList; |
| |
| import org.eclipse.uml2.uml.AggregationKind; |
| import org.eclipse.uml2.uml.Association; |
| import org.eclipse.uml2.uml.Classifier; |
| import org.eclipse.uml2.uml.ConnectableElement; |
| import org.eclipse.uml2.uml.ConnectableElementTemplateParameter; |
| import org.eclipse.uml2.uml.ConnectorEnd; |
| import org.eclipse.uml2.uml.DataType; |
| 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.Namespace; |
| import org.eclipse.uml2.uml.PackageableElement; |
| import org.eclipse.uml2.uml.ParameterableElement; |
| import org.eclipse.uml2.uml.Property; |
| import org.eclipse.uml2.uml.RedefinableElement; |
| import org.eclipse.uml2.uml.StringExpression; |
| import org.eclipse.uml2.uml.TemplateBinding; |
| import org.eclipse.uml2.uml.TemplateParameter; |
| import org.eclipse.uml2.uml.TemplateSignature; |
| import org.eclipse.uml2.uml.TemplateableElement; |
| import org.eclipse.uml2.uml.Type; |
| import org.eclipse.uml2.uml.UMLFactory; |
| import org.eclipse.uml2.uml.UMLPackage; |
| import org.eclipse.uml2.uml.ValueSpecification; |
| import org.eclipse.uml2.uml.VisibilityKind; |
| |
| import org.eclipse.uml2.uml.internal.operations.DeploymentTargetOperations; |
| import org.eclipse.uml2.uml.internal.operations.ParameterableElementOperations; |
| import org.eclipse.uml2.uml.internal.operations.PropertyOperations; |
| import org.eclipse.uml2.uml.internal.operations.TemplateableElementOperations; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Property</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getTemplateParameter <em>Template Parameter</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getOwningTemplateParameter <em>Owning Template Parameter</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getEnds <em>End</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getOwnedElements <em>Owned Element</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getClientDependencies <em>Client Dependency</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getDeployments <em>Deployment</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getDeployedElements <em>Deployed Element</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getTemplateBindings <em>Template Binding</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getOwnedTemplateSignature <em>Owned Template Signature</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getFeaturingClassifiers <em>Featuring Classifier</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getRedefinedElements <em>Redefined Element</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getAssociation <em>Association</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getDatatype <em>Datatype</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#isDerived <em>Is Derived</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#isDerivedUnion <em>Is Derived Union</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getDefault <em>Default</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getAggregation <em>Aggregation</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#isComposite <em>Is Composite</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getClass_ <em>Class </em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getRedefinedProperties <em>Redefined Property</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getOwningAssociation <em>Owning Association</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getDefaultValue <em>Default Value</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getOpposite <em>Opposite</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getSubsettedProperties <em>Subsetted Property</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getQualifiers <em>Qualifier</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#getAssociationEnd <em>Association End</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.internal.impl.PropertyImpl#isReadOnly <em>Is Read Only</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @generated |
| */ |
| public class PropertyImpl |
| extends StructuralFeatureImpl |
| implements Property { |
| |
| /** |
| * A bit field representing the indices of non-primitive feature values. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected int eVirtualIndexBits1 = 0; |
| |
| /** |
| * The default value of the '{@link #isDerived() <em>Is Derived</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isDerived() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean IS_DERIVED_EDEFAULT = false; |
| |
| /** |
| * The flag representing the value of the '{@link #isDerived() <em>Is Derived</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isDerived() |
| * @generated |
| * @ordered |
| */ |
| protected static final int IS_DERIVED_EFLAG = 1 << 13; |
| |
| /** |
| * The default value of the '{@link #isDerivedUnion() <em>Is Derived Union</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isDerivedUnion() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean IS_DERIVED_UNION_EDEFAULT = false; |
| |
| /** |
| * The flag representing the value of the '{@link #isDerivedUnion() <em>Is Derived Union</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isDerivedUnion() |
| * @generated |
| * @ordered |
| */ |
| protected static final int IS_DERIVED_UNION_EFLAG = 1 << 14; |
| |
| /** |
| * The default value of the '{@link #getDefault() <em>Default</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefault() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DEFAULT_EDEFAULT = null; |
| |
| /** |
| * The default value of the '{@link #getAggregation() <em>Aggregation</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getAggregation() |
| * @generated |
| * @ordered |
| */ |
| protected static final AggregationKind AGGREGATION_EDEFAULT = AggregationKind.NONE_LITERAL; |
| |
| /** |
| * The default value of the '{@link #isComposite() <em>Is Composite</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isComposite() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean IS_COMPOSITE_EDEFAULT = false; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected PropertyImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected EClass eStaticClass() { |
| return UMLPackage.eINSTANCE.getProperty(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TemplateParameter getTemplateParameter() { |
| TemplateParameter templateParameter = (TemplateParameter) eVirtualGet(UMLPackage.PROPERTY__TEMPLATE_PARAMETER); |
| if (templateParameter != null && templateParameter.eIsProxy()) { |
| TemplateParameter oldTemplateParameter = templateParameter; |
| templateParameter = (TemplateParameter) eResolveProxy((InternalEObject) templateParameter); |
| if (templateParameter != oldTemplateParameter) { |
| eVirtualSet(UMLPackage.PROPERTY__TEMPLATE_PARAMETER, |
| templateParameter); |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, |
| UMLPackage.PROPERTY__TEMPLATE_PARAMETER, |
| oldTemplateParameter, templateParameter)); |
| } |
| } |
| return templateParameter; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TemplateParameter basicGetTemplateParameter() { |
| return (TemplateParameter) eVirtualGet(UMLPackage.PROPERTY__TEMPLATE_PARAMETER); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetTemplateParameter( |
| TemplateParameter newTemplateParameter, NotificationChain msgs) { |
| Object oldTemplateParameter = eVirtualSet( |
| UMLPackage.PROPERTY__TEMPLATE_PARAMETER, newTemplateParameter); |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, |
| Notification.SET, UMLPackage.PROPERTY__TEMPLATE_PARAMETER, |
| oldTemplateParameter == EVIRTUAL_NO_VALUE |
| ? null |
| : oldTemplateParameter, newTemplateParameter); |
| if (msgs == null) |
| msgs = notification; |
| else |
| msgs.add(notification); |
| } |
| |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setTemplateParameter(TemplateParameter newTemplateParameter) { |
| TemplateParameter templateParameter = (TemplateParameter) eVirtualGet(UMLPackage.PROPERTY__TEMPLATE_PARAMETER); |
| if (newTemplateParameter != templateParameter) { |
| NotificationChain msgs = null; |
| if (templateParameter != null) |
| msgs = ((InternalEObject) templateParameter) |
| .eInverseRemove( |
| this, |
| UMLPackage.CONNECTABLE_ELEMENT_TEMPLATE_PARAMETER__PARAMETERED_ELEMENT, |
| ConnectableElementTemplateParameter.class, msgs); |
| if (newTemplateParameter != null) |
| msgs = ((InternalEObject) newTemplateParameter) |
| .eInverseAdd( |
| this, |
| UMLPackage.CONNECTABLE_ELEMENT_TEMPLATE_PARAMETER__PARAMETERED_ELEMENT, |
| ConnectableElementTemplateParameter.class, msgs); |
| msgs = basicSetTemplateParameter(newTemplateParameter, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__TEMPLATE_PARAMETER, newTemplateParameter, |
| newTemplateParameter)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetTemplateParameter() { |
| return eVirtualGet(UMLPackage.PROPERTY__TEMPLATE_PARAMETER) != null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TemplateParameter getOwningTemplateParameter() { |
| if (eContainerFeatureID != UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER) |
| return null; |
| return (TemplateParameter) eContainer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setOwningTemplateParameter( |
| TemplateParameter newOwningTemplateParameter) { |
| EObject oldOwningTemplateParameter = eContainer; |
| if (newOwningTemplateParameter != eContainer |
| || (eContainerFeatureID != UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER && newOwningTemplateParameter != null)) { |
| if (EcoreUtil |
| .isAncestor(this, (EObject) newOwningTemplateParameter)) |
| throw new IllegalArgumentException( |
| "Recursive containment not allowed for " + toString()); //$NON-NLS-1$ |
| NotificationChain msgs = null; |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| if (newOwningTemplateParameter != null) |
| msgs = ((InternalEObject) newOwningTemplateParameter) |
| .eInverseAdd( |
| this, |
| UMLPackage.TEMPLATE_PARAMETER__OWNED_PARAMETERED_ELEMENT, |
| TemplateParameter.class, msgs); |
| msgs = eBasicSetContainer( |
| (InternalEObject) newOwningTemplateParameter, |
| UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER, |
| newOwningTemplateParameter, newOwningTemplateParameter)); |
| |
| if (newOwningTemplateParameter != null |
| || oldOwningTemplateParameter == eVirtualGet(UMLPackage.PROPERTY__TEMPLATE_PARAMETER)) { |
| setTemplateParameter(newOwningTemplateParameter); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getEnds() { |
| List end = (List) eVirtualGet(UMLPackage.PROPERTY__END); |
| if (end == null) { |
| eVirtualSet(UMLPackage.PROPERTY__END, |
| end = new EObjectWithInverseResolvingEList(ConnectorEnd.class, |
| this, UMLPackage.PROPERTY__END, |
| UMLPackage.CONNECTOR_END__ROLE)); |
| } |
| return end; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getOwnedElements() { |
| List ownedElement = (List) eVirtualGet(UMLPackage.PROPERTY__OWNED_ELEMENT); |
| if (ownedElement == null) { |
| eVirtualSet(UMLPackage.PROPERTY__OWNED_ELEMENT, |
| ownedElement = new DerivedUnionEObjectEList(Element.class, |
| this, UMLPackage.PROPERTY__OWNED_ELEMENT, |
| new EStructuralFeature[]{ |
| UMLPackage.eINSTANCE.getElement_OwnedComment(), |
| UMLPackage.eINSTANCE.getNamedElement_NameExpression(), |
| UMLPackage.eINSTANCE |
| .getMultiplicityElement_UpperValue(), |
| UMLPackage.eINSTANCE |
| .getMultiplicityElement_LowerValue(), |
| UMLPackage.eINSTANCE.getDeploymentTarget_Deployment(), |
| UMLPackage.eINSTANCE |
| .getTemplateableElement_TemplateBinding(), |
| UMLPackage.eINSTANCE |
| .getTemplateableElement_OwnedTemplateSignature(), |
| UMLPackage.eINSTANCE.getProperty_DefaultValue(), |
| UMLPackage.eINSTANCE.getProperty_Qualifier()})); |
| } |
| return ownedElement; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getClientDependencies() { |
| List clientDependency = (List) eVirtualGet(UMLPackage.PROPERTY__CLIENT_DEPENDENCY); |
| if (clientDependency == null) { |
| eVirtualSet( |
| UMLPackage.PROPERTY__CLIENT_DEPENDENCY, |
| clientDependency = new SupersetEObjectWithInverseResolvingEList.ManyInverse( |
| Dependency.class, this, |
| UMLPackage.PROPERTY__CLIENT_DEPENDENCY, |
| new int[]{UMLPackage.PROPERTY__DEPLOYMENT}, |
| UMLPackage.DEPENDENCY__CLIENT)); |
| } |
| return clientDependency; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getDeployments() { |
| List deployment = (List) eVirtualGet(UMLPackage.PROPERTY__DEPLOYMENT); |
| if (deployment == null) { |
| eVirtualSet(UMLPackage.PROPERTY__DEPLOYMENT, |
| deployment = new SubsetEObjectContainmentWithInverseEList( |
| Deployment.class, this, UMLPackage.PROPERTY__DEPLOYMENT, |
| new int[]{UMLPackage.PROPERTY__CLIENT_DEPENDENCY}, |
| UMLPackage.DEPLOYMENT__LOCATION)); |
| } |
| return deployment; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Deployment createDeployment() { |
| Deployment newDeployment = UMLFactory.eINSTANCE.createDeployment(); |
| getDeployments().add(newDeployment); |
| return newDeployment; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Deployment getDeployment(String name) { |
| for (Iterator i = getDeployments().iterator(); i.hasNext();) { |
| Deployment deployment = (Deployment) i.next(); |
| if (name.equals(deployment.getName())) { |
| return deployment; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getDeployedElements() { |
| CacheAdapter cache = getCacheAdapter(); |
| if (cache != null) { |
| List result = (List) cache.get(this, UMLPackage.eINSTANCE |
| .getDeploymentTarget_DeployedElement()); |
| if (result == null) { |
| cache.put(this, UMLPackage.eINSTANCE |
| .getDeploymentTarget_DeployedElement(), |
| result = DeploymentTargetOperations |
| .getDeployedElements(this)); |
| } |
| return result; |
| } |
| return DeploymentTargetOperations.getDeployedElements(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PackageableElement getDeployedElement(String name) { |
| for (Iterator i = getDeployedElements().iterator(); i.hasNext();) { |
| PackageableElement deployedElement = (PackageableElement) i.next(); |
| if (name.equals(deployedElement.getName())) { |
| return deployedElement; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getTemplateBindings() { |
| List templateBinding = (List) eVirtualGet(UMLPackage.PROPERTY__TEMPLATE_BINDING); |
| if (templateBinding == null) { |
| eVirtualSet(UMLPackage.PROPERTY__TEMPLATE_BINDING, |
| templateBinding = new EObjectContainmentWithInverseEList( |
| TemplateBinding.class, this, |
| UMLPackage.PROPERTY__TEMPLATE_BINDING, |
| UMLPackage.TEMPLATE_BINDING__BOUND_ELEMENT)); |
| } |
| return templateBinding; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TemplateBinding createTemplateBinding() { |
| TemplateBinding newTemplateBinding = UMLFactory.eINSTANCE |
| .createTemplateBinding(); |
| getTemplateBindings().add(newTemplateBinding); |
| return newTemplateBinding; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TemplateSignature getOwnedTemplateSignature() { |
| TemplateSignature ownedTemplateSignature = (TemplateSignature) eVirtualGet(UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE); |
| return ownedTemplateSignature; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetOwnedTemplateSignature( |
| TemplateSignature newOwnedTemplateSignature, NotificationChain msgs) { |
| Object oldOwnedTemplateSignature = eVirtualSet( |
| UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE, |
| newOwnedTemplateSignature); |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, |
| Notification.SET, |
| UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE, |
| oldOwnedTemplateSignature == EVIRTUAL_NO_VALUE |
| ? null |
| : oldOwnedTemplateSignature, newOwnedTemplateSignature); |
| if (msgs == null) |
| msgs = notification; |
| else |
| msgs.add(notification); |
| } |
| |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setOwnedTemplateSignature( |
| TemplateSignature newOwnedTemplateSignature) { |
| TemplateSignature ownedTemplateSignature = (TemplateSignature) eVirtualGet(UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE); |
| if (newOwnedTemplateSignature != ownedTemplateSignature) { |
| NotificationChain msgs = null; |
| if (ownedTemplateSignature != null) |
| msgs = ((InternalEObject) ownedTemplateSignature) |
| .eInverseRemove(this, |
| UMLPackage.TEMPLATE_SIGNATURE__TEMPLATE, |
| TemplateSignature.class, msgs); |
| if (newOwnedTemplateSignature != null) |
| msgs = ((InternalEObject) newOwnedTemplateSignature) |
| .eInverseAdd(this, UMLPackage.TEMPLATE_SIGNATURE__TEMPLATE, |
| TemplateSignature.class, msgs); |
| msgs = basicSetOwnedTemplateSignature(newOwnedTemplateSignature, |
| msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE, |
| newOwnedTemplateSignature, newOwnedTemplateSignature)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TemplateSignature createOwnedTemplateSignature(EClass eClass) { |
| TemplateSignature newOwnedTemplateSignature = (TemplateSignature) eClass |
| .getEPackage().getEFactoryInstance().create(eClass); |
| setOwnedTemplateSignature(newOwnedTemplateSignature); |
| return newOwnedTemplateSignature; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TemplateSignature createOwnedTemplateSignature() { |
| TemplateSignature newOwnedTemplateSignature = UMLFactory.eINSTANCE |
| .createTemplateSignature(); |
| setOwnedTemplateSignature(newOwnedTemplateSignature); |
| return newOwnedTemplateSignature; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getFeaturingClassifiers() { |
| List featuringClassifier = (List) eVirtualGet(UMLPackage.PROPERTY__FEATURING_CLASSIFIER); |
| if (featuringClassifier == null) { |
| eVirtualSet(UMLPackage.PROPERTY__FEATURING_CLASSIFIER, |
| featuringClassifier = new DerivedUnionEObjectEList( |
| Classifier.class, this, |
| UMLPackage.PROPERTY__FEATURING_CLASSIFIER, |
| new EStructuralFeature[]{ |
| UMLPackage.eINSTANCE.getProperty_Datatype(), |
| UMLPackage.eINSTANCE.getProperty_Class_(), |
| UMLPackage.eINSTANCE.getProperty_OwningAssociation()})); |
| } |
| return featuringClassifier; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getRedefinedElements() { |
| List redefinedElement = (List) eVirtualGet(UMLPackage.PROPERTY__REDEFINED_ELEMENT); |
| if (redefinedElement == null) { |
| eVirtualSet(UMLPackage.PROPERTY__REDEFINED_ELEMENT, |
| redefinedElement = new DerivedUnionEObjectEList( |
| RedefinableElement.class, this, |
| UMLPackage.PROPERTY__REDEFINED_ELEMENT, |
| new EStructuralFeature[]{UMLPackage.eINSTANCE |
| .getProperty_RedefinedProperty()})); |
| } |
| return redefinedElement; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Association getAssociation() { |
| Association association = (Association) eVirtualGet(UMLPackage.PROPERTY__ASSOCIATION); |
| if (association != null && association.eIsProxy()) { |
| Association oldAssociation = association; |
| association = (Association) eResolveProxy((InternalEObject) association); |
| if (association != oldAssociation) { |
| eVirtualSet(UMLPackage.PROPERTY__ASSOCIATION, association); |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, |
| UMLPackage.PROPERTY__ASSOCIATION, oldAssociation, |
| association)); |
| } |
| } |
| return association; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Association basicGetAssociation() { |
| return (Association) eVirtualGet(UMLPackage.PROPERTY__ASSOCIATION); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetAssociation(Association newAssociation, |
| NotificationChain msgs) { |
| Object oldAssociation = eVirtualSet(UMLPackage.PROPERTY__ASSOCIATION, |
| newAssociation); |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, |
| Notification.SET, UMLPackage.PROPERTY__ASSOCIATION, |
| oldAssociation == EVIRTUAL_NO_VALUE |
| ? null |
| : oldAssociation, newAssociation); |
| if (msgs == null) |
| msgs = notification; |
| else |
| msgs.add(notification); |
| } |
| |
| if (getOwningAssociation() != null |
| && getOwningAssociation() != newAssociation) { |
| setOwningAssociation(null); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setAssociation(Association newAssociation) { |
| Association association = (Association) eVirtualGet(UMLPackage.PROPERTY__ASSOCIATION); |
| if (newAssociation != association) { |
| NotificationChain msgs = null; |
| if (association != null) |
| msgs = ((InternalEObject) association) |
| .eInverseRemove(this, UMLPackage.ASSOCIATION__MEMBER_END, |
| Association.class, msgs); |
| if (newAssociation != null) |
| msgs = ((InternalEObject) newAssociation) |
| .eInverseAdd(this, UMLPackage.ASSOCIATION__MEMBER_END, |
| Association.class, msgs); |
| msgs = basicSetAssociation(newAssociation, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__ASSOCIATION, newAssociation, |
| newAssociation)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DataType getDatatype() { |
| if (eContainerFeatureID != UMLPackage.PROPERTY__DATATYPE) |
| return null; |
| return (DataType) eContainer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDatatype(DataType newDatatype) { |
| if (newDatatype != eContainer |
| || (eContainerFeatureID != UMLPackage.PROPERTY__DATATYPE && newDatatype != null)) { |
| if (EcoreUtil.isAncestor(this, (EObject) newDatatype)) |
| throw new IllegalArgumentException( |
| "Recursive containment not allowed for " + toString()); //$NON-NLS-1$ |
| NotificationChain msgs = null; |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| if (newDatatype != null) |
| msgs = ((InternalEObject) newDatatype) |
| .eInverseAdd(this, UMLPackage.DATA_TYPE__OWNED_ATTRIBUTE, |
| DataType.class, msgs); |
| msgs = eBasicSetContainer((InternalEObject) newDatatype, |
| UMLPackage.PROPERTY__DATATYPE, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__DATATYPE, newDatatype, newDatatype)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isDerived() { |
| return (eFlags & IS_DERIVED_EFLAG) != 0; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIsDerived(boolean newIsDerived) { |
| boolean oldIsDerived = (eFlags & IS_DERIVED_EFLAG) != 0; |
| if (newIsDerived) |
| eFlags |= IS_DERIVED_EFLAG; |
| else |
| eFlags &= ~IS_DERIVED_EFLAG; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__IS_DERIVED, oldIsDerived, newIsDerived)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isDerivedUnion() { |
| return (eFlags & IS_DERIVED_UNION_EFLAG) != 0; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIsDerivedUnion(boolean newIsDerivedUnion) { |
| boolean oldIsDerivedUnion = (eFlags & IS_DERIVED_UNION_EFLAG) != 0; |
| if (newIsDerivedUnion) |
| eFlags |= IS_DERIVED_UNION_EFLAG; |
| else |
| eFlags &= ~IS_DERIVED_UNION_EFLAG; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__IS_DERIVED_UNION, oldIsDerivedUnion, |
| newIsDerivedUnion)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getDefault() { |
| return PropertyOperations.getDefault(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDefault(String newDefault) { |
| newDefault = newDefault == null |
| ? DEFAULT_EDEFAULT |
| : newDefault; |
| |
| PropertyOperations.setDefault(this, newDefault); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public AggregationKind getAggregation() { |
| AggregationKind aggregation = (AggregationKind) eVirtualGet(UMLPackage.PROPERTY__AGGREGATION); |
| return aggregation == null |
| ? AGGREGATION_EDEFAULT |
| : aggregation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setAggregation(AggregationKind newAggregation) { |
| AggregationKind aggregation = newAggregation == null |
| ? AGGREGATION_EDEFAULT |
| : newAggregation; |
| Object oldAggregation = eVirtualSet(UMLPackage.PROPERTY__AGGREGATION, |
| aggregation); |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__AGGREGATION, |
| oldAggregation == EVIRTUAL_NO_VALUE |
| ? AGGREGATION_EDEFAULT |
| : oldAggregation, aggregation)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isComposite() { |
| return PropertyOperations.isComposite(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIsComposite(boolean newIsComposite) { |
| PropertyOperations.setIsComposite(this, newIsComposite); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public org.eclipse.uml2.uml.Class getClass_() { |
| // TODO: implement this method to return the 'Class ' reference |
| // Ensure that you remove @generated or mark it @generated NOT |
| throw new UnsupportedOperationException(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getRedefinedProperties() { |
| List redefinedProperty = (List) eVirtualGet(UMLPackage.PROPERTY__REDEFINED_PROPERTY); |
| if (redefinedProperty == null) { |
| eVirtualSet(UMLPackage.PROPERTY__REDEFINED_PROPERTY, |
| redefinedProperty = new EObjectResolvingEList(Property.class, |
| this, UMLPackage.PROPERTY__REDEFINED_PROPERTY)); |
| } |
| return redefinedProperty; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Property getRedefinedProperty(String name) { |
| for (Iterator i = getRedefinedProperties().iterator(); i.hasNext();) { |
| Property redefinedProperty = (Property) i.next(); |
| if (name.equals(redefinedProperty.getName())) { |
| return redefinedProperty; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Association getOwningAssociation() { |
| if (eContainerFeatureID != UMLPackage.PROPERTY__OWNING_ASSOCIATION) |
| return null; |
| return (Association) eContainer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setOwningAssociation(Association newOwningAssociation) { |
| EObject oldOwningAssociation = eContainer; |
| if (newOwningAssociation != eContainer |
| || (eContainerFeatureID != UMLPackage.PROPERTY__OWNING_ASSOCIATION && newOwningAssociation != null)) { |
| if (EcoreUtil.isAncestor(this, (EObject) newOwningAssociation)) |
| throw new IllegalArgumentException( |
| "Recursive containment not allowed for " + toString()); //$NON-NLS-1$ |
| NotificationChain msgs = null; |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| if (newOwningAssociation != null) |
| msgs = ((InternalEObject) newOwningAssociation).eInverseAdd( |
| this, UMLPackage.ASSOCIATION__OWNED_END, Association.class, |
| msgs); |
| msgs = eBasicSetContainer((InternalEObject) newOwningAssociation, |
| UMLPackage.PROPERTY__OWNING_ASSOCIATION, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__OWNING_ASSOCIATION, newOwningAssociation, |
| newOwningAssociation)); |
| |
| if (newOwningAssociation != null |
| || oldOwningAssociation == eVirtualGet(UMLPackage.PROPERTY__ASSOCIATION)) { |
| setAssociation(newOwningAssociation); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification getDefaultValue() { |
| ValueSpecification defaultValue = (ValueSpecification) eVirtualGet(UMLPackage.PROPERTY__DEFAULT_VALUE); |
| return defaultValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetDefaultValue( |
| ValueSpecification newDefaultValue, NotificationChain msgs) { |
| Object oldDefaultValue = eVirtualSet( |
| UMLPackage.PROPERTY__DEFAULT_VALUE, newDefaultValue); |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, |
| Notification.SET, UMLPackage.PROPERTY__DEFAULT_VALUE, |
| oldDefaultValue == EVIRTUAL_NO_VALUE |
| ? null |
| : oldDefaultValue, newDefaultValue); |
| if (msgs == null) |
| msgs = notification; |
| else |
| msgs.add(notification); |
| } |
| |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDefaultValue(ValueSpecification newDefaultValue) { |
| ValueSpecification defaultValue = (ValueSpecification) eVirtualGet(UMLPackage.PROPERTY__DEFAULT_VALUE); |
| if (newDefaultValue != defaultValue) { |
| NotificationChain msgs = null; |
| if (defaultValue != null) |
| msgs = ((InternalEObject) defaultValue) |
| .eInverseRemove(this, EOPPOSITE_FEATURE_BASE |
| - UMLPackage.PROPERTY__DEFAULT_VALUE, null, msgs); |
| if (newDefaultValue != null) |
| msgs = ((InternalEObject) newDefaultValue) |
| .eInverseAdd(this, EOPPOSITE_FEATURE_BASE |
| - UMLPackage.PROPERTY__DEFAULT_VALUE, null, msgs); |
| msgs = basicSetDefaultValue(newDefaultValue, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__DEFAULT_VALUE, newDefaultValue, |
| newDefaultValue)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ValueSpecification createDefaultValue(EClass eClass) { |
| ValueSpecification newDefaultValue = (ValueSpecification) eClass |
| .getEPackage().getEFactoryInstance().create(eClass); |
| setDefaultValue(newDefaultValue); |
| return newDefaultValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Property getOpposite() { |
| Property opposite = basicGetOpposite(); |
| return opposite == null |
| ? null |
| : (opposite.eIsProxy() |
| ? (Property) eResolveProxy((InternalEObject) opposite) |
| : opposite); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Property basicGetOpposite() { |
| return PropertyOperations.getOpposite(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setOpposite(Property newOpposite) { |
| PropertyOperations.setOpposite(this, newOpposite); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getSubsettedProperties() { |
| List subsettedProperty = (List) eVirtualGet(UMLPackage.PROPERTY__SUBSETTED_PROPERTY); |
| if (subsettedProperty == null) { |
| eVirtualSet(UMLPackage.PROPERTY__SUBSETTED_PROPERTY, |
| subsettedProperty = new EObjectResolvingEList(Property.class, |
| this, UMLPackage.PROPERTY__SUBSETTED_PROPERTY)); |
| } |
| return subsettedProperty; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Property getSubsettedProperty(String name) { |
| for (Iterator i = getSubsettedProperties().iterator(); i.hasNext();) { |
| Property subsettedProperty = (Property) i.next(); |
| if (name.equals(subsettedProperty.getName())) { |
| return subsettedProperty; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getQualifiers() { |
| List qualifier = (List) eVirtualGet(UMLPackage.PROPERTY__QUALIFIER); |
| if (qualifier == null) { |
| eVirtualSet(UMLPackage.PROPERTY__QUALIFIER, |
| qualifier = new EObjectContainmentWithInverseEList( |
| Property.class, this, UMLPackage.PROPERTY__QUALIFIER, |
| UMLPackage.PROPERTY__ASSOCIATION_END)); |
| } |
| return qualifier; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Property createQualifier(EClass eClass) { |
| Property newQualifier = (Property) eClass.getEPackage() |
| .getEFactoryInstance().create(eClass); |
| getQualifiers().add(newQualifier); |
| return newQualifier; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Property createQualifier() { |
| Property newQualifier = UMLFactory.eINSTANCE.createProperty(); |
| getQualifiers().add(newQualifier); |
| return newQualifier; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Property getQualifier(String name) { |
| for (Iterator i = getQualifiers().iterator(); i.hasNext();) { |
| Property qualifier = (Property) i.next(); |
| if (name.equals(qualifier.getName())) { |
| return qualifier; |
| } |
| } |
| return null; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Property getAssociationEnd() { |
| if (eContainerFeatureID != UMLPackage.PROPERTY__ASSOCIATION_END) |
| return null; |
| return (Property) eContainer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setAssociationEnd(Property newAssociationEnd) { |
| if (newAssociationEnd != eContainer |
| || (eContainerFeatureID != UMLPackage.PROPERTY__ASSOCIATION_END && newAssociationEnd != null)) { |
| if (EcoreUtil.isAncestor(this, (EObject) newAssociationEnd)) |
| throw new IllegalArgumentException( |
| "Recursive containment not allowed for " + toString()); //$NON-NLS-1$ |
| NotificationChain msgs = null; |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| if (newAssociationEnd != null) |
| msgs = ((InternalEObject) newAssociationEnd).eInverseAdd(this, |
| UMLPackage.PROPERTY__QUALIFIER, Property.class, msgs); |
| msgs = eBasicSetContainer((InternalEObject) newAssociationEnd, |
| UMLPackage.PROPERTY__ASSOCIATION_END, msgs); |
| if (msgs != null) |
| msgs.dispatch(); |
| } else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__ASSOCIATION_END, newAssociationEnd, |
| newAssociationEnd)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isReadOnly() { |
| return (eFlags & IS_READ_ONLY_EFLAG) != 0; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIsReadOnly(boolean newIsReadOnly) { |
| boolean oldIsReadOnly = (eFlags & IS_READ_ONLY_EFLAG) != 0; |
| if (newIsReadOnly) |
| eFlags |= IS_READ_ONLY_EFLAG; |
| else |
| eFlags &= ~IS_READ_ONLY_EFLAG; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, |
| UMLPackage.PROPERTY__IS_READ_ONLY, oldIsReadOnly, newIsReadOnly)); |
| |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetIsReadOnly() { |
| return ((eFlags & IS_READ_ONLY_EFLAG) != 0) != IS_READ_ONLY_EDEFAULT; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isCompatibleWith(ParameterableElement p) { |
| return ParameterableElementOperations.isCompatibleWith(this, p); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isTemplateParameter() { |
| return ParameterableElementOperations.isTemplateParameter(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List parameterableElements() { |
| CacheAdapter cache = getCacheAdapter(); |
| if (cache != null) { |
| List result = (List) cache.get(eResource(), this, |
| UMLPackage.eINSTANCE.getTemplateableElement().getEOperations() |
| .get(0)); |
| if (result == null) { |
| cache.put(eResource(), this, UMLPackage.eINSTANCE |
| .getTemplateableElement().getEOperations().get(0), |
| result = TemplateableElementOperations |
| .parameterableElements(this)); |
| } |
| return result; |
| } |
| return TemplateableElementOperations.parameterableElements(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isTemplate() { |
| return TemplateableElementOperations.isTemplate(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateMultiplicityOfComposite(DiagnosticChain diagnostics, |
| Map context) { |
| return PropertyOperations.validateMultiplicityOfComposite(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateSubsettingContext(DiagnosticChain diagnostics, |
| Map context) { |
| return PropertyOperations.validateSubsettingContext(this, diagnostics, |
| context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateNavigablePropertyRedefinition( |
| DiagnosticChain diagnostics, Map context) { |
| return PropertyOperations.validateNavigablePropertyRedefinition(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateSubsettingRules(DiagnosticChain diagnostics, |
| Map context) { |
| return PropertyOperations.validateSubsettingRules(this, diagnostics, |
| context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateNavigableReadonly(DiagnosticChain diagnostics, |
| Map context) { |
| return PropertyOperations.validateNavigableReadonly(this, diagnostics, |
| context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateDerivedUnionIsDerived(DiagnosticChain diagnostics, |
| Map context) { |
| return PropertyOperations.validateDerivedUnionIsDerived(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateDerivedUnionIsReadOnly(DiagnosticChain diagnostics, |
| Map context) { |
| return PropertyOperations.validateDerivedUnionIsReadOnly(this, |
| diagnostics, context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateDeploymentTarget(DiagnosticChain diagnostics, |
| Map context) { |
| return PropertyOperations.validateDeploymentTarget(this, diagnostics, |
| context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean validateBindingToAttribute(DiagnosticChain diagnostics, |
| Map context) { |
| return PropertyOperations.validateBindingToAttribute(this, diagnostics, |
| context); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isAttribute(Property p) { |
| return PropertyOperations.isAttribute(this, p); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List subsettingContext() { |
| CacheAdapter cache = getCacheAdapter(); |
| if (cache != null) { |
| List result = (List) cache.get(this, UMLPackage.eINSTANCE |
| .getProperty().getEOperations().get(12)); |
| if (result == null) { |
| cache.put(this, UMLPackage.eINSTANCE.getProperty() |
| .getEOperations().get(12), result = PropertyOperations |
| .subsettingContext(this)); |
| } |
| return result; |
| } |
| return PropertyOperations.subsettingContext(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isNavigable() { |
| return PropertyOperations.isNavigable(this); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isConsistentWith(RedefinableElement redefinee) { |
| return PropertyOperations.isConsistentWith(this, redefinee); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain eInverseAdd(InternalEObject otherEnd, |
| int featureID, Class baseClass, NotificationChain msgs) { |
| if (featureID >= 0) { |
| switch (eDerivedStructuralFeatureID(featureID, baseClass)) { |
| case UMLPackage.PROPERTY__EANNOTATIONS : |
| return ((InternalEList) getEAnnotations()).basicAdd( |
| otherEnd, msgs); |
| case UMLPackage.PROPERTY__CLIENT_DEPENDENCY : |
| return ((InternalEList) getClientDependencies()).basicAdd( |
| otherEnd, msgs); |
| case UMLPackage.PROPERTY__TEMPLATE_PARAMETER : |
| TemplateParameter templateParameter = (TemplateParameter) eVirtualGet(UMLPackage.PROPERTY__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.PROPERTY__OWNING_TEMPLATE_PARAMETER : |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| return eBasicSetContainer(otherEnd, |
| UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER, msgs); |
| case UMLPackage.PROPERTY__END : |
| return ((InternalEList) getEnds()).basicAdd(otherEnd, msgs); |
| case UMLPackage.PROPERTY__DEPLOYMENT : |
| return ((InternalEList) getDeployments()).basicAdd( |
| otherEnd, msgs); |
| case UMLPackage.PROPERTY__TEMPLATE_BINDING : |
| return ((InternalEList) getTemplateBindings()).basicAdd( |
| otherEnd, msgs); |
| case UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE : |
| TemplateSignature ownedTemplateSignature = (TemplateSignature) eVirtualGet(UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE); |
| if (ownedTemplateSignature != null) |
| msgs = ((InternalEObject) ownedTemplateSignature) |
| .eInverseRemove( |
| this, |
| EOPPOSITE_FEATURE_BASE |
| - UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE, |
| null, msgs); |
| return basicSetOwnedTemplateSignature( |
| (TemplateSignature) otherEnd, msgs); |
| case UMLPackage.PROPERTY__DATATYPE : |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| return eBasicSetContainer(otherEnd, |
| UMLPackage.PROPERTY__DATATYPE, msgs); |
| case UMLPackage.PROPERTY__OWNING_ASSOCIATION : |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| return eBasicSetContainer(otherEnd, |
| UMLPackage.PROPERTY__OWNING_ASSOCIATION, msgs); |
| case UMLPackage.PROPERTY__ASSOCIATION : |
| Association association = (Association) eVirtualGet(UMLPackage.PROPERTY__ASSOCIATION); |
| if (association != null) |
| msgs = ((InternalEObject) association).eInverseRemove( |
| this, UMLPackage.ASSOCIATION__MEMBER_END, |
| Association.class, msgs); |
| return basicSetAssociation((Association) otherEnd, msgs); |
| case UMLPackage.PROPERTY__QUALIFIER : |
| return ((InternalEList) getQualifiers()).basicAdd(otherEnd, |
| msgs); |
| case UMLPackage.PROPERTY__ASSOCIATION_END : |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| return eBasicSetContainer(otherEnd, |
| UMLPackage.PROPERTY__ASSOCIATION_END, msgs); |
| default : |
| return eDynamicInverseAdd(otherEnd, featureID, baseClass, |
| msgs); |
| } |
| } |
| if (eContainer != null) |
| msgs = eBasicRemoveFromContainer(msgs); |
| return eBasicSetContainer(otherEnd, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, |
| int featureID, Class baseClass, NotificationChain msgs) { |
| if (featureID >= 0) { |
| switch (eDerivedStructuralFeatureID(featureID, baseClass)) { |
| case UMLPackage.PROPERTY__EANNOTATIONS : |
| return ((InternalEList) getEAnnotations()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.PROPERTY__OWNED_COMMENT : |
| return ((InternalEList) getOwnedComments()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.PROPERTY__CLIENT_DEPENDENCY : |
| return ((InternalEList) getClientDependencies()) |
| .basicRemove(otherEnd, msgs); |
| case UMLPackage.PROPERTY__NAME_EXPRESSION : |
| return basicSetNameExpression(null, msgs); |
| case UMLPackage.PROPERTY__UPPER_VALUE : |
| return basicSetUpperValue(null, msgs); |
| case UMLPackage.PROPERTY__LOWER_VALUE : |
| return basicSetLowerValue(null, msgs); |
| case UMLPackage.PROPERTY__TEMPLATE_PARAMETER : |
| return basicSetTemplateParameter(null, msgs); |
| case UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER : |
| return eBasicSetContainer(null, |
| UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER, msgs); |
| case UMLPackage.PROPERTY__END : |
| return ((InternalEList) getEnds()).basicRemove(otherEnd, |
| msgs); |
| case UMLPackage.PROPERTY__DEPLOYMENT : |
| return ((InternalEList) getDeployments()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.PROPERTY__TEMPLATE_BINDING : |
| return ((InternalEList) getTemplateBindings()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE : |
| return basicSetOwnedTemplateSignature(null, msgs); |
| case UMLPackage.PROPERTY__DATATYPE : |
| return eBasicSetContainer(null, |
| UMLPackage.PROPERTY__DATATYPE, msgs); |
| case UMLPackage.PROPERTY__OWNING_ASSOCIATION : |
| return eBasicSetContainer(null, |
| UMLPackage.PROPERTY__OWNING_ASSOCIATION, msgs); |
| case UMLPackage.PROPERTY__ASSOCIATION : |
| return basicSetAssociation(null, msgs); |
| case UMLPackage.PROPERTY__DEFAULT_VALUE : |
| return basicSetDefaultValue(null, msgs); |
| case UMLPackage.PROPERTY__QUALIFIER : |
| return ((InternalEList) getQualifiers()).basicRemove( |
| otherEnd, msgs); |
| case UMLPackage.PROPERTY__ASSOCIATION_END : |
| return eBasicSetContainer(null, |
| UMLPackage.PROPERTY__ASSOCIATION_END, msgs); |
| default : |
| return eDynamicInverseRemove(otherEnd, featureID, |
| baseClass, msgs); |
| } |
| } |
| return eBasicSetContainer(null, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { |
| if (eContainerFeatureID >= 0) { |
| switch (eContainerFeatureID) { |
| case UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER : |
| return eContainer |
| .eInverseRemove( |
| this, |
| UMLPackage.TEMPLATE_PARAMETER__OWNED_PARAMETERED_ELEMENT, |
| TemplateParameter.class, msgs); |
| case UMLPackage.PROPERTY__DATATYPE : |
| return eContainer.eInverseRemove(this, |
| UMLPackage.DATA_TYPE__OWNED_ATTRIBUTE, DataType.class, |
| msgs); |
| case UMLPackage.PROPERTY__OWNING_ASSOCIATION : |
| return eContainer.eInverseRemove(this, |
| UMLPackage.ASSOCIATION__OWNED_END, Association.class, |
| msgs); |
| case UMLPackage.PROPERTY__ASSOCIATION_END : |
| return eContainer.eInverseRemove(this, |
| UMLPackage.PROPERTY__QUALIFIER, Property.class, msgs); |
| default : |
| return eDynamicBasicRemoveFromContainer(msgs); |
| } |
| } |
| return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE |
| - eContainerFeatureID, null, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Object eGet(EStructuralFeature eFeature, boolean resolve) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UMLPackage.PROPERTY__EANNOTATIONS : |
| return getEAnnotations(); |
| case UMLPackage.PROPERTY__OWNED_ELEMENT : |
| return getOwnedElements(); |
| case UMLPackage.PROPERTY__OWNER : |
| if (resolve) |
| return getOwner(); |
| return basicGetOwner(); |
| case UMLPackage.PROPERTY__OWNED_COMMENT : |
| return getOwnedComments(); |
| case UMLPackage.PROPERTY__NAME : |
| return getName(); |
| case UMLPackage.PROPERTY__VISIBILITY : |
| return getVisibility(); |
| case UMLPackage.PROPERTY__QUALIFIED_NAME : |
| return getQualifiedName(); |
| case UMLPackage.PROPERTY__CLIENT_DEPENDENCY : |
| return getClientDependencies(); |
| case UMLPackage.PROPERTY__NAMESPACE : |
| if (resolve) |
| return getNamespace(); |
| return basicGetNamespace(); |
| case UMLPackage.PROPERTY__NAME_EXPRESSION : |
| return getNameExpression(); |
| case UMLPackage.PROPERTY__IS_LEAF : |
| return isLeaf() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.PROPERTY__REDEFINED_ELEMENT : |
| return getRedefinedElements(); |
| case UMLPackage.PROPERTY__REDEFINITION_CONTEXT : |
| return getRedefinitionContexts(); |
| case UMLPackage.PROPERTY__IS_STATIC : |
| return isStatic() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.PROPERTY__FEATURING_CLASSIFIER : |
| return getFeaturingClassifiers(); |
| case UMLPackage.PROPERTY__TYPE : |
| if (resolve) |
| return getType(); |
| return basicGetType(); |
| case UMLPackage.PROPERTY__IS_ORDERED : |
| return isOrdered() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.PROPERTY__IS_UNIQUE : |
| return isUnique() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.PROPERTY__UPPER : |
| return new Integer(getUpper()); |
| case UMLPackage.PROPERTY__LOWER : |
| return new Integer(getLower()); |
| case UMLPackage.PROPERTY__UPPER_VALUE : |
| return getUpperValue(); |
| case UMLPackage.PROPERTY__LOWER_VALUE : |
| return getLowerValue(); |
| case UMLPackage.PROPERTY__IS_READ_ONLY : |
| return isReadOnly() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.PROPERTY__TEMPLATE_PARAMETER : |
| if (resolve) |
| return getTemplateParameter(); |
| return basicGetTemplateParameter(); |
| case UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER : |
| return getOwningTemplateParameter(); |
| case UMLPackage.PROPERTY__END : |
| return getEnds(); |
| case UMLPackage.PROPERTY__DEPLOYMENT : |
| return getDeployments(); |
| case UMLPackage.PROPERTY__DEPLOYED_ELEMENT : |
| return getDeployedElements(); |
| case UMLPackage.PROPERTY__TEMPLATE_BINDING : |
| return getTemplateBindings(); |
| case UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE : |
| return getOwnedTemplateSignature(); |
| case UMLPackage.PROPERTY__DATATYPE : |
| return getDatatype(); |
| case UMLPackage.PROPERTY__IS_DERIVED : |
| return isDerived() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.PROPERTY__IS_DERIVED_UNION : |
| return isDerivedUnion() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.PROPERTY__DEFAULT : |
| return getDefault(); |
| case UMLPackage.PROPERTY__AGGREGATION : |
| return getAggregation(); |
| case UMLPackage.PROPERTY__IS_COMPOSITE : |
| return isComposite() |
| ? Boolean.TRUE |
| : Boolean.FALSE; |
| case UMLPackage.PROPERTY__CLASS_ : |
| return getClass_(); |
| case UMLPackage.PROPERTY__REDEFINED_PROPERTY : |
| return getRedefinedProperties(); |
| case UMLPackage.PROPERTY__OWNING_ASSOCIATION : |
| return getOwningAssociation(); |
| case UMLPackage.PROPERTY__ASSOCIATION : |
| if (resolve) |
| return getAssociation(); |
| return basicGetAssociation(); |
| case UMLPackage.PROPERTY__DEFAULT_VALUE : |
| return getDefaultValue(); |
| case UMLPackage.PROPERTY__OPPOSITE : |
| if (resolve) |
| return getOpposite(); |
| return basicGetOpposite(); |
| case UMLPackage.PROPERTY__SUBSETTED_PROPERTY : |
| return getSubsettedProperties(); |
| case UMLPackage.PROPERTY__QUALIFIER : |
| return getQualifiers(); |
| case UMLPackage.PROPERTY__ASSOCIATION_END : |
| return getAssociationEnd(); |
| } |
| return eDynamicGet(eFeature, resolve); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eSet(EStructuralFeature eFeature, Object newValue) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UMLPackage.PROPERTY__EANNOTATIONS : |
| getEAnnotations().clear(); |
| getEAnnotations().addAll((Collection) newValue); |
| return; |
| case UMLPackage.PROPERTY__OWNED_COMMENT : |
| getOwnedComments().clear(); |
| getOwnedComments().addAll((Collection) newValue); |
| return; |
| case UMLPackage.PROPERTY__NAME : |
| setName((String) newValue); |
| return; |
| case UMLPackage.PROPERTY__VISIBILITY : |
| setVisibility((VisibilityKind) newValue); |
| return; |
| case UMLPackage.PROPERTY__CLIENT_DEPENDENCY : |
| getClientDependencies().clear(); |
| getClientDependencies().addAll((Collection) newValue); |
| return; |
| case UMLPackage.PROPERTY__NAME_EXPRESSION : |
| setNameExpression((StringExpression) newValue); |
| return; |
| case UMLPackage.PROPERTY__IS_LEAF : |
| setIsLeaf(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.PROPERTY__IS_STATIC : |
| setIsStatic(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.PROPERTY__TYPE : |
| setType((Type) newValue); |
| return; |
| case UMLPackage.PROPERTY__IS_ORDERED : |
| setIsOrdered(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.PROPERTY__IS_UNIQUE : |
| setIsUnique(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.PROPERTY__UPPER : |
| setUpper(((Integer) newValue).intValue()); |
| return; |
| case UMLPackage.PROPERTY__LOWER : |
| setLower(((Integer) newValue).intValue()); |
| return; |
| case UMLPackage.PROPERTY__UPPER_VALUE : |
| setUpperValue((ValueSpecification) newValue); |
| return; |
| case UMLPackage.PROPERTY__LOWER_VALUE : |
| setLowerValue((ValueSpecification) newValue); |
| return; |
| case UMLPackage.PROPERTY__IS_READ_ONLY : |
| setIsReadOnly(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.PROPERTY__TEMPLATE_PARAMETER : |
| setTemplateParameter((TemplateParameter) newValue); |
| return; |
| case UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER : |
| setOwningTemplateParameter((TemplateParameter) newValue); |
| return; |
| case UMLPackage.PROPERTY__END : |
| getEnds().clear(); |
| getEnds().addAll((Collection) newValue); |
| return; |
| case UMLPackage.PROPERTY__DEPLOYMENT : |
| getDeployments().clear(); |
| getDeployments().addAll((Collection) newValue); |
| return; |
| case UMLPackage.PROPERTY__TEMPLATE_BINDING : |
| getTemplateBindings().clear(); |
| getTemplateBindings().addAll((Collection) newValue); |
| return; |
| case UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE : |
| setOwnedTemplateSignature((TemplateSignature) newValue); |
| return; |
| case UMLPackage.PROPERTY__DATATYPE : |
| setDatatype((DataType) newValue); |
| return; |
| case UMLPackage.PROPERTY__IS_DERIVED : |
| setIsDerived(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.PROPERTY__IS_DERIVED_UNION : |
| setIsDerivedUnion(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.PROPERTY__DEFAULT : |
| setDefault((String) newValue); |
| return; |
| case UMLPackage.PROPERTY__AGGREGATION : |
| setAggregation((AggregationKind) newValue); |
| return; |
| case UMLPackage.PROPERTY__IS_COMPOSITE : |
| setIsComposite(((Boolean) newValue).booleanValue()); |
| return; |
| case UMLPackage.PROPERTY__REDEFINED_PROPERTY : |
| getRedefinedProperties().clear(); |
| getRedefinedProperties().addAll((Collection) newValue); |
| return; |
| case UMLPackage.PROPERTY__OWNING_ASSOCIATION : |
| setOwningAssociation((Association) newValue); |
| return; |
| case UMLPackage.PROPERTY__ASSOCIATION : |
| setAssociation((Association) newValue); |
| return; |
| case UMLPackage.PROPERTY__DEFAULT_VALUE : |
| setDefaultValue((ValueSpecification) newValue); |
| return; |
| case UMLPackage.PROPERTY__OPPOSITE : |
| setOpposite((Property) newValue); |
| return; |
| case UMLPackage.PROPERTY__SUBSETTED_PROPERTY : |
| getSubsettedProperties().clear(); |
| getSubsettedProperties().addAll((Collection) newValue); |
| return; |
| case UMLPackage.PROPERTY__QUALIFIER : |
| getQualifiers().clear(); |
| getQualifiers().addAll((Collection) newValue); |
| return; |
| case UMLPackage.PROPERTY__ASSOCIATION_END : |
| setAssociationEnd((Property) newValue); |
| return; |
| } |
| eDynamicSet(eFeature, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eUnset(EStructuralFeature eFeature) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UMLPackage.PROPERTY__EANNOTATIONS : |
| getEAnnotations().clear(); |
| return; |
| case UMLPackage.PROPERTY__OWNED_COMMENT : |
| getOwnedComments().clear(); |
| return; |
| case UMLPackage.PROPERTY__NAME : |
| setName(NAME_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__VISIBILITY : |
| setVisibility(VISIBILITY_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__CLIENT_DEPENDENCY : |
| getClientDependencies().clear(); |
| return; |
| case UMLPackage.PROPERTY__NAME_EXPRESSION : |
| setNameExpression((StringExpression) null); |
| return; |
| case UMLPackage.PROPERTY__IS_LEAF : |
| setIsLeaf(IS_LEAF_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__IS_STATIC : |
| setIsStatic(IS_STATIC_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__TYPE : |
| setType((Type) null); |
| return; |
| case UMLPackage.PROPERTY__IS_ORDERED : |
| setIsOrdered(IS_ORDERED_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__IS_UNIQUE : |
| setIsUnique(IS_UNIQUE_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__UPPER : |
| setUpper(UPPER_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__LOWER : |
| setLower(LOWER_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__UPPER_VALUE : |
| setUpperValue((ValueSpecification) null); |
| return; |
| case UMLPackage.PROPERTY__LOWER_VALUE : |
| setLowerValue((ValueSpecification) null); |
| return; |
| case UMLPackage.PROPERTY__IS_READ_ONLY : |
| setIsReadOnly(IS_READ_ONLY_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__TEMPLATE_PARAMETER : |
| setTemplateParameter((TemplateParameter) null); |
| return; |
| case UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER : |
| setOwningTemplateParameter((TemplateParameter) null); |
| return; |
| case UMLPackage.PROPERTY__END : |
| getEnds().clear(); |
| return; |
| case UMLPackage.PROPERTY__DEPLOYMENT : |
| getDeployments().clear(); |
| return; |
| case UMLPackage.PROPERTY__TEMPLATE_BINDING : |
| getTemplateBindings().clear(); |
| return; |
| case UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE : |
| setOwnedTemplateSignature((TemplateSignature) null); |
| return; |
| case UMLPackage.PROPERTY__DATATYPE : |
| setDatatype((DataType) null); |
| return; |
| case UMLPackage.PROPERTY__IS_DERIVED : |
| setIsDerived(IS_DERIVED_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__IS_DERIVED_UNION : |
| setIsDerivedUnion(IS_DERIVED_UNION_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__DEFAULT : |
| setDefault(DEFAULT_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__AGGREGATION : |
| setAggregation(AGGREGATION_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__IS_COMPOSITE : |
| setIsComposite(IS_COMPOSITE_EDEFAULT); |
| return; |
| case UMLPackage.PROPERTY__REDEFINED_PROPERTY : |
| getRedefinedProperties().clear(); |
| return; |
| case UMLPackage.PROPERTY__OWNING_ASSOCIATION : |
| setOwningAssociation((Association) null); |
| return; |
| case UMLPackage.PROPERTY__ASSOCIATION : |
| setAssociation((Association) null); |
| return; |
| case UMLPackage.PROPERTY__DEFAULT_VALUE : |
| setDefaultValue((ValueSpecification) null); |
| return; |
| case UMLPackage.PROPERTY__OPPOSITE : |
| setOpposite((Property) null); |
| return; |
| case UMLPackage.PROPERTY__SUBSETTED_PROPERTY : |
| getSubsettedProperties().clear(); |
| return; |
| case UMLPackage.PROPERTY__QUALIFIER : |
| getQualifiers().clear(); |
| return; |
| case UMLPackage.PROPERTY__ASSOCIATION_END : |
| setAssociationEnd((Property) null); |
| return; |
| } |
| eDynamicUnset(eFeature); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean eIsSet(EStructuralFeature eFeature) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case UMLPackage.PROPERTY__EANNOTATIONS : |
| return eAnnotations != null && !eAnnotations.isEmpty(); |
| case UMLPackage.PROPERTY__OWNED_ELEMENT : |
| return isSetOwnedElements(); |
| case UMLPackage.PROPERTY__OWNER : |
| return isSetOwner(); |
| case UMLPackage.PROPERTY__OWNED_COMMENT : |
| List ownedComment = (List) eVirtualGet(UMLPackage.PROPERTY__OWNED_COMMENT); |
| return ownedComment != null && !ownedComment.isEmpty(); |
| case UMLPackage.PROPERTY__NAME : |
| String name = eVirtualIsSet(UMLPackage.PROPERTY__NAME) |
| ? (String) eVirtualGet(UMLPackage.PROPERTY__NAME) |
| : NAME_EDEFAULT; |
| return NAME_EDEFAULT == null |
| ? name != null |
| : !NAME_EDEFAULT.equals(name); |
| case UMLPackage.PROPERTY__VISIBILITY : |
| return eVirtualIsSet(UMLPackage.PROPERTY__VISIBILITY) |
| && eVirtualGet(UMLPackage.PROPERTY__VISIBILITY) != VISIBILITY_EDEFAULT; |
| case UMLPackage.PROPERTY__QUALIFIED_NAME : |
| return QUALIFIED_NAME_EDEFAULT == null |
| ? getQualifiedName() != null |
| : !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName()); |
| case UMLPackage.PROPERTY__CLIENT_DEPENDENCY : |
| List clientDependency = (List) eVirtualGet(UMLPackage.PROPERTY__CLIENT_DEPENDENCY); |
| return clientDependency != null && !clientDependency.isEmpty(); |
| case UMLPackage.PROPERTY__NAMESPACE : |
| return isSetNamespace(); |
| case UMLPackage.PROPERTY__NAME_EXPRESSION : |
| return eVirtualGet(UMLPackage.PROPERTY__NAME_EXPRESSION) != null; |
| case UMLPackage.PROPERTY__IS_LEAF : |
| return ((eFlags & IS_LEAF_EFLAG) != 0) != IS_LEAF_EDEFAULT; |
| case UMLPackage.PROPERTY__REDEFINED_ELEMENT : |
| return isSetRedefinedElements(); |
| case UMLPackage.PROPERTY__REDEFINITION_CONTEXT : |
| return isSetRedefinitionContexts(); |
| case UMLPackage.PROPERTY__IS_STATIC : |
| return ((eFlags & IS_STATIC_EFLAG) != 0) != IS_STATIC_EDEFAULT; |
| case UMLPackage.PROPERTY__FEATURING_CLASSIFIER : |
| return isSetFeaturingClassifiers(); |
| case UMLPackage.PROPERTY__TYPE : |
| return eVirtualGet(UMLPackage.PROPERTY__TYPE) != null; |
| case UMLPackage.PROPERTY__IS_ORDERED : |
| return ((eFlags & IS_ORDERED_EFLAG) != 0) != IS_ORDERED_EDEFAULT; |
| case UMLPackage.PROPERTY__IS_UNIQUE : |
| return ((eFlags & IS_UNIQUE_EFLAG) != 0) != IS_UNIQUE_EDEFAULT; |
| case UMLPackage.PROPERTY__UPPER : |
| return getUpper() != UPPER_EDEFAULT; |
| case UMLPackage.PROPERTY__LOWER : |
| return getLower() != LOWER_EDEFAULT; |
| case UMLPackage.PROPERTY__UPPER_VALUE : |
| return eVirtualGet(UMLPackage.PROPERTY__UPPER_VALUE) != null; |
| case UMLPackage.PROPERTY__LOWER_VALUE : |
| return eVirtualGet(UMLPackage.PROPERTY__LOWER_VALUE) != null; |
| case UMLPackage.PROPERTY__IS_READ_ONLY : |
| return isReadOnly() != IS_READ_ONLY_EDEFAULT; |
| case UMLPackage.PROPERTY__TEMPLATE_PARAMETER : |
| return eVirtualGet(UMLPackage.PROPERTY__TEMPLATE_PARAMETER) != null; |
| case UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER : |
| return getOwningTemplateParameter() != null; |
| case UMLPackage.PROPERTY__END : |
| List end = (List) eVirtualGet(UMLPackage.PROPERTY__END); |
| return end != null && !end.isEmpty(); |
| case UMLPackage.PROPERTY__DEPLOYMENT : |
| List deployment = (List) eVirtualGet(UMLPackage.PROPERTY__DEPLOYMENT); |
| return deployment != null && !deployment.isEmpty(); |
| case UMLPackage.PROPERTY__DEPLOYED_ELEMENT : |
| return !getDeployedElements().isEmpty(); |
| case UMLPackage.PROPERTY__TEMPLATE_BINDING : |
| List templateBinding = (List) eVirtualGet(UMLPackage.PROPERTY__TEMPLATE_BINDING); |
| return templateBinding != null && !templateBinding.isEmpty(); |
| case UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE : |
| return eVirtualGet(UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE) != null; |
| case UMLPackage.PROPERTY__DATATYPE : |
| return getDatatype() != null; |
| case UMLPackage.PROPERTY__IS_DERIVED : |
| return ((eFlags & IS_DERIVED_EFLAG) != 0) != IS_DERIVED_EDEFAULT; |
| case UMLPackage.PROPERTY__IS_DERIVED_UNION : |
| return ((eFlags & IS_DERIVED_UNION_EFLAG) != 0) != IS_DERIVED_UNION_EDEFAULT; |
| case UMLPackage.PROPERTY__DEFAULT : |
| return DEFAULT_EDEFAULT == null |
| ? getDefault() != null |
| : !DEFAULT_EDEFAULT.equals(getDefault()); |
| case UMLPackage.PROPERTY__AGGREGATION : |
| return eVirtualIsSet(UMLPackage.PROPERTY__AGGREGATION) |
| && eVirtualGet(UMLPackage.PROPERTY__AGGREGATION) != AGGREGATION_EDEFAULT; |
| case UMLPackage.PROPERTY__IS_COMPOSITE : |
| return isComposite() != IS_COMPOSITE_EDEFAULT; |
| case UMLPackage.PROPERTY__CLASS_ : |
| return getClass_() != null; |
| case UMLPackage.PROPERTY__REDEFINED_PROPERTY : |
| List redefinedProperty = (List) eVirtualGet(UMLPackage.PROPERTY__REDEFINED_PROPERTY); |
| return redefinedProperty != null |
| && !redefinedProperty.isEmpty(); |
| case UMLPackage.PROPERTY__OWNING_ASSOCIATION : |
| return getOwningAssociation() != null; |
| case UMLPackage.PROPERTY__ASSOCIATION : |
| return eVirtualGet(UMLPackage.PROPERTY__ASSOCIATION) != null; |
| case UMLPackage.PROPERTY__DEFAULT_VALUE : |
| return eVirtualGet(UMLPackage.PROPERTY__DEFAULT_VALUE) != null; |
| case UMLPackage.PROPERTY__OPPOSITE : |
| return basicGetOpposite() != null; |
| case UMLPackage.PROPERTY__SUBSETTED_PROPERTY : |
| List subsettedProperty = (List) eVirtualGet(UMLPackage.PROPERTY__SUBSETTED_PROPERTY); |
| return subsettedProperty != null |
| && !subsettedProperty.isEmpty(); |
| case UMLPackage.PROPERTY__QUALIFIER : |
| List qualifier = (List) eVirtualGet(UMLPackage.PROPERTY__QUALIFIER); |
| return qualifier != null && !qualifier.isEmpty(); |
| case UMLPackage.PROPERTY__ASSOCIATION_END : |
| return getAssociationEnd() != null; |
| } |
| return eDynamicIsSet(eFeature); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { |
| if (baseClass == ParameterableElement.class) { |
| switch (derivedFeatureID) { |
| case UMLPackage.PROPERTY__TEMPLATE_PARAMETER : |
| return UMLPackage.PARAMETERABLE_ELEMENT__TEMPLATE_PARAMETER; |
| case UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER : |
| return UMLPackage.PARAMETERABLE_ELEMENT__OWNING_TEMPLATE_PARAMETER; |
| default : |
| return -1; |
| } |
| } |
| if (baseClass == ConnectableElement.class) { |
| switch (derivedFeatureID) { |
| case UMLPackage.PROPERTY__END : |
| return UMLPackage.CONNECTABLE_ELEMENT__END; |
| default : |
| return -1; |
| } |
| } |
| if (baseClass == DeploymentTarget.class) { |
| switch (derivedFeatureID) { |
| case UMLPackage.PROPERTY__DEPLOYMENT : |
| return UMLPackage.DEPLOYMENT_TARGET__DEPLOYMENT; |
| case UMLPackage.PROPERTY__DEPLOYED_ELEMENT : |
| return UMLPackage.DEPLOYMENT_TARGET__DEPLOYED_ELEMENT; |
| default : |
| return -1; |
| } |
| } |
| if (baseClass == TemplateableElement.class) { |
| switch (derivedFeatureID) { |
| case UMLPackage.PROPERTY__TEMPLATE_BINDING : |
| return UMLPackage.TEMPLATEABLE_ELEMENT__TEMPLATE_BINDING; |
| case UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE : |
| return UMLPackage.TEMPLATEABLE_ELEMENT__OWNED_TEMPLATE_SIGNATURE; |
| default : |
| return -1; |
| } |
| } |
| return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { |
| if (baseClass == ParameterableElement.class) { |
| switch (baseFeatureID) { |
| case UMLPackage.PARAMETERABLE_ELEMENT__TEMPLATE_PARAMETER : |
| return UMLPackage.PROPERTY__TEMPLATE_PARAMETER; |
| case UMLPackage.PARAMETERABLE_ELEMENT__OWNING_TEMPLATE_PARAMETER : |
| return UMLPackage.PROPERTY__OWNING_TEMPLATE_PARAMETER; |
| default : |
| return -1; |
| } |
| } |
| if (baseClass == ConnectableElement.class) { |
| switch (baseFeatureID) { |
| case UMLPackage.CONNECTABLE_ELEMENT__END : |
| return UMLPackage.PROPERTY__END; |
| default : |
| return -1; |
| } |
| } |
| if (baseClass == DeploymentTarget.class) { |
| switch (baseFeatureID) { |
| case UMLPackage.DEPLOYMENT_TARGET__DEPLOYMENT : |
| return UMLPackage.PROPERTY__DEPLOYMENT; |
| case UMLPackage.DEPLOYMENT_TARGET__DEPLOYED_ELEMENT : |
| return UMLPackage.PROPERTY__DEPLOYED_ELEMENT; |
| default : |
| return -1; |
| } |
| } |
| if (baseClass == TemplateableElement.class) { |
| switch (baseFeatureID) { |
| case UMLPackage.TEMPLATEABLE_ELEMENT__TEMPLATE_BINDING : |
| return UMLPackage.PROPERTY__TEMPLATE_BINDING; |
| case UMLPackage.TEMPLATEABLE_ELEMENT__OWNED_TEMPLATE_SIGNATURE : |
| return UMLPackage.PROPERTY__OWNED_TEMPLATE_SIGNATURE; |
| default : |
| return -1; |
| } |
| } |
| return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected int eVirtualIndexBits(int offset) { |
| switch (offset) { |
| case 0 : |
| return eVirtualIndexBits0; |
| case 1 : |
| return eVirtualIndexBits1; |
| default : |
| throw new IndexOutOfBoundsException(); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void eSetVirtualIndexBits(int offset, int newIndexBits) { |
| switch (offset) { |
| case 0 : |
| eVirtualIndexBits0 = newIndexBits; |
| break; |
| case 1 : |
| eVirtualIndexBits1 = newIndexBits; |
| break; |
| default : |
| throw new IndexOutOfBoundsException(); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String toString() { |
| if (eIsProxy()) |
| return super.toString(); |
| |
| StringBuffer result = new StringBuffer(super.toString()); |
| result.append(" (isDerived: "); //$NON-NLS-1$ |
| result.append((eFlags & IS_DERIVED_EFLAG) != 0); |
| result.append(", isDerivedUnion: "); //$NON-NLS-1$ |
| result.append((eFlags & IS_DERIVED_UNION_EFLAG) != 0); |
| result.append(", aggregation: "); //$NON-NLS-1$ |
| result.append(eVirtualIsSet(UMLPackage.PROPERTY__AGGREGATION) |
| ? eVirtualGet(UMLPackage.PROPERTY__AGGREGATION) |
| : AGGREGATION_EDEFAULT); |
| result.append(", isReadOnly: "); //$NON-NLS-1$ |
| result.append((eFlags & IS_READ_ONLY_EFLAG) != 0); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Element basicGetOwner() { |
| TemplateParameter owningTemplateParameter = getOwningTemplateParameter(); |
| if (owningTemplateParameter != null) { |
| return owningTemplateParameter; |
| } |
| Property associationEnd = getAssociationEnd(); |
| if (associationEnd != null) { |
| return associationEnd; |
| } |
| return super.basicGetOwner(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetOwner() { |
| return super.isSetOwner() |
| || eIsSet(UMLPackage.eINSTANCE |
| .getParameterableElement_OwningTemplateParameter()) |
| || eIsSet(UMLPackage.eINSTANCE.getProperty_AssociationEnd()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetOwnedElements() { |
| return super.isSetOwnedElements() |
| || eIsSet(UMLPackage.eINSTANCE.getDeploymentTarget_Deployment()) |
| || eIsSet(UMLPackage.eINSTANCE |
| .getTemplateableElement_TemplateBinding()) |
| || eIsSet(UMLPackage.eINSTANCE |
| .getTemplateableElement_OwnedTemplateSignature()) |
| || eIsSet(UMLPackage.eINSTANCE.getProperty_DefaultValue()) |
| || eIsSet(UMLPackage.eINSTANCE.getProperty_Qualifier()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Namespace basicGetNamespace() { |
| DataType datatype = getDatatype(); |
| if (datatype != null) { |
| return datatype; |
| } |
| org.eclipse.uml2.uml.Class class_ = getClass_(); |
| if (class_ != null) { |
| return class_; |
| } |
| Association owningAssociation = getOwningAssociation(); |
| if (owningAssociation != null) { |
| return owningAssociation; |
| } |
| return super.basicGetNamespace(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetNamespace() { |
| return super.isSetNamespace() |
| || eIsSet(UMLPackage.eINSTANCE.getProperty_Datatype()) |
| || eIsSet(UMLPackage.eINSTANCE.getProperty_Class_()) |
| || eIsSet(UMLPackage.eINSTANCE.getProperty_OwningAssociation()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetFeaturingClassifiers() { |
| return super.isSetFeaturingClassifiers() |
| || eIsSet(UMLPackage.eINSTANCE.getProperty_Datatype()) |
| || eIsSet(UMLPackage.eINSTANCE.getProperty_Class_()) |
| || eIsSet(UMLPackage.eINSTANCE.getProperty_OwningAssociation()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSetRedefinedElements() { |
| return super.isSetRedefinedElements() |
| || eIsSet(UMLPackage.eINSTANCE.getProperty_RedefinedProperty()); |
| } |
| |
| } //PropertyImpl |