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

org.camunda.bpmn.model.impl.ExpressionImpl Maven / Gradle / Ivy

/*
 * 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.camunda.bpmn.model.impl;

import org.camunda.bpmn.model.CamundaPackage;
import org.camunda.bpmn.model.Expression;

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

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

import org.eclipse.emf.ecore.util.BasicFeatureMap;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.InternalEList;

/**
 * 
 * An implementation of the model object 'Expression'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.camunda.bpmn.model.impl.ExpressionImpl#getBody Body}
  • *
  • {@link org.camunda.bpmn.model.impl.ExpressionImpl#getMixed Mixed}
  • *
* * @generated */ public class ExpressionImpl extends org.omg.bpmn.bpmn2.impl.ExpressionImpl implements Expression { /** * The default value of the '{@link #getBody() Body}' attribute. * * * @see #getBody() * @generated * @ordered */ protected static final String BODY_EDEFAULT = null; /** * The cached value of the '{@link #getMixed() Mixed}' attribute list. * * * @see #getMixed() * @generated * @ordered */ protected FeatureMap mixed; /** * * * @generated */ protected ExpressionImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return CamundaPackage.Literals.EXPRESSION; } /** * * * @generated */ @Override public String getBody() { // TODO: implement this method to return the 'Body' attribute // Ensure that you remove @generated or mark it @generated NOT throw new UnsupportedOperationException(); } /** * * * @generated */ @Override public void setBody(String newBody) { // TODO: implement this method to set the 'Body' attribute // Ensure that you remove @generated or mark it @generated NOT throw new UnsupportedOperationException(); } /** * * * @generated */ @Override public FeatureMap getMixed() { if (mixed == null) { mixed = new BasicFeatureMap(this, CamundaPackage.EXPRESSION__MIXED); } return mixed; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case CamundaPackage.EXPRESSION__MIXED: return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case CamundaPackage.EXPRESSION__BODY: return getBody(); case CamundaPackage.EXPRESSION__MIXED: if (coreType) return getMixed(); return ((FeatureMap.Internal)getMixed()).getWrapper(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case CamundaPackage.EXPRESSION__BODY: setBody((String)newValue); return; case CamundaPackage.EXPRESSION__MIXED: ((FeatureMap.Internal)getMixed()).set(newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case CamundaPackage.EXPRESSION__BODY: setBody(BODY_EDEFAULT); return; case CamundaPackage.EXPRESSION__MIXED: getMixed().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case CamundaPackage.EXPRESSION__BODY: return BODY_EDEFAULT == null ? getBody() != null : !BODY_EDEFAULT.equals(getBody()); case CamundaPackage.EXPRESSION__MIXED: return mixed != null && !mixed.isEmpty(); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuilder result = new StringBuilder(super.toString()); result.append(" (mixed: "); result.append(mixed); result.append(')'); return result.toString(); } } //ExpressionImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy