org.eclipse.bpmn2.impl.CallActivityImpl Maven / Gradle / Ivy
/**
*
*
* 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 org.eclipse.bpmn2.Bpmn2Package;
import org.eclipse.bpmn2.CallActivity;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
*
* An implementation of the model object 'Call Activity'.
*
*
* The following features are implemented:
*
*
* - {@link org.eclipse.bpmn2.impl.CallActivityImpl#getCalledElement Called Element}
*
*
* @generated
*/
public class CallActivityImpl extends ActivityImpl implements CallActivity {
/**
* The default value of the '{@link #getCalledElement() Called Element}' attribute.
*
*
* @see #getCalledElement()
* @generated
* @ordered
*/
protected static final String CALLED_ELEMENT_EDEFAULT = null;
/**
* The cached value of the '{@link #getCalledElement() Called Element}' attribute.
*
*
* @see #getCalledElement()
* @generated
* @ordered
*/
@GwtTransient
protected String calledElement = CALLED_ELEMENT_EDEFAULT;
/**
*
*
* @generated
*/
protected CallActivityImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Bpmn2Package.Literals.CALL_ACTIVITY;
}
/**
*
*
* @generated
*/
@Override
public String getCalledElement() {
return calledElement;
}
/**
*
*
* @generated
*/
@Override
public void setCalledElement(String newCalledElement) {
String oldCalledElement = calledElement;
calledElement = newCalledElement;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.CALL_ACTIVITY__CALLED_ELEMENT,
oldCalledElement, calledElement));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Bpmn2Package.CALL_ACTIVITY__CALLED_ELEMENT:
return getCalledElement();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Bpmn2Package.CALL_ACTIVITY__CALLED_ELEMENT:
setCalledElement((String) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Bpmn2Package.CALL_ACTIVITY__CALLED_ELEMENT:
setCalledElement(CALLED_ELEMENT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Bpmn2Package.CALL_ACTIVITY__CALLED_ELEMENT:
return CALLED_ELEMENT_EDEFAULT == null ? calledElement != null
: !CALLED_ELEMENT_EDEFAULT.equals(calledElement);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (calledElement: ");
result.append(calledElement);
result.append(')');
return result.toString();
}
} //CallActivityImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy