org.eclipse.bpmn2.impl.InputOutputSpecificationImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kie-wb-common-stunner-bpmn-emf Show documentation
Show all versions of kie-wb-common-stunner-bpmn-emf Show documentation
Kie Workbench - Common - Stunner - BPMN Definition Set - GWT Support for Eclipse EMF/XMI
/**
*
*
* Copyright (c) 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Reiner Hille-Doering (SAP AG) - initial API and implementation and/or initial documentation
*
*
*/
package org.eclipse.bpmn2.impl;
import com.google.gwt.user.client.rpc.GwtTransient;
import java.util.Collection;
import org.eclipse.bpmn2.Bpmn2Package;
import org.eclipse.bpmn2.DataInput;
import org.eclipse.bpmn2.DataOutput;
import org.eclipse.bpmn2.InputOutputSpecification;
import org.eclipse.bpmn2.InputSet;
import org.eclipse.bpmn2.OutputSet;
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;
/**
*
* An implementation of the model object 'Input Output Specification'.
*
*
* The following features are implemented:
*
*
* - {@link org.eclipse.bpmn2.impl.InputOutputSpecificationImpl#getDataInputs Data Inputs}
* - {@link org.eclipse.bpmn2.impl.InputOutputSpecificationImpl#getDataOutputs Data Outputs}
* - {@link org.eclipse.bpmn2.impl.InputOutputSpecificationImpl#getInputSets Input Sets}
* - {@link org.eclipse.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
*/
@GwtTransient
protected EList dataInputs;
/**
* The cached value of the '{@link #getDataOutputs() Data Outputs}' containment reference list.
*
*
* @see #getDataOutputs()
* @generated
* @ordered
*/
@GwtTransient
protected EList dataOutputs;
/**
* The cached value of the '{@link #getInputSets() Input Sets}' containment reference list.
*
*
* @see #getInputSets()
* @generated
* @ordered
*/
@GwtTransient
protected EList inputSets;
/**
* The cached value of the '{@link #getOutputSets() Output Sets}' containment reference list.
*
*
* @see #getOutputSets()
* @generated
* @ordered
*/
@GwtTransient
protected EList outputSets;
/**
*
*
* @generated
*/
protected InputOutputSpecificationImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Bpmn2Package.Literals.INPUT_OUTPUT_SPECIFICATION;
}
/**
*
*
* @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 extends DataInput>) newValue);
return;
case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__DATA_OUTPUTS:
getDataOutputs().clear();
getDataOutputs().addAll((Collection extends DataOutput>) newValue);
return;
case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__INPUT_SETS:
getInputSets().clear();
getInputSets().addAll((Collection extends InputSet>) newValue);
return;
case Bpmn2Package.INPUT_OUTPUT_SPECIFICATION__OUTPUT_SETS:
getOutputSets().clear();
getOutputSets().addAll((Collection extends OutputSet>) 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 - 2025 Weber Informatics LLC | Privacy Policy