diff options
Diffstat (limited to 'plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal')
16 files changed, 4226 insertions, 0 deletions
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/AdjunctPropertyImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/AdjunctPropertyImpl.java new file mode 100644 index 00000000000..26d8bfef117 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/AdjunctPropertyImpl.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.sysml14.blocks.AdjunctProperty; +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; + +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Property; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Adjunct Property</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.AdjunctPropertyImpl#getBase_Property <em>Base Property</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.AdjunctPropertyImpl#getPrincipal <em>Principal</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class AdjunctPropertyImpl extends MinimalEObjectImpl.Container implements AdjunctProperty { + /** + * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * The cached value of the '{@link #getPrincipal() <em>Principal</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrincipal() + * @generated + * @ordered + */ + protected Element principal; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AdjunctPropertyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.ADJUNCT_PROPERTY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.ADJUNCT_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.ADJUNCT_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Element getPrincipal() { + if (principal != null && principal.eIsProxy()) { + InternalEObject oldPrincipal = (InternalEObject)principal; + principal = (Element)eResolveProxy(oldPrincipal); + if (principal != oldPrincipal) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.ADJUNCT_PROPERTY__PRINCIPAL, oldPrincipal, principal)); + } + } + return principal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Element basicGetPrincipal() { + return principal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPrincipal(Element newPrincipal) { + Element oldPrincipal = principal; + principal = newPrincipal; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.ADJUNCT_PROPERTY__PRINCIPAL, oldPrincipal, principal)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.ADJUNCT_PROPERTY__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + case BlocksPackage.ADJUNCT_PROPERTY__PRINCIPAL: + if (resolve) return getPrincipal(); + return basicGetPrincipal(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.ADJUNCT_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + case BlocksPackage.ADJUNCT_PROPERTY__PRINCIPAL: + setPrincipal((Element)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.ADJUNCT_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)null); + return; + case BlocksPackage.ADJUNCT_PROPERTY__PRINCIPAL: + setPrincipal((Element)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.ADJUNCT_PROPERTY__BASE_PROPERTY: + return base_Property != null; + case BlocksPackage.ADJUNCT_PROPERTY__PRINCIPAL: + return principal != null; + } + return super.eIsSet(featureID); + } + +} //AdjunctPropertyImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BindingConnectorImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BindingConnectorImpl.java new file mode 100644 index 00000000000..12938f43ac1 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BindingConnectorImpl.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.sysml14.blocks.BindingConnector; +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; + +import org.eclipse.uml2.uml.Connector; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Binding Connector</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.BindingConnectorImpl#getBase_Connector <em>Base Connector</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class BindingConnectorImpl extends MinimalEObjectImpl.Container implements BindingConnector { + /** + * The cached value of the '{@link #getBase_Connector() <em>Base Connector</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Connector() + * @generated + * @ordered + */ + protected Connector base_Connector; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected BindingConnectorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.BINDING_CONNECTOR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Connector getBase_Connector() { + if (base_Connector != null && base_Connector.eIsProxy()) { + InternalEObject oldBase_Connector = (InternalEObject)base_Connector; + base_Connector = (Connector)eResolveProxy(oldBase_Connector); + if (base_Connector != oldBase_Connector) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR, oldBase_Connector, base_Connector)); + } + } + return base_Connector; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Connector basicGetBase_Connector() { + return base_Connector; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Connector(Connector newBase_Connector) { + Connector oldBase_Connector = base_Connector; + base_Connector = newBase_Connector; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR, oldBase_Connector, base_Connector)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR: + if (resolve) return getBase_Connector(); + return basicGetBase_Connector(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR: + setBase_Connector((Connector)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR: + setBase_Connector((Connector)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR: + return base_Connector != null; + } + return super.eIsSet(featureID); + } + +} //BindingConnectorImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BlockImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BlockImpl.java new file mode 100644 index 00000000000..1489fc452e9 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BlockImpl.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.sysml14.blocks.Block; +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Block</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.BlockImpl#getBase_Class <em>Base Class</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.BlockImpl#isEncapsulated <em>Is Encapsulated</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class BlockImpl extends MinimalEObjectImpl.Container implements Block { + /** + * The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Class() + * @generated + * @ordered + */ + protected org.eclipse.uml2.uml.Class base_Class; + + /** + * The default value of the '{@link #isEncapsulated() <em>Is Encapsulated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isEncapsulated() + * @generated + * @ordered + */ + protected static final boolean IS_ENCAPSULATED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isEncapsulated() <em>Is Encapsulated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isEncapsulated() + * @generated + * @ordered + */ + protected boolean isEncapsulated = IS_ENCAPSULATED_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected BlockImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.BLOCK; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public org.eclipse.uml2.uml.Class getBase_Class() { + if (base_Class != null && base_Class.eIsProxy()) { + InternalEObject oldBase_Class = (InternalEObject)base_Class; + base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class); + if (base_Class != oldBase_Class) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.BLOCK__BASE_CLASS, oldBase_Class, base_Class)); + } + } + return base_Class; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public org.eclipse.uml2.uml.Class basicGetBase_Class() { + return base_Class; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) { + org.eclipse.uml2.uml.Class oldBase_Class = base_Class; + base_Class = newBase_Class; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.BLOCK__BASE_CLASS, oldBase_Class, base_Class)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isEncapsulated() { + return isEncapsulated; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIsEncapsulated(boolean newIsEncapsulated) { + boolean oldIsEncapsulated = isEncapsulated; + isEncapsulated = newIsEncapsulated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.BLOCK__IS_ENCAPSULATED, oldIsEncapsulated, isEncapsulated)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.BLOCK__BASE_CLASS: + if (resolve) return getBase_Class(); + return basicGetBase_Class(); + case BlocksPackage.BLOCK__IS_ENCAPSULATED: + return isEncapsulated(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.BLOCK__BASE_CLASS: + setBase_Class((org.eclipse.uml2.uml.Class)newValue); + return; + case BlocksPackage.BLOCK__IS_ENCAPSULATED: + setIsEncapsulated((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.BLOCK__BASE_CLASS: + setBase_Class((org.eclipse.uml2.uml.Class)null); + return; + case BlocksPackage.BLOCK__IS_ENCAPSULATED: + setIsEncapsulated(IS_ENCAPSULATED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.BLOCK__BASE_CLASS: + return base_Class != null; + case BlocksPackage.BLOCK__IS_ENCAPSULATED: + return isEncapsulated != IS_ENCAPSULATED_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isEncapsulated: "); //$NON-NLS-1$ + result.append(isEncapsulated); + result.append(')'); + return result.toString(); + } + +} //BlockImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BlocksFactoryImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BlocksFactoryImpl.java new file mode 100644 index 00000000000..fee0ba97376 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BlocksFactoryImpl.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +import org.eclipse.papyrus.sysml14.blocks.*; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class BlocksFactoryImpl extends EFactoryImpl implements BlocksFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static BlocksFactory init() { + try { + BlocksFactory theBlocksFactory = (BlocksFactory)EPackage.Registry.INSTANCE.getEFactory(BlocksPackage.eNS_URI); + if (theBlocksFactory != null) { + return theBlocksFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new BlocksFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BlocksFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case BlocksPackage.VALUE_TYPE: return createValueType(); + case BlocksPackage.DISTRIBUTED_PROPERTY: return createDistributedProperty(); + case BlocksPackage.CONNECTOR_PROPERTY: return createConnectorProperty(); + case BlocksPackage.PARTICIPANT_PROPERTY: return createParticipantProperty(); + case BlocksPackage.BINDING_CONNECTOR: return createBindingConnector(); + case BlocksPackage.BLOCK: return createBlock(); + case BlocksPackage.PROPERTY_SPECIFIC_TYPE: return createPropertySpecificType(); + case BlocksPackage.NESTED_CONNECTOR_END: return createNestedConnectorEnd(); + case BlocksPackage.END_PATH_MULTIPLICITY: return createEndPathMultiplicity(); + case BlocksPackage.BOUND_REFERENCE: return createBoundReference(); + case BlocksPackage.ADJUNCT_PROPERTY: return createAdjunctProperty(); + case BlocksPackage.CLASSIFIER_BEHAVIOR_PROPERTY: return createClassifierBehaviorProperty(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ValueType createValueType() { + ValueTypeImpl valueType = new ValueTypeImpl(); + return valueType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DistributedProperty createDistributedProperty() { + DistributedPropertyImpl distributedProperty = new DistributedPropertyImpl(); + return distributedProperty; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConnectorProperty createConnectorProperty() { + ConnectorPropertyImpl connectorProperty = new ConnectorPropertyImpl(); + return connectorProperty; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ParticipantProperty createParticipantProperty() { + ParticipantPropertyImpl participantProperty = new ParticipantPropertyImpl(); + return participantProperty; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BindingConnector createBindingConnector() { + BindingConnectorImpl bindingConnector = new BindingConnectorImpl(); + return bindingConnector; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Block createBlock() { + BlockImpl block = new BlockImpl(); + return block; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PropertySpecificType createPropertySpecificType() { + PropertySpecificTypeImpl propertySpecificType = new PropertySpecificTypeImpl(); + return propertySpecificType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NestedConnectorEnd createNestedConnectorEnd() { + NestedConnectorEndImpl nestedConnectorEnd = new NestedConnectorEndImpl(); + return nestedConnectorEnd; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EndPathMultiplicity createEndPathMultiplicity() { + EndPathMultiplicityImpl endPathMultiplicity = new EndPathMultiplicityImpl(); + return endPathMultiplicity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BoundReference createBoundReference() { + BoundReferenceImpl boundReference = new BoundReferenceImpl(); + return boundReference; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AdjunctProperty createAdjunctProperty() { + AdjunctPropertyImpl adjunctProperty = new AdjunctPropertyImpl(); + return adjunctProperty; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ClassifierBehaviorProperty createClassifierBehaviorProperty() { + ClassifierBehaviorPropertyImpl classifierBehaviorProperty = new ClassifierBehaviorPropertyImpl(); + return classifierBehaviorProperty; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BlocksPackage getBlocksPackage() { + return (BlocksPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static BlocksPackage getPackage() { + return BlocksPackage.eINSTANCE; + } + +} //BlocksFactoryImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BlocksPackageImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BlocksPackageImpl.java new file mode 100644 index 00000000000..4eb3bd201d4 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BlocksPackageImpl.java @@ -0,0 +1,840 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.papyrus.sysml14.activities.ActivitiesPackage; + +import org.eclipse.papyrus.sysml14.activities.internal.impl.ActivitiesPackageImpl; + +import org.eclipse.papyrus.sysml14.allocations.AllocationsPackage; + +import org.eclipse.papyrus.sysml14.allocations.internal.impl.AllocationsPackageImpl; + +import org.eclipse.papyrus.sysml14.blocks.AdjunctProperty; +import org.eclipse.papyrus.sysml14.blocks.BindingConnector; +import org.eclipse.papyrus.sysml14.blocks.Block; +import org.eclipse.papyrus.sysml14.blocks.BlocksFactory; +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.BoundReference; +import org.eclipse.papyrus.sysml14.blocks.ClassifierBehaviorProperty; +import org.eclipse.papyrus.sysml14.blocks.ConnectorProperty; +import org.eclipse.papyrus.sysml14.blocks.DirectedRelationshipPropertyPath; +import org.eclipse.papyrus.sysml14.blocks.DistributedProperty; +import org.eclipse.papyrus.sysml14.blocks.ElementPropertyPath; +import org.eclipse.papyrus.sysml14.blocks.EndPathMultiplicity; +import org.eclipse.papyrus.sysml14.blocks.NestedConnectorEnd; +import org.eclipse.papyrus.sysml14.blocks.ParticipantProperty; +import org.eclipse.papyrus.sysml14.blocks.PropertySpecificType; +import org.eclipse.papyrus.sysml14.blocks.ValueType; + +import org.eclipse.papyrus.sysml14.constraintblocks.ConstraintblocksPackage; + +import org.eclipse.papyrus.sysml14.constraintblocks.internal.impl.ConstraintblocksPackageImpl; + +import org.eclipse.papyrus.sysml14.deprecatedelements.DeprecatedelementsPackage; + +import org.eclipse.papyrus.sysml14.deprecatedelements.internal.impl.DeprecatedelementsPackageImpl; + +import org.eclipse.papyrus.sysml14.modelelements.ModelelementsPackage; + +import org.eclipse.papyrus.sysml14.modelelements.internal.impl.ModelelementsPackageImpl; + +import org.eclipse.papyrus.sysml14.portandflows.PortandflowsPackage; + +import org.eclipse.papyrus.sysml14.portandflows.internal.impl.PortandflowsPackageImpl; + +import org.eclipse.papyrus.sysml14.requirements.RequirementsPackage; + +import org.eclipse.papyrus.sysml14.requirements.internal.impl.RequirementsPackageImpl; + +import org.eclipse.uml2.types.TypesPackage; + +import org.eclipse.uml2.uml.UMLPackage; + +import org.eclipse.uml2.uml.profile.standard.StandardPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class BlocksPackageImpl extends EPackageImpl implements BlocksPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass valueTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass distributedPropertyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass connectorPropertyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass participantPropertyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass bindingConnectorEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass blockEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass propertySpecificTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass nestedConnectorEndEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass elementPropertyPathEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass directedRelationshipPropertyPathEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass endPathMultiplicityEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass boundReferenceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass adjunctPropertyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass classifierBehaviorPropertyEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.sysml14.blocks.BlocksPackage#eNS_URI + * @see #init() + * @generated + */ + private BlocksPackageImpl() { + super(eNS_URI, BlocksFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>This method is used to initialize {@link BlocksPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static BlocksPackage init() { + if (isInited) return (BlocksPackage)EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI); + + // Obtain or create and register package + BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new BlocksPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + StandardPackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE); + ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE); + ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE); + ConstraintblocksPackageImpl theConstraintblocksPackage = (ConstraintblocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintblocksPackage.eNS_URI) instanceof ConstraintblocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintblocksPackage.eNS_URI) : ConstraintblocksPackage.eINSTANCE); + AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE); + RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE); + DeprecatedelementsPackageImpl theDeprecatedelementsPackage = (DeprecatedelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DeprecatedelementsPackage.eNS_URI) instanceof DeprecatedelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DeprecatedelementsPackage.eNS_URI) : DeprecatedelementsPackage.eINSTANCE); + + // Create package meta-data objects + theBlocksPackage.createPackageContents(); + thePortandflowsPackage.createPackageContents(); + theActivitiesPackage.createPackageContents(); + theModelelementsPackage.createPackageContents(); + theConstraintblocksPackage.createPackageContents(); + theAllocationsPackage.createPackageContents(); + theRequirementsPackage.createPackageContents(); + theDeprecatedelementsPackage.createPackageContents(); + + // Initialize created meta-data + theBlocksPackage.initializePackageContents(); + thePortandflowsPackage.initializePackageContents(); + theActivitiesPackage.initializePackageContents(); + theModelelementsPackage.initializePackageContents(); + theConstraintblocksPackage.initializePackageContents(); + theAllocationsPackage.initializePackageContents(); + theRequirementsPackage.initializePackageContents(); + theDeprecatedelementsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theBlocksPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(BlocksPackage.eNS_URI, theBlocksPackage); + return theBlocksPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getValueType() { + return valueTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getValueType_Base_DataType() { + return (EReference)valueTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getValueType_Unit() { + return (EReference)valueTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getValueType_QuantityKind() { + return (EReference)valueTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDistributedProperty() { + return distributedPropertyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDistributedProperty_Base_Property() { + return (EReference)distributedPropertyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getConnectorProperty() { + return connectorPropertyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getConnectorProperty_Base_Property() { + return (EReference)connectorPropertyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getConnectorProperty_Connector() { + return (EReference)connectorPropertyEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getParticipantProperty() { + return participantPropertyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getParticipantProperty_Base_Property() { + return (EReference)participantPropertyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getParticipantProperty_End() { + return (EReference)participantPropertyEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getBindingConnector() { + return bindingConnectorEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getBindingConnector_Base_Connector() { + return (EReference)bindingConnectorEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getBlock() { + return blockEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getBlock_Base_Class() { + return (EReference)blockEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getBlock_IsEncapsulated() { + return (EAttribute)blockEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPropertySpecificType() { + return propertySpecificTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPropertySpecificType_Base_Classifier() { + return (EReference)propertySpecificTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNestedConnectorEnd() { + return nestedConnectorEndEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getNestedConnectorEnd_Base_ConnectorEnd() { + return (EReference)nestedConnectorEndEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getElementPropertyPath() { + return elementPropertyPathEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getElementPropertyPath_Base_Element() { + return (EReference)elementPropertyPathEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getElementPropertyPath_PropertyPath() { + return (EReference)elementPropertyPathEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDirectedRelationshipPropertyPath() { + return directedRelationshipPropertyPathEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDirectedRelationshipPropertyPath_Base_DirectedRelationship() { + return (EReference)directedRelationshipPropertyPathEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDirectedRelationshipPropertyPath_SourcePropertyPath() { + return (EReference)directedRelationshipPropertyPathEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDirectedRelationshipPropertyPath_TargetPropertyPath() { + return (EReference)directedRelationshipPropertyPathEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDirectedRelationshipPropertyPath_SourceContext() { + return (EReference)directedRelationshipPropertyPathEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDirectedRelationshipPropertyPath_TargetContext() { + return (EReference)directedRelationshipPropertyPathEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEndPathMultiplicity() { + return endPathMultiplicityEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEndPathMultiplicity_Base_Property() { + return (EReference)endPathMultiplicityEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEndPathMultiplicity_Lower() { + return (EAttribute)endPathMultiplicityEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEndPathMultiplicity_Upper() { + return (EAttribute)endPathMultiplicityEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getBoundReference() { + return boundReferenceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getBoundReference_BoundEnd() { + return (EReference)boundReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getBoundReference_BindingPath() { + return (EReference)boundReferenceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAdjunctProperty() { + return adjunctPropertyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAdjunctProperty_Base_Property() { + return (EReference)adjunctPropertyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAdjunctProperty_Principal() { + return (EReference)adjunctPropertyEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getClassifierBehaviorProperty() { + return classifierBehaviorPropertyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getClassifierBehaviorProperty_Base_Property() { + return (EReference)classifierBehaviorPropertyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BlocksFactory getBlocksFactory() { + return (BlocksFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + valueTypeEClass = createEClass(VALUE_TYPE); + createEReference(valueTypeEClass, VALUE_TYPE__BASE_DATA_TYPE); + createEReference(valueTypeEClass, VALUE_TYPE__UNIT); + createEReference(valueTypeEClass, VALUE_TYPE__QUANTITY_KIND); + + distributedPropertyEClass = createEClass(DISTRIBUTED_PROPERTY); + createEReference(distributedPropertyEClass, DISTRIBUTED_PROPERTY__BASE_PROPERTY); + + connectorPropertyEClass = createEClass(CONNECTOR_PROPERTY); + createEReference(connectorPropertyEClass, CONNECTOR_PROPERTY__BASE_PROPERTY); + createEReference(connectorPropertyEClass, CONNECTOR_PROPERTY__CONNECTOR); + + participantPropertyEClass = createEClass(PARTICIPANT_PROPERTY); + createEReference(participantPropertyEClass, PARTICIPANT_PROPERTY__BASE_PROPERTY); + createEReference(participantPropertyEClass, PARTICIPANT_PROPERTY__END); + + bindingConnectorEClass = createEClass(BINDING_CONNECTOR); + createEReference(bindingConnectorEClass, BINDING_CONNECTOR__BASE_CONNECTOR); + + blockEClass = createEClass(BLOCK); + createEReference(blockEClass, BLOCK__BASE_CLASS); + createEAttribute(blockEClass, BLOCK__IS_ENCAPSULATED); + + propertySpecificTypeEClass = createEClass(PROPERTY_SPECIFIC_TYPE); + createEReference(propertySpecificTypeEClass, PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER); + + nestedConnectorEndEClass = createEClass(NESTED_CONNECTOR_END); + createEReference(nestedConnectorEndEClass, NESTED_CONNECTOR_END__BASE_CONNECTOR_END); + + elementPropertyPathEClass = createEClass(ELEMENT_PROPERTY_PATH); + createEReference(elementPropertyPathEClass, ELEMENT_PROPERTY_PATH__BASE_ELEMENT); + createEReference(elementPropertyPathEClass, ELEMENT_PROPERTY_PATH__PROPERTY_PATH); + + directedRelationshipPropertyPathEClass = createEClass(DIRECTED_RELATIONSHIP_PROPERTY_PATH); + createEReference(directedRelationshipPropertyPathEClass, DIRECTED_RELATIONSHIP_PROPERTY_PATH__BASE_DIRECTED_RELATIONSHIP); + createEReference(directedRelationshipPropertyPathEClass, DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_PROPERTY_PATH); + createEReference(directedRelationshipPropertyPathEClass, DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_PROPERTY_PATH); + createEReference(directedRelationshipPropertyPathEClass, DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_CONTEXT); + createEReference(directedRelationshipPropertyPathEClass, DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_CONTEXT); + + endPathMultiplicityEClass = createEClass(END_PATH_MULTIPLICITY); + createEReference(endPathMultiplicityEClass, END_PATH_MULTIPLICITY__BASE_PROPERTY); + createEAttribute(endPathMultiplicityEClass, END_PATH_MULTIPLICITY__LOWER); + createEAttribute(endPathMultiplicityEClass, END_PATH_MULTIPLICITY__UPPER); + + boundReferenceEClass = createEClass(BOUND_REFERENCE); + createEReference(boundReferenceEClass, BOUND_REFERENCE__BOUND_END); + createEReference(boundReferenceEClass, BOUND_REFERENCE__BINDING_PATH); + + adjunctPropertyEClass = createEClass(ADJUNCT_PROPERTY); + createEReference(adjunctPropertyEClass, ADJUNCT_PROPERTY__BASE_PROPERTY); + createEReference(adjunctPropertyEClass, ADJUNCT_PROPERTY__PRINCIPAL); + + classifierBehaviorPropertyEClass = createEClass(CLASSIFIER_BEHAVIOR_PROPERTY); + createEReference(classifierBehaviorPropertyEClass, CLASSIFIER_BEHAVIOR_PROPERTY__BASE_PROPERTY); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + nestedConnectorEndEClass.getESuperTypes().add(this.getElementPropertyPath()); + boundReferenceEClass.getESuperTypes().add(this.getEndPathMultiplicity()); + + // Initialize classes, features, and operations; add parameters + initEClass(valueTypeEClass, ValueType.class, "ValueType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getValueType_Base_DataType(), theUMLPackage.getDataType(), null, "base_DataType", null, 0, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEReference(getValueType_Unit(), theUMLPackage.getInstanceSpecification(), null, "unit", null, 0, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEReference(getValueType_QuantityKind(), theUMLPackage.getInstanceSpecification(), null, "quantityKind", null, 0, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(distributedPropertyEClass, DistributedProperty.class, "DistributedProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getDistributedProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 0, 1, DistributedProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(connectorPropertyEClass, ConnectorProperty.class, "ConnectorProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getConnectorProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 0, 1, ConnectorProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEReference(getConnectorProperty_Connector(), theUMLPackage.getConnector(), null, "connector", null, 1, 1, ConnectorProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(participantPropertyEClass, ParticipantProperty.class, "ParticipantProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getParticipantProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 0, 1, ParticipantProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEReference(getParticipantProperty_End(), theUMLPackage.getProperty(), null, "end", null, 1, 1, ParticipantProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(bindingConnectorEClass, BindingConnector.class, "BindingConnector", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getBindingConnector_Base_Connector(), theUMLPackage.getConnector(), null, "base_Connector", null, 0, 1, BindingConnector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(blockEClass, Block.class, "Block", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getBlock_Base_Class(), theUMLPackage.getClass_(), null, "base_Class", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getBlock_IsEncapsulated(), theTypesPackage.getBoolean(), "isEncapsulated", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(propertySpecificTypeEClass, PropertySpecificType.class, "PropertySpecificType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getPropertySpecificType_Base_Classifier(), theUMLPackage.getClassifier(), null, "base_Classifier", null, 0, 1, PropertySpecificType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(nestedConnectorEndEClass, NestedConnectorEnd.class, "NestedConnectorEnd", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getNestedConnectorEnd_Base_ConnectorEnd(), theUMLPackage.getConnectorEnd(), null, "base_ConnectorEnd", null, 0, 1, NestedConnectorEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(elementPropertyPathEClass, ElementPropertyPath.class, "ElementPropertyPath", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getElementPropertyPath_Base_Element(), theUMLPackage.getElement(), null, "base_Element", null, 0, 1, ElementPropertyPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEReference(getElementPropertyPath_PropertyPath(), theUMLPackage.getProperty(), null, "propertyPath", null, 1, -1, ElementPropertyPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(directedRelationshipPropertyPathEClass, DirectedRelationshipPropertyPath.class, "DirectedRelationshipPropertyPath", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getDirectedRelationshipPropertyPath_Base_DirectedRelationship(), theUMLPackage.getDirectedRelationship(), null, "base_DirectedRelationship", null, 0, 1, DirectedRelationshipPropertyPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEReference(getDirectedRelationshipPropertyPath_SourcePropertyPath(), theUMLPackage.getProperty(), null, "sourcePropertyPath", null, 0, -1, DirectedRelationshipPropertyPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEReference(getDirectedRelationshipPropertyPath_TargetPropertyPath(), theUMLPackage.getProperty(), null, "targetPropertyPath", null, 0, -1, DirectedRelationshipPropertyPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEReference(getDirectedRelationshipPropertyPath_SourceContext(), theUMLPackage.getClassifier(), null, "sourceContext", null, 0, 1, DirectedRelationshipPropertyPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEReference(getDirectedRelationshipPropertyPath_TargetContext(), theUMLPackage.getClassifier(), null, "targetContext", null, 0, 1, DirectedRelationshipPropertyPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(endPathMultiplicityEClass, EndPathMultiplicity.class, "EndPathMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getEndPathMultiplicity_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 0, 1, EndPathMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getEndPathMultiplicity_Lower(), theTypesPackage.getInteger(), "lower", "0", 0, 1, EndPathMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ + initEAttribute(getEndPathMultiplicity_Upper(), theTypesPackage.getUnlimitedNatural(), "upper", "-1", 0, 1, EndPathMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ + + initEClass(boundReferenceEClass, BoundReference.class, "BoundReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getBoundReference_BoundEnd(), theUMLPackage.getConnectorEnd(), null, "boundEnd", null, 1, 1, BoundReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEReference(getBoundReference_BindingPath(), theUMLPackage.getProperty(), null, "bindingPath", null, 1, -1, BoundReference.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(adjunctPropertyEClass, AdjunctProperty.class, "AdjunctProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getAdjunctProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 0, 1, AdjunctProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + initEReference(getAdjunctProperty_Principal(), theUMLPackage.getElement(), null, "principal", null, 1, 1, AdjunctProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(classifierBehaviorPropertyEClass, ClassifierBehaviorProperty.class, "ClassifierBehaviorProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getClassifierBehaviorProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 0, 1, ClassifierBehaviorProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/uml2/2.0.0/UML + createUMLAnnotations(); + } + + /** + * Initializes the annotations for <b>http://www.eclipse.org/uml2/2.0.0/UML</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void createUMLAnnotations() { + String source = "http://www.eclipse.org/uml2/2.0.0/UML"; //$NON-NLS-1$ + addAnnotation + (this, + source, + new String[] { + "originalName", "Blocks" //$NON-NLS-1$ //$NON-NLS-2$ + }); + } + +} //BlocksPackageImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BoundReferenceImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BoundReferenceImpl.java new file mode 100644 index 00000000000..8ca09b63aa0 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/BoundReferenceImpl.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.BoundReference; + +import org.eclipse.uml2.uml.ConnectorEnd; +import org.eclipse.uml2.uml.Property; +import org.eclipse.uml2.uml.Type; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Bound Reference</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.BoundReferenceImpl#getBoundEnd <em>Bound End</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.BoundReferenceImpl#getBindingPath <em>Binding Path</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class BoundReferenceImpl extends EndPathMultiplicityImpl implements BoundReference { + /** + * The cached value of the '{@link #getBoundEnd() <em>Bound End</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBoundEnd() + * @generated + * @ordered + */ + protected ConnectorEnd boundEnd; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected BoundReferenceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.BOUND_REFERENCE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConnectorEnd getBoundEnd() { + if (boundEnd != null && boundEnd.eIsProxy()) { + InternalEObject oldBoundEnd = (InternalEObject)boundEnd; + boundEnd = (ConnectorEnd)eResolveProxy(oldBoundEnd); + if (boundEnd != oldBoundEnd) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.BOUND_REFERENCE__BOUND_END, oldBoundEnd, boundEnd)); + } + } + return boundEnd; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConnectorEnd basicGetBoundEnd() { + return boundEnd; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBoundEnd(ConnectorEnd newBoundEnd) { + ConnectorEnd oldBoundEnd = boundEnd; + boundEnd = newBoundEnd; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.BOUND_REFERENCE__BOUND_END, oldBoundEnd, boundEnd)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Property> getBindingPath() { + // TODO: implement this method to return the 'Binding Path' reference list + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getBindingPath(String name, Type type) { + return getBindingPath(name, type, false, null); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getBindingPath(String name, Type type, boolean ignoreCase, EClass eClass) { + bindingPathLoop: for (Property bindingPath : getBindingPath()) { + if (eClass != null && !eClass.isInstance(bindingPath)) + continue bindingPathLoop; + if (name != null && !(ignoreCase ? name.equalsIgnoreCase(bindingPath.getName()) : name.equals(bindingPath.getName()))) + continue bindingPathLoop; + if (type != null && !type.equals(bindingPath.getType())) + continue bindingPathLoop; + return bindingPath; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.BOUND_REFERENCE__BOUND_END: + if (resolve) return getBoundEnd(); + return basicGetBoundEnd(); + case BlocksPackage.BOUND_REFERENCE__BINDING_PATH: + return getBindingPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.BOUND_REFERENCE__BOUND_END: + setBoundEnd((ConnectorEnd)newValue); + return; + case BlocksPackage.BOUND_REFERENCE__BINDING_PATH: + getBindingPath().clear(); + getBindingPath().addAll((Collection<? extends Property>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.BOUND_REFERENCE__BOUND_END: + setBoundEnd((ConnectorEnd)null); + return; + case BlocksPackage.BOUND_REFERENCE__BINDING_PATH: + getBindingPath().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.BOUND_REFERENCE__BOUND_END: + return boundEnd != null; + case BlocksPackage.BOUND_REFERENCE__BINDING_PATH: + return !getBindingPath().isEmpty(); + } + return super.eIsSet(featureID); + } + +} //BoundReferenceImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ClassifierBehaviorPropertyImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ClassifierBehaviorPropertyImpl.java new file mode 100644 index 00000000000..43036985e79 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ClassifierBehaviorPropertyImpl.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.ClassifierBehaviorProperty; + +import org.eclipse.uml2.uml.Property; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Classifier Behavior Property</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.ClassifierBehaviorPropertyImpl#getBase_Property <em>Base Property</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ClassifierBehaviorPropertyImpl extends MinimalEObjectImpl.Container implements ClassifierBehaviorProperty { + /** + * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ClassifierBehaviorPropertyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.CLASSIFIER_BEHAVIOR_PROPERTY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.CLASSIFIER_BEHAVIOR_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.CLASSIFIER_BEHAVIOR_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.CLASSIFIER_BEHAVIOR_PROPERTY__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.CLASSIFIER_BEHAVIOR_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.CLASSIFIER_BEHAVIOR_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.CLASSIFIER_BEHAVIOR_PROPERTY__BASE_PROPERTY: + return base_Property != null; + } + return super.eIsSet(featureID); + } + +} //ClassifierBehaviorPropertyImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ConnectorPropertyImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ConnectorPropertyImpl.java new file mode 100644 index 00000000000..23bf152704d --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ConnectorPropertyImpl.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.ConnectorProperty; + +import org.eclipse.uml2.uml.Connector; +import org.eclipse.uml2.uml.Property; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Connector Property</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.ConnectorPropertyImpl#getBase_Property <em>Base Property</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.ConnectorPropertyImpl#getConnector <em>Connector</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ConnectorPropertyImpl extends MinimalEObjectImpl.Container implements ConnectorProperty { + /** + * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * The cached value of the '{@link #getConnector() <em>Connector</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConnector() + * @generated + * @ordered + */ + protected Connector connector; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ConnectorPropertyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.CONNECTOR_PROPERTY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Connector getConnector() { + if (connector != null && connector.eIsProxy()) { + InternalEObject oldConnector = (InternalEObject)connector; + connector = (Connector)eResolveProxy(oldConnector); + if (connector != oldConnector) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR, oldConnector, connector)); + } + } + return connector; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Connector basicGetConnector() { + return connector; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setConnector(Connector newConnector) { + Connector oldConnector = connector; + connector = newConnector; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR, oldConnector, connector)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + case BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR: + if (resolve) return getConnector(); + return basicGetConnector(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + case BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR: + setConnector((Connector)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)null); + return; + case BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR: + setConnector((Connector)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY: + return base_Property != null; + case BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR: + return connector != null; + } + return super.eIsSet(featureID); + } + +} //ConnectorPropertyImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/DirectedRelationshipPropertyPathImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/DirectedRelationshipPropertyPathImpl.java new file mode 100644 index 00000000000..294efe386ac --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/DirectedRelationshipPropertyPathImpl.java @@ -0,0 +1,416 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.DirectedRelationshipPropertyPath; + +import org.eclipse.uml2.uml.Classifier; +import org.eclipse.uml2.uml.DirectedRelationship; +import org.eclipse.uml2.uml.Property; +import org.eclipse.uml2.uml.Type; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Directed Relationship Property Path</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.DirectedRelationshipPropertyPathImpl#getBase_DirectedRelationship <em>Base Directed Relationship</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.DirectedRelationshipPropertyPathImpl#getSourcePropertyPath <em>Source Property Path</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.DirectedRelationshipPropertyPathImpl#getTargetPropertyPath <em>Target Property Path</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.DirectedRelationshipPropertyPathImpl#getSourceContext <em>Source Context</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.DirectedRelationshipPropertyPathImpl#getTargetContext <em>Target Context</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class DirectedRelationshipPropertyPathImpl extends MinimalEObjectImpl.Container implements DirectedRelationshipPropertyPath { + /** + * The cached value of the '{@link #getBase_DirectedRelationship() <em>Base Directed Relationship</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_DirectedRelationship() + * @generated + * @ordered + */ + protected DirectedRelationship base_DirectedRelationship; + + /** + * The cached value of the '{@link #getSourcePropertyPath() <em>Source Property Path</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSourcePropertyPath() + * @generated + * @ordered + */ + protected EList<Property> sourcePropertyPath; + + /** + * The cached value of the '{@link #getTargetPropertyPath() <em>Target Property Path</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTargetPropertyPath() + * @generated + * @ordered + */ + protected EList<Property> targetPropertyPath; + + /** + * The cached value of the '{@link #getSourceContext() <em>Source Context</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSourceContext() + * @generated + * @ordered + */ + protected Classifier sourceContext; + + /** + * The cached value of the '{@link #getTargetContext() <em>Target Context</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTargetContext() + * @generated + * @ordered + */ + protected Classifier targetContext; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DirectedRelationshipPropertyPathImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.DIRECTED_RELATIONSHIP_PROPERTY_PATH; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DirectedRelationship getBase_DirectedRelationship() { + if (base_DirectedRelationship != null && base_DirectedRelationship.eIsProxy()) { + InternalEObject oldBase_DirectedRelationship = (InternalEObject)base_DirectedRelationship; + base_DirectedRelationship = (DirectedRelationship)eResolveProxy(oldBase_DirectedRelationship); + if (base_DirectedRelationship != oldBase_DirectedRelationship) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__BASE_DIRECTED_RELATIONSHIP, oldBase_DirectedRelationship, base_DirectedRelationship)); + } + } + return base_DirectedRelationship; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DirectedRelationship basicGetBase_DirectedRelationship() { + return base_DirectedRelationship; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_DirectedRelationship(DirectedRelationship newBase_DirectedRelationship) { + DirectedRelationship oldBase_DirectedRelationship = base_DirectedRelationship; + base_DirectedRelationship = newBase_DirectedRelationship; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__BASE_DIRECTED_RELATIONSHIP, oldBase_DirectedRelationship, base_DirectedRelationship)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Property> getSourcePropertyPath() { + if (sourcePropertyPath == null) { + sourcePropertyPath = new EObjectResolvingEList<Property>(Property.class, this, BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_PROPERTY_PATH); + } + return sourcePropertyPath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getSourcePropertyPath(String name, Type type) { + return getSourcePropertyPath(name, type, false, null); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getSourcePropertyPath(String name, Type type, boolean ignoreCase, EClass eClass) { + sourcePropertyPathLoop: for (Property sourcePropertyPath : getSourcePropertyPath()) { + if (eClass != null && !eClass.isInstance(sourcePropertyPath)) + continue sourcePropertyPathLoop; + if (name != null && !(ignoreCase ? name.equalsIgnoreCase(sourcePropertyPath.getName()) : name.equals(sourcePropertyPath.getName()))) + continue sourcePropertyPathLoop; + if (type != null && !type.equals(sourcePropertyPath.getType())) + continue sourcePropertyPathLoop; + return sourcePropertyPath; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Property> getTargetPropertyPath() { + if (targetPropertyPath == null) { + targetPropertyPath = new EObjectResolvingEList<Property>(Property.class, this, BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_PROPERTY_PATH); + } + return targetPropertyPath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getTargetPropertyPath(String name, Type type) { + return getTargetPropertyPath(name, type, false, null); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getTargetPropertyPath(String name, Type type, boolean ignoreCase, EClass eClass) { + targetPropertyPathLoop: for (Property targetPropertyPath : getTargetPropertyPath()) { + if (eClass != null && !eClass.isInstance(targetPropertyPath)) + continue targetPropertyPathLoop; + if (name != null && !(ignoreCase ? name.equalsIgnoreCase(targetPropertyPath.getName()) : name.equals(targetPropertyPath.getName()))) + continue targetPropertyPathLoop; + if (type != null && !type.equals(targetPropertyPath.getType())) + continue targetPropertyPathLoop; + return targetPropertyPath; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Classifier getSourceContext() { + if (sourceContext != null && sourceContext.eIsProxy()) { + InternalEObject oldSourceContext = (InternalEObject)sourceContext; + sourceContext = (Classifier)eResolveProxy(oldSourceContext); + if (sourceContext != oldSourceContext) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_CONTEXT, oldSourceContext, sourceContext)); + } + } + return sourceContext; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Classifier basicGetSourceContext() { + return sourceContext; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSourceContext(Classifier newSourceContext) { + Classifier oldSourceContext = sourceContext; + sourceContext = newSourceContext; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_CONTEXT, oldSourceContext, sourceContext)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Classifier getTargetContext() { + if (targetContext != null && targetContext.eIsProxy()) { + InternalEObject oldTargetContext = (InternalEObject)targetContext; + targetContext = (Classifier)eResolveProxy(oldTargetContext); + if (targetContext != oldTargetContext) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_CONTEXT, oldTargetContext, targetContext)); + } + } + return targetContext; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Classifier basicGetTargetContext() { + return targetContext; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTargetContext(Classifier newTargetContext) { + Classifier oldTargetContext = targetContext; + targetContext = newTargetContext; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_CONTEXT, oldTargetContext, targetContext)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__BASE_DIRECTED_RELATIONSHIP: + if (resolve) return getBase_DirectedRelationship(); + return basicGetBase_DirectedRelationship(); + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_PROPERTY_PATH: + return getSourcePropertyPath(); + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_PROPERTY_PATH: + return getTargetPropertyPath(); + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_CONTEXT: + if (resolve) return getSourceContext(); + return basicGetSourceContext(); + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_CONTEXT: + if (resolve) return getTargetContext(); + return basicGetTargetContext(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__BASE_DIRECTED_RELATIONSHIP: + setBase_DirectedRelationship((DirectedRelationship)newValue); + return; + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_PROPERTY_PATH: + getSourcePropertyPath().clear(); + getSourcePropertyPath().addAll((Collection<? extends Property>)newValue); + return; + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_PROPERTY_PATH: + getTargetPropertyPath().clear(); + getTargetPropertyPath().addAll((Collection<? extends Property>)newValue); + return; + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_CONTEXT: + setSourceContext((Classifier)newValue); + return; + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_CONTEXT: + setTargetContext((Classifier)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__BASE_DIRECTED_RELATIONSHIP: + setBase_DirectedRelationship((DirectedRelationship)null); + return; + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_PROPERTY_PATH: + getSourcePropertyPath().clear(); + return; + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_PROPERTY_PATH: + getTargetPropertyPath().clear(); + return; + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_CONTEXT: + setSourceContext((Classifier)null); + return; + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_CONTEXT: + setTargetContext((Classifier)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__BASE_DIRECTED_RELATIONSHIP: + return base_DirectedRelationship != null; + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_PROPERTY_PATH: + return sourcePropertyPath != null && !sourcePropertyPath.isEmpty(); + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_PROPERTY_PATH: + return targetPropertyPath != null && !targetPropertyPath.isEmpty(); + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__SOURCE_CONTEXT: + return sourceContext != null; + case BlocksPackage.DIRECTED_RELATIONSHIP_PROPERTY_PATH__TARGET_CONTEXT: + return targetContext != null; + } + return super.eIsSet(featureID); + } + +} //DirectedRelationshipPropertyPathImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/DistributedPropertyImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/DistributedPropertyImpl.java new file mode 100644 index 00000000000..8718dbc69ed --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/DistributedPropertyImpl.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.DistributedProperty; + +import org.eclipse.uml2.uml.Property; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Distributed Property</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.DistributedPropertyImpl#getBase_Property <em>Base Property</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DistributedPropertyImpl extends MinimalEObjectImpl.Container implements DistributedProperty { + /** + * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DistributedPropertyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.DISTRIBUTED_PROPERTY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY: + return base_Property != null; + } + return super.eIsSet(featureID); + } + +} //DistributedPropertyImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ElementPropertyPathImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ElementPropertyPathImpl.java new file mode 100644 index 00000000000..798aeb5d2d2 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ElementPropertyPathImpl.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.ElementPropertyPath; + +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Property; +import org.eclipse.uml2.uml.Type; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Element Property Path</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.ElementPropertyPathImpl#getBase_Element <em>Base Element</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.ElementPropertyPathImpl#getPropertyPath <em>Property Path</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class ElementPropertyPathImpl extends MinimalEObjectImpl.Container implements ElementPropertyPath { + /** + * The cached value of the '{@link #getBase_Element() <em>Base Element</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Element() + * @generated + * @ordered + */ + protected Element base_Element; + + /** + * The cached value of the '{@link #getPropertyPath() <em>Property Path</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPropertyPath() + * @generated + * @ordered + */ + protected EList<Property> propertyPath; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ElementPropertyPathImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.ELEMENT_PROPERTY_PATH; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Element getBase_Element() { + if (base_Element != null && base_Element.eIsProxy()) { + InternalEObject oldBase_Element = (InternalEObject)base_Element; + base_Element = (Element)eResolveProxy(oldBase_Element); + if (base_Element != oldBase_Element) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.ELEMENT_PROPERTY_PATH__BASE_ELEMENT, oldBase_Element, base_Element)); + } + } + return base_Element; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Element basicGetBase_Element() { + return base_Element; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Element(Element newBase_Element) { + Element oldBase_Element = base_Element; + base_Element = newBase_Element; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.ELEMENT_PROPERTY_PATH__BASE_ELEMENT, oldBase_Element, base_Element)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Property> getPropertyPath() { + if (propertyPath == null) { + propertyPath = new EObjectResolvingEList<Property>(Property.class, this, BlocksPackage.ELEMENT_PROPERTY_PATH__PROPERTY_PATH); + } + return propertyPath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getPropertyPath(String name, Type type) { + return getPropertyPath(name, type, false, null); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getPropertyPath(String name, Type type, boolean ignoreCase, EClass eClass) { + propertyPathLoop: for (Property propertyPath : getPropertyPath()) { + if (eClass != null && !eClass.isInstance(propertyPath)) + continue propertyPathLoop; + if (name != null && !(ignoreCase ? name.equalsIgnoreCase(propertyPath.getName()) : name.equals(propertyPath.getName()))) + continue propertyPathLoop; + if (type != null && !type.equals(propertyPath.getType())) + continue propertyPathLoop; + return propertyPath; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.ELEMENT_PROPERTY_PATH__BASE_ELEMENT: + if (resolve) return getBase_Element(); + return basicGetBase_Element(); + case BlocksPackage.ELEMENT_PROPERTY_PATH__PROPERTY_PATH: + return getPropertyPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.ELEMENT_PROPERTY_PATH__BASE_ELEMENT: + setBase_Element((Element)newValue); + return; + case BlocksPackage.ELEMENT_PROPERTY_PATH__PROPERTY_PATH: + getPropertyPath().clear(); + getPropertyPath().addAll((Collection<? extends Property>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.ELEMENT_PROPERTY_PATH__BASE_ELEMENT: + setBase_Element((Element)null); + return; + case BlocksPackage.ELEMENT_PROPERTY_PATH__PROPERTY_PATH: + getPropertyPath().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.ELEMENT_PROPERTY_PATH__BASE_ELEMENT: + return base_Element != null; + case BlocksPackage.ELEMENT_PROPERTY_PATH__PROPERTY_PATH: + return propertyPath != null && !propertyPath.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ElementPropertyPathImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/EndPathMultiplicityImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/EndPathMultiplicityImpl.java new file mode 100644 index 00000000000..e2983b22ce1 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/EndPathMultiplicityImpl.java @@ -0,0 +1,286 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.EndPathMultiplicity; + +import org.eclipse.uml2.uml.Property; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>End Path Multiplicity</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.EndPathMultiplicityImpl#getBase_Property <em>Base Property</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.EndPathMultiplicityImpl#getLower <em>Lower</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.EndPathMultiplicityImpl#getUpper <em>Upper</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EndPathMultiplicityImpl extends MinimalEObjectImpl.Container implements EndPathMultiplicity { + /** + * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * The default value of the '{@link #getLower() <em>Lower</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLower() + * @generated + * @ordered + */ + protected static final int LOWER_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getLower() <em>Lower</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLower() + * @generated + * @ordered + */ + protected int lower = LOWER_EDEFAULT; + + /** + * The default value of the '{@link #getUpper() <em>Upper</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUpper() + * @generated + * @ordered + */ + protected static final int UPPER_EDEFAULT = -1; + + /** + * The cached value of the '{@link #getUpper() <em>Upper</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUpper() + * @generated + * @ordered + */ + protected int upper = UPPER_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EndPathMultiplicityImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.END_PATH_MULTIPLICITY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.END_PATH_MULTIPLICITY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.END_PATH_MULTIPLICITY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getLower() { + return lower; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLower(int newLower) { + int oldLower = lower; + lower = newLower; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.END_PATH_MULTIPLICITY__LOWER, oldLower, lower)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getUpper() { + return upper; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUpper(int newUpper) { + int oldUpper = upper; + upper = newUpper; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.END_PATH_MULTIPLICITY__UPPER, oldUpper, upper)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.END_PATH_MULTIPLICITY__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + case BlocksPackage.END_PATH_MULTIPLICITY__LOWER: + return getLower(); + case BlocksPackage.END_PATH_MULTIPLICITY__UPPER: + return getUpper(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.END_PATH_MULTIPLICITY__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + case BlocksPackage.END_PATH_MULTIPLICITY__LOWER: + setLower((Integer)newValue); + return; + case BlocksPackage.END_PATH_MULTIPLICITY__UPPER: + setUpper((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.END_PATH_MULTIPLICITY__BASE_PROPERTY: + setBase_Property((Property)null); + return; + case BlocksPackage.END_PATH_MULTIPLICITY__LOWER: + setLower(LOWER_EDEFAULT); + return; + case BlocksPackage.END_PATH_MULTIPLICITY__UPPER: + setUpper(UPPER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.END_PATH_MULTIPLICITY__BASE_PROPERTY: + return base_Property != null; + case BlocksPackage.END_PATH_MULTIPLICITY__LOWER: + return lower != LOWER_EDEFAULT; + case BlocksPackage.END_PATH_MULTIPLICITY__UPPER: + return upper != UPPER_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (lower: "); //$NON-NLS-1$ + result.append(lower); + result.append(", upper: "); //$NON-NLS-1$ + result.append(upper); + result.append(')'); + return result.toString(); + } + +} //EndPathMultiplicityImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/NestedConnectorEndImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/NestedConnectorEndImpl.java new file mode 100644 index 00000000000..782c256c447 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/NestedConnectorEndImpl.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.NestedConnectorEnd; + +import org.eclipse.uml2.uml.ConnectorEnd; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Nested Connector End</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.NestedConnectorEndImpl#getBase_ConnectorEnd <em>Base Connector End</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class NestedConnectorEndImpl extends ElementPropertyPathImpl implements NestedConnectorEnd { + /** + * The cached value of the '{@link #getBase_ConnectorEnd() <em>Base Connector End</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_ConnectorEnd() + * @generated + * @ordered + */ + protected ConnectorEnd base_ConnectorEnd; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NestedConnectorEndImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.NESTED_CONNECTOR_END; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConnectorEnd getBase_ConnectorEnd() { + if (base_ConnectorEnd != null && base_ConnectorEnd.eIsProxy()) { + InternalEObject oldBase_ConnectorEnd = (InternalEObject)base_ConnectorEnd; + base_ConnectorEnd = (ConnectorEnd)eResolveProxy(oldBase_ConnectorEnd); + if (base_ConnectorEnd != oldBase_ConnectorEnd) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END, oldBase_ConnectorEnd, base_ConnectorEnd)); + } + } + return base_ConnectorEnd; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConnectorEnd basicGetBase_ConnectorEnd() { + return base_ConnectorEnd; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_ConnectorEnd(ConnectorEnd newBase_ConnectorEnd) { + ConnectorEnd oldBase_ConnectorEnd = base_ConnectorEnd; + base_ConnectorEnd = newBase_ConnectorEnd; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END, oldBase_ConnectorEnd, base_ConnectorEnd)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END: + if (resolve) return getBase_ConnectorEnd(); + return basicGetBase_ConnectorEnd(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END: + setBase_ConnectorEnd((ConnectorEnd)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END: + setBase_ConnectorEnd((ConnectorEnd)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END: + return base_ConnectorEnd != null; + } + return super.eIsSet(featureID); + } + +} //NestedConnectorEndImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ParticipantPropertyImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ParticipantPropertyImpl.java new file mode 100644 index 00000000000..6ccd0348ecd --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ParticipantPropertyImpl.java @@ -0,0 +1,224 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.ParticipantProperty; + +import org.eclipse.uml2.uml.Property; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Participant Property</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.ParticipantPropertyImpl#getBase_Property <em>Base Property</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.ParticipantPropertyImpl#getEnd <em>End</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ParticipantPropertyImpl extends MinimalEObjectImpl.Container implements ParticipantProperty { + /** + * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Property() + * @generated + * @ordered + */ + protected Property base_Property; + + /** + * The cached value of the '{@link #getEnd() <em>End</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnd() + * @generated + * @ordered + */ + protected Property end; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ParticipantPropertyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.PARTICIPANT_PROPERTY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getBase_Property() { + if (base_Property != null && base_Property.eIsProxy()) { + InternalEObject oldBase_Property = (InternalEObject)base_Property; + base_Property = (Property)eResolveProxy(oldBase_Property); + if (base_Property != oldBase_Property) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + } + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property basicGetBase_Property() { + return base_Property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Property(Property newBase_Property) { + Property oldBase_Property = base_Property; + base_Property = newBase_Property; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property getEnd() { + if (end != null && end.eIsProxy()) { + InternalEObject oldEnd = (InternalEObject)end; + end = (Property)eResolveProxy(oldEnd); + if (end != oldEnd) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.PARTICIPANT_PROPERTY__END, oldEnd, end)); + } + } + return end; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property basicGetEnd() { + return end; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEnd(Property newEnd) { + Property oldEnd = end; + end = newEnd; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.PARTICIPANT_PROPERTY__END, oldEnd, end)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY: + if (resolve) return getBase_Property(); + return basicGetBase_Property(); + case BlocksPackage.PARTICIPANT_PROPERTY__END: + if (resolve) return getEnd(); + return basicGetEnd(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + case BlocksPackage.PARTICIPANT_PROPERTY__END: + setEnd((Property)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY: + setBase_Property((Property)null); + return; + case BlocksPackage.PARTICIPANT_PROPERTY__END: + setEnd((Property)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY: + return base_Property != null; + case BlocksPackage.PARTICIPANT_PROPERTY__END: + return end != null; + } + return super.eIsSet(featureID); + } + +} //ParticipantPropertyImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/PropertySpecificTypeImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/PropertySpecificTypeImpl.java new file mode 100644 index 00000000000..83307504af0 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/PropertySpecificTypeImpl.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.PropertySpecificType; + +import org.eclipse.uml2.uml.Classifier; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Property Specific Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.PropertySpecificTypeImpl#getBase_Classifier <em>Base Classifier</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PropertySpecificTypeImpl extends MinimalEObjectImpl.Container implements PropertySpecificType { + /** + * The cached value of the '{@link #getBase_Classifier() <em>Base Classifier</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Classifier() + * @generated + * @ordered + */ + protected Classifier base_Classifier; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PropertySpecificTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.PROPERTY_SPECIFIC_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Classifier getBase_Classifier() { + if (base_Classifier != null && base_Classifier.eIsProxy()) { + InternalEObject oldBase_Classifier = (InternalEObject)base_Classifier; + base_Classifier = (Classifier)eResolveProxy(oldBase_Classifier); + if (base_Classifier != oldBase_Classifier) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER, oldBase_Classifier, base_Classifier)); + } + } + return base_Classifier; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Classifier basicGetBase_Classifier() { + return base_Classifier; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Classifier(Classifier newBase_Classifier) { + Classifier oldBase_Classifier = base_Classifier; + base_Classifier = newBase_Classifier; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER, oldBase_Classifier, base_Classifier)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER: + if (resolve) return getBase_Classifier(); + return basicGetBase_Classifier(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER: + setBase_Classifier((Classifier)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER: + setBase_Classifier((Classifier)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER: + return base_Classifier != null; + } + return super.eIsSet(featureID); + } + +} //PropertySpecificTypeImpl diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ValueTypeImpl.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ValueTypeImpl.java new file mode 100644 index 00000000000..fbf4b90b84b --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14/src-gen/org/eclipse/papyrus/sysml14/blocks/internal/impl/ValueTypeImpl.java @@ -0,0 +1,285 @@ +/** + * Copyright (c) 2015 CEA LIST. + * + * 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 + */ +package org.eclipse.papyrus.sysml14.blocks.internal.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.sysml14.blocks.BlocksPackage; +import org.eclipse.papyrus.sysml14.blocks.ValueType; + +import org.eclipse.uml2.uml.DataType; +import org.eclipse.uml2.uml.InstanceSpecification; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Value Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.ValueTypeImpl#getBase_DataType <em>Base Data Type</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.ValueTypeImpl#getUnit <em>Unit</em>}</li> + * <li>{@link org.eclipse.papyrus.sysml14.blocks.internal.impl.ValueTypeImpl#getQuantityKind <em>Quantity Kind</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ValueTypeImpl extends MinimalEObjectImpl.Container implements ValueType { + /** + * The cached value of the '{@link #getBase_DataType() <em>Base Data Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_DataType() + * @generated + * @ordered + */ + protected DataType base_DataType; + + /** + * The cached value of the '{@link #getUnit() <em>Unit</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUnit() + * @generated + * @ordered + */ + protected InstanceSpecification unit; + + /** + * The cached value of the '{@link #getQuantityKind() <em>Quantity Kind</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getQuantityKind() + * @generated + * @ordered + */ + protected InstanceSpecification quantityKind; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ValueTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BlocksPackage.Literals.VALUE_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DataType getBase_DataType() { + if (base_DataType != null && base_DataType.eIsProxy()) { + InternalEObject oldBase_DataType = (InternalEObject)base_DataType; + base_DataType = (DataType)eResolveProxy(oldBase_DataType); + if (base_DataType != oldBase_DataType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + } + return base_DataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DataType basicGetBase_DataType() { + return base_DataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_DataType(DataType newBase_DataType) { + DataType oldBase_DataType = base_DataType; + base_DataType = newBase_DataType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InstanceSpecification getUnit() { + if (unit != null && unit.eIsProxy()) { + InternalEObject oldUnit = (InternalEObject)unit; + unit = (InstanceSpecification)eResolveProxy(oldUnit); + if (unit != oldUnit) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.VALUE_TYPE__UNIT, oldUnit, unit)); + } + } + return unit; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InstanceSpecification basicGetUnit() { + return unit; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUnit(InstanceSpecification newUnit) { + InstanceSpecification oldUnit = unit; + unit = newUnit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.VALUE_TYPE__UNIT, oldUnit, unit)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InstanceSpecification getQuantityKind() { + if (quantityKind != null && quantityKind.eIsProxy()) { + InternalEObject oldQuantityKind = (InternalEObject)quantityKind; + quantityKind = (InstanceSpecification)eResolveProxy(oldQuantityKind); + if (quantityKind != oldQuantityKind) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.VALUE_TYPE__QUANTITY_KIND, oldQuantityKind, quantityKind)); + } + } + return quantityKind; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InstanceSpecification basicGetQuantityKind() { + return quantityKind; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setQuantityKind(InstanceSpecification newQuantityKind) { + InstanceSpecification oldQuantityKind = quantityKind; + quantityKind = newQuantityKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.VALUE_TYPE__QUANTITY_KIND, oldQuantityKind, quantityKind)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE: + if (resolve) return getBase_DataType(); + return basicGetBase_DataType(); + case BlocksPackage.VALUE_TYPE__UNIT: + if (resolve) return getUnit(); + return basicGetUnit(); + case BlocksPackage.VALUE_TYPE__QUANTITY_KIND: + if (resolve) return getQuantityKind(); + return basicGetQuantityKind(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)newValue); + return; + case BlocksPackage.VALUE_TYPE__UNIT: + setUnit((InstanceSpecification)newValue); + return; + case BlocksPackage.VALUE_TYPE__QUANTITY_KIND: + setQuantityKind((InstanceSpecification)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE: + setBase_DataType((DataType)null); + return; + case BlocksPackage.VALUE_TYPE__UNIT: + setUnit((InstanceSpecification)null); + return; + case BlocksPackage.VALUE_TYPE__QUANTITY_KIND: + setQuantityKind((InstanceSpecification)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE: + return base_DataType != null; + case BlocksPackage.VALUE_TYPE__UNIT: + return unit != null; + case BlocksPackage.VALUE_TYPE__QUANTITY_KIND: + return quantityKind != null; + } + return super.eIsSet(featureID); + } + +} //ValueTypeImpl |