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

org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2012 - 2024 Data In Motion and others.
 * All rights reserved. 
 * 
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 * 
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 *      Mark Hoffmann - initial API and implementation
 */
package org.omg.bpmn.bpmn2.impl;

import java.util.Collection;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

import org.omg.bpmn.bpmn2.Bpmn2Package;
import org.omg.bpmn.bpmn2.ComplexBehaviorDefinition;
import org.omg.bpmn.bpmn2.DataInput;
import org.omg.bpmn.bpmn2.DataOutput;
import org.omg.bpmn.bpmn2.EventDefinition;
import org.omg.bpmn.bpmn2.Expression;
import org.omg.bpmn.bpmn2.ItemAwareElement;
import org.omg.bpmn.bpmn2.MultiInstanceBehavior;
import org.omg.bpmn.bpmn2.MultiInstanceLoopCharacteristics;

/**
 * 
 * An implementation of the model object 'Multi Instance Loop Characteristics'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#getLoopCardinality Loop Cardinality}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#getLoopDataInputRef Loop Data Input Ref}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#getLoopDataOutputRef Loop Data Output Ref}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#getInputDataItem Input Data Item}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#getOutputDataItem Output Data Item}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#getComplexBehaviorDefinition Complex Behavior Definition}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#getCompletionCondition Completion Condition}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#getBehavior Behavior}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#isIsSequential Is Sequential}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#getNoneBehaviorEventRef None Behavior Event Ref}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.MultiInstanceLoopCharacteristicsImpl#getOneBehaviorEventRef One Behavior Event Ref}
  • *
* * @generated */ public class MultiInstanceLoopCharacteristicsImpl extends LoopCharacteristicsImpl implements MultiInstanceLoopCharacteristics { /** * The cached value of the '{@link #getLoopCardinality() Loop Cardinality}' containment reference. * * * @see #getLoopCardinality() * @generated * @ordered */ protected Expression loopCardinality; /** * The cached value of the '{@link #getLoopDataInputRef() Loop Data Input Ref}' reference. * * * @see #getLoopDataInputRef() * @generated * @ordered */ protected ItemAwareElement loopDataInputRef; /** * The cached value of the '{@link #getLoopDataOutputRef() Loop Data Output Ref}' reference. * * * @see #getLoopDataOutputRef() * @generated * @ordered */ protected ItemAwareElement loopDataOutputRef; /** * The cached value of the '{@link #getInputDataItem() Input Data Item}' containment reference. * * * @see #getInputDataItem() * @generated * @ordered */ protected DataInput inputDataItem; /** * The cached value of the '{@link #getOutputDataItem() Output Data Item}' containment reference. * * * @see #getOutputDataItem() * @generated * @ordered */ protected DataOutput outputDataItem; /** * The cached value of the '{@link #getComplexBehaviorDefinition() Complex Behavior Definition}' containment reference list. * * * @see #getComplexBehaviorDefinition() * @generated * @ordered */ protected EList complexBehaviorDefinition; /** * The cached value of the '{@link #getCompletionCondition() Completion Condition}' containment reference. * * * @see #getCompletionCondition() * @generated * @ordered */ protected Expression completionCondition; /** * The default value of the '{@link #getBehavior() Behavior}' attribute. * * * @see #getBehavior() * @generated * @ordered */ protected static final MultiInstanceBehavior BEHAVIOR_EDEFAULT = MultiInstanceBehavior.ALL; /** * The cached value of the '{@link #getBehavior() Behavior}' attribute. * * * @see #getBehavior() * @generated * @ordered */ protected MultiInstanceBehavior behavior = BEHAVIOR_EDEFAULT; /** * The default value of the '{@link #isIsSequential() Is Sequential}' attribute. * * * @see #isIsSequential() * @generated * @ordered */ protected static final boolean IS_SEQUENTIAL_EDEFAULT = false; /** * The cached value of the '{@link #isIsSequential() Is Sequential}' attribute. * * * @see #isIsSequential() * @generated * @ordered */ protected boolean isSequential = IS_SEQUENTIAL_EDEFAULT; /** * The cached value of the '{@link #getNoneBehaviorEventRef() None Behavior Event Ref}' reference. * * * @see #getNoneBehaviorEventRef() * @generated * @ordered */ protected EventDefinition noneBehaviorEventRef; /** * The cached value of the '{@link #getOneBehaviorEventRef() One Behavior Event Ref}' reference. * * * @see #getOneBehaviorEventRef() * @generated * @ordered */ protected EventDefinition oneBehaviorEventRef; /** * * * @generated */ protected MultiInstanceLoopCharacteristicsImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return Bpmn2Package.eINSTANCE.getMultiInstanceLoopCharacteristics(); } /** * * * @generated */ @Override public Expression getLoopCardinality() { return loopCardinality; } /** * * * @generated */ public NotificationChain basicSetLoopCardinality(Expression newLoopCardinality, NotificationChain msgs) { Expression oldLoopCardinality = loopCardinality; loopCardinality = newLoopCardinality; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_CARDINALITY, oldLoopCardinality, newLoopCardinality); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ @Override public void setLoopCardinality(Expression newLoopCardinality) { if (newLoopCardinality != loopCardinality) { NotificationChain msgs = null; if (loopCardinality != null) msgs = ((InternalEObject)loopCardinality).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_CARDINALITY, null, msgs); if (newLoopCardinality != null) msgs = ((InternalEObject)newLoopCardinality).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_CARDINALITY, null, msgs); msgs = basicSetLoopCardinality(newLoopCardinality, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_CARDINALITY, newLoopCardinality, newLoopCardinality)); } /** * * * @generated */ @Override public ItemAwareElement getLoopDataInputRef() { if (loopDataInputRef != null && loopDataInputRef.eIsProxy()) { InternalEObject oldLoopDataInputRef = (InternalEObject)loopDataInputRef; loopDataInputRef = (ItemAwareElement)eResolveProxy(oldLoopDataInputRef); if (loopDataInputRef != oldLoopDataInputRef) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_INPUT_REF, oldLoopDataInputRef, loopDataInputRef)); } } return loopDataInputRef; } /** * * * @generated */ public ItemAwareElement basicGetLoopDataInputRef() { return loopDataInputRef; } /** * * * @generated */ @Override public void setLoopDataInputRef(ItemAwareElement newLoopDataInputRef) { ItemAwareElement oldLoopDataInputRef = loopDataInputRef; loopDataInputRef = newLoopDataInputRef; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_INPUT_REF, oldLoopDataInputRef, loopDataInputRef)); } /** * * * @generated */ @Override public ItemAwareElement getLoopDataOutputRef() { if (loopDataOutputRef != null && loopDataOutputRef.eIsProxy()) { InternalEObject oldLoopDataOutputRef = (InternalEObject)loopDataOutputRef; loopDataOutputRef = (ItemAwareElement)eResolveProxy(oldLoopDataOutputRef); if (loopDataOutputRef != oldLoopDataOutputRef) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_OUTPUT_REF, oldLoopDataOutputRef, loopDataOutputRef)); } } return loopDataOutputRef; } /** * * * @generated */ public ItemAwareElement basicGetLoopDataOutputRef() { return loopDataOutputRef; } /** * * * @generated */ @Override public void setLoopDataOutputRef(ItemAwareElement newLoopDataOutputRef) { ItemAwareElement oldLoopDataOutputRef = loopDataOutputRef; loopDataOutputRef = newLoopDataOutputRef; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_OUTPUT_REF, oldLoopDataOutputRef, loopDataOutputRef)); } /** * * * @generated */ @Override public DataInput getInputDataItem() { return inputDataItem; } /** * * * @generated */ public NotificationChain basicSetInputDataItem(DataInput newInputDataItem, NotificationChain msgs) { DataInput oldInputDataItem = inputDataItem; inputDataItem = newInputDataItem; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__INPUT_DATA_ITEM, oldInputDataItem, newInputDataItem); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ @Override public void setInputDataItem(DataInput newInputDataItem) { if (newInputDataItem != inputDataItem) { NotificationChain msgs = null; if (inputDataItem != null) msgs = ((InternalEObject)inputDataItem).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__INPUT_DATA_ITEM, null, msgs); if (newInputDataItem != null) msgs = ((InternalEObject)newInputDataItem).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__INPUT_DATA_ITEM, null, msgs); msgs = basicSetInputDataItem(newInputDataItem, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__INPUT_DATA_ITEM, newInputDataItem, newInputDataItem)); } /** * * * @generated */ @Override public DataOutput getOutputDataItem() { return outputDataItem; } /** * * * @generated */ public NotificationChain basicSetOutputDataItem(DataOutput newOutputDataItem, NotificationChain msgs) { DataOutput oldOutputDataItem = outputDataItem; outputDataItem = newOutputDataItem; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__OUTPUT_DATA_ITEM, oldOutputDataItem, newOutputDataItem); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ @Override public void setOutputDataItem(DataOutput newOutputDataItem) { if (newOutputDataItem != outputDataItem) { NotificationChain msgs = null; if (outputDataItem != null) msgs = ((InternalEObject)outputDataItem).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__OUTPUT_DATA_ITEM, null, msgs); if (newOutputDataItem != null) msgs = ((InternalEObject)newOutputDataItem).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__OUTPUT_DATA_ITEM, null, msgs); msgs = basicSetOutputDataItem(newOutputDataItem, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__OUTPUT_DATA_ITEM, newOutputDataItem, newOutputDataItem)); } /** * * * @generated */ @Override public EList getComplexBehaviorDefinition() { if (complexBehaviorDefinition == null) { complexBehaviorDefinition = new EObjectContainmentEList(ComplexBehaviorDefinition.class, this, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLEX_BEHAVIOR_DEFINITION); } return complexBehaviorDefinition; } /** * * * @generated */ @Override public Expression getCompletionCondition() { return completionCondition; } /** * * * @generated */ public NotificationChain basicSetCompletionCondition(Expression newCompletionCondition, NotificationChain msgs) { Expression oldCompletionCondition = completionCondition; completionCondition = newCompletionCondition; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLETION_CONDITION, oldCompletionCondition, newCompletionCondition); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ @Override public void setCompletionCondition(Expression newCompletionCondition) { if (newCompletionCondition != completionCondition) { NotificationChain msgs = null; if (completionCondition != null) msgs = ((InternalEObject)completionCondition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLETION_CONDITION, null, msgs); if (newCompletionCondition != null) msgs = ((InternalEObject)newCompletionCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLETION_CONDITION, null, msgs); msgs = basicSetCompletionCondition(newCompletionCondition, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLETION_CONDITION, newCompletionCondition, newCompletionCondition)); } /** * * * @generated */ @Override public MultiInstanceBehavior getBehavior() { return behavior; } /** * * * @generated */ @Override public void setBehavior(MultiInstanceBehavior newBehavior) { MultiInstanceBehavior oldBehavior = behavior; behavior = newBehavior == null ? BEHAVIOR_EDEFAULT : newBehavior; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__BEHAVIOR, oldBehavior, behavior)); } /** * * * @generated */ @Override public boolean isIsSequential() { return isSequential; } /** * * * @generated */ @Override public void setIsSequential(boolean newIsSequential) { boolean oldIsSequential = isSequential; isSequential = newIsSequential; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__IS_SEQUENTIAL, oldIsSequential, isSequential)); } /** * * * @generated */ @Override public EventDefinition getNoneBehaviorEventRef() { if (noneBehaviorEventRef != null && noneBehaviorEventRef.eIsProxy()) { InternalEObject oldNoneBehaviorEventRef = (InternalEObject)noneBehaviorEventRef; noneBehaviorEventRef = (EventDefinition)eResolveProxy(oldNoneBehaviorEventRef); if (noneBehaviorEventRef != oldNoneBehaviorEventRef) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__NONE_BEHAVIOR_EVENT_REF, oldNoneBehaviorEventRef, noneBehaviorEventRef)); } } return noneBehaviorEventRef; } /** * * * @generated */ public EventDefinition basicGetNoneBehaviorEventRef() { return noneBehaviorEventRef; } /** * * * @generated */ @Override public void setNoneBehaviorEventRef(EventDefinition newNoneBehaviorEventRef) { EventDefinition oldNoneBehaviorEventRef = noneBehaviorEventRef; noneBehaviorEventRef = newNoneBehaviorEventRef; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__NONE_BEHAVIOR_EVENT_REF, oldNoneBehaviorEventRef, noneBehaviorEventRef)); } /** * * * @generated */ @Override public EventDefinition getOneBehaviorEventRef() { if (oneBehaviorEventRef != null && oneBehaviorEventRef.eIsProxy()) { InternalEObject oldOneBehaviorEventRef = (InternalEObject)oneBehaviorEventRef; oneBehaviorEventRef = (EventDefinition)eResolveProxy(oldOneBehaviorEventRef); if (oneBehaviorEventRef != oldOneBehaviorEventRef) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__ONE_BEHAVIOR_EVENT_REF, oldOneBehaviorEventRef, oneBehaviorEventRef)); } } return oneBehaviorEventRef; } /** * * * @generated */ public EventDefinition basicGetOneBehaviorEventRef() { return oneBehaviorEventRef; } /** * * * @generated */ @Override public void setOneBehaviorEventRef(EventDefinition newOneBehaviorEventRef) { EventDefinition oldOneBehaviorEventRef = oneBehaviorEventRef; oneBehaviorEventRef = newOneBehaviorEventRef; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__ONE_BEHAVIOR_EVENT_REF, oldOneBehaviorEventRef, oneBehaviorEventRef)); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_CARDINALITY: return basicSetLoopCardinality(null, msgs); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__INPUT_DATA_ITEM: return basicSetInputDataItem(null, msgs); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__OUTPUT_DATA_ITEM: return basicSetOutputDataItem(null, msgs); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLEX_BEHAVIOR_DEFINITION: return ((InternalEList)getComplexBehaviorDefinition()).basicRemove(otherEnd, msgs); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLETION_CONDITION: return basicSetCompletionCondition(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_CARDINALITY: return getLoopCardinality(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_INPUT_REF: if (resolve) return getLoopDataInputRef(); return basicGetLoopDataInputRef(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_OUTPUT_REF: if (resolve) return getLoopDataOutputRef(); return basicGetLoopDataOutputRef(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__INPUT_DATA_ITEM: return getInputDataItem(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__OUTPUT_DATA_ITEM: return getOutputDataItem(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLEX_BEHAVIOR_DEFINITION: return getComplexBehaviorDefinition(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLETION_CONDITION: return getCompletionCondition(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__BEHAVIOR: return getBehavior(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__IS_SEQUENTIAL: return isIsSequential(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__NONE_BEHAVIOR_EVENT_REF: if (resolve) return getNoneBehaviorEventRef(); return basicGetNoneBehaviorEventRef(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__ONE_BEHAVIOR_EVENT_REF: if (resolve) return getOneBehaviorEventRef(); return basicGetOneBehaviorEventRef(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_CARDINALITY: setLoopCardinality((Expression)newValue); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_INPUT_REF: setLoopDataInputRef((ItemAwareElement)newValue); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_OUTPUT_REF: setLoopDataOutputRef((ItemAwareElement)newValue); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__INPUT_DATA_ITEM: setInputDataItem((DataInput)newValue); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__OUTPUT_DATA_ITEM: setOutputDataItem((DataOutput)newValue); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLEX_BEHAVIOR_DEFINITION: getComplexBehaviorDefinition().clear(); getComplexBehaviorDefinition().addAll((Collection)newValue); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLETION_CONDITION: setCompletionCondition((Expression)newValue); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__BEHAVIOR: setBehavior((MultiInstanceBehavior)newValue); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__IS_SEQUENTIAL: setIsSequential((Boolean)newValue); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__NONE_BEHAVIOR_EVENT_REF: setNoneBehaviorEventRef((EventDefinition)newValue); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__ONE_BEHAVIOR_EVENT_REF: setOneBehaviorEventRef((EventDefinition)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_CARDINALITY: setLoopCardinality((Expression)null); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_INPUT_REF: setLoopDataInputRef((ItemAwareElement)null); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_OUTPUT_REF: setLoopDataOutputRef((ItemAwareElement)null); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__INPUT_DATA_ITEM: setInputDataItem((DataInput)null); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__OUTPUT_DATA_ITEM: setOutputDataItem((DataOutput)null); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLEX_BEHAVIOR_DEFINITION: getComplexBehaviorDefinition().clear(); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLETION_CONDITION: setCompletionCondition((Expression)null); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__BEHAVIOR: setBehavior(BEHAVIOR_EDEFAULT); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__IS_SEQUENTIAL: setIsSequential(IS_SEQUENTIAL_EDEFAULT); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__NONE_BEHAVIOR_EVENT_REF: setNoneBehaviorEventRef((EventDefinition)null); return; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__ONE_BEHAVIOR_EVENT_REF: setOneBehaviorEventRef((EventDefinition)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_CARDINALITY: return loopCardinality != null; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_INPUT_REF: return loopDataInputRef != null; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__LOOP_DATA_OUTPUT_REF: return loopDataOutputRef != null; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__INPUT_DATA_ITEM: return inputDataItem != null; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__OUTPUT_DATA_ITEM: return outputDataItem != null; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLEX_BEHAVIOR_DEFINITION: return complexBehaviorDefinition != null && !complexBehaviorDefinition.isEmpty(); case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__COMPLETION_CONDITION: return completionCondition != null; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__BEHAVIOR: return behavior != BEHAVIOR_EDEFAULT; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__IS_SEQUENTIAL: return isSequential != IS_SEQUENTIAL_EDEFAULT; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__NONE_BEHAVIOR_EVENT_REF: return noneBehaviorEventRef != null; case Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__ONE_BEHAVIOR_EVENT_REF: return oneBehaviorEventRef != null; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuilder result = new StringBuilder(super.toString()); result.append(" (behavior: "); result.append(behavior); result.append(", isSequential: "); result.append(isSequential); result.append(')'); return result.toString(); } } //MultiInstanceLoopCharacteristicsImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy