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

org.omg.bpmn.bpmn2.impl.InputOutputSpecificationImpl 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.NotificationChain;

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

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

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

import org.omg.bpmn.bpmn2.Bpmn2Package;
import org.omg.bpmn.bpmn2.DataInput;
import org.omg.bpmn.bpmn2.DataOutput;
import org.omg.bpmn.bpmn2.InputOutputSpecification;
import org.omg.bpmn.bpmn2.InputSet;
import org.omg.bpmn.bpmn2.OutputSet;

/**
 * 
 * An implementation of the model object 'Input Output Specification'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.omg.bpmn.bpmn2.impl.InputOutputSpecificationImpl#getDataInputs Data Inputs}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.InputOutputSpecificationImpl#getDataOutputs Data Outputs}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.InputOutputSpecificationImpl#getInputSets Input Sets}
  • *
  • {@link org.omg.bpmn.bpmn2.impl.InputOutputSpecificationImpl#getOutputSets Output Sets}
  • *
* * @generated */ public class InputOutputSpecificationImpl extends BaseElementImpl implements InputOutputSpecification { /** * The cached value of the '{@link #getDataInputs() Data Inputs}' containment reference list. * * * @see #getDataInputs() * @generated * @ordered */ protected EList dataInputs; /** * The cached value of the '{@link #getDataOutputs() Data Outputs}' containment reference list. * * * @see #getDataOutputs() * @generated * @ordered */ protected EList dataOutputs; /** * The cached value of the '{@link #getInputSets() Input Sets}' containment reference list. * * * @see #getInputSets() * @generated * @ordered */ protected EList inputSets; /** * The cached value of the '{@link #getOutputSets() Output Sets}' containment reference list. * * * @see #getOutputSets() * @generated * @ordered */ protected EList outputSets; /** * * * @generated */ protected InputOutputSpecificationImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return Bpmn2Package.eINSTANCE.getInputOutputSpecification(); } /** * * * @generated */ @Override public EList getDataInputs() { if (dataInputs == null) { dataInputs = new EObjectContainmentEList(DataInput.class, this, Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_INPUTS); } return dataInputs; } /** * * * @generated */ @Override public EList getDataOutputs() { if (dataOutputs == null) { dataOutputs = new EObjectContainmentEList(DataOutput.class, this, Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_OUTPUTS); } return dataOutputs; } /** * * * @generated */ @Override public EList getInputSets() { if (inputSets == null) { inputSets = new EObjectContainmentEList(InputSet.class, this, Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__INPUT_SETS); } return inputSets; } /** * * * @generated */ @Override public EList getOutputSets() { if (outputSets == null) { outputSets = new EObjectContainmentEList(OutputSet.class, this, Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__OUTPUT_SETS); } return outputSets; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_INPUTS: return ((InternalEList)getDataInputs()).basicRemove(otherEnd, msgs); case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_OUTPUTS: return ((InternalEList)getDataOutputs()).basicRemove(otherEnd, msgs); case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__INPUT_SETS: return ((InternalEList)getInputSets()).basicRemove(otherEnd, msgs); case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__OUTPUT_SETS: return ((InternalEList)getOutputSets()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_INPUTS: return getDataInputs(); case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_OUTPUTS: return getDataOutputs(); case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__INPUT_SETS: return getInputSets(); case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__OUTPUT_SETS: return getOutputSets(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_INPUTS: getDataInputs().clear(); getDataInputs().addAll((Collection)newValue); return; case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_OUTPUTS: getDataOutputs().clear(); getDataOutputs().addAll((Collection)newValue); return; case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__INPUT_SETS: getInputSets().clear(); getInputSets().addAll((Collection)newValue); return; case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__OUTPUT_SETS: getOutputSets().clear(); getOutputSets().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_INPUTS: getDataInputs().clear(); return; case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_OUTPUTS: getDataOutputs().clear(); return; case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__INPUT_SETS: getInputSets().clear(); return; case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__OUTPUT_SETS: getOutputSets().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_INPUTS: return dataInputs != null && !dataInputs.isEmpty(); case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_OUTPUTS: return dataOutputs != null && !dataOutputs.isEmpty(); case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__INPUT_SETS: return inputSets != null && !inputSets.isEmpty(); case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__OUTPUT_SETS: return outputSets != null && !outputSets.isEmpty(); } return super.eIsSet(featureID); } } //InputOutputSpecificationImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy