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

org.eclipse.bpmn2.impl.GroupImpl Maven / Gradle / Ivy

There is a newer version: 7.54.0.Final
Show newest version
/**
 * 
 * 
 * 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.CategoryValue;
import org.eclipse.bpmn2.Group;

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

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

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

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

* The following features are implemented: *

*
    *
  • {@link org.eclipse.bpmn2.impl.GroupImpl#getCategoryValueRef Category Value Ref}
  • *
* * @generated */ public class GroupImpl extends ArtifactImpl implements Group { /** * The cached value of the '{@link #getCategoryValueRef() Category Value Ref}' reference. * * * @see #getCategoryValueRef() * @generated * @ordered */ @GwtTransient protected CategoryValue categoryValueRef; /** * * * @generated */ protected GroupImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return Bpmn2Package.Literals.GROUP; } /** * * * @generated */ @Override public CategoryValue getCategoryValueRef() { if (categoryValueRef != null && categoryValueRef.eIsProxy()) { InternalEObject oldCategoryValueRef = (InternalEObject) categoryValueRef; categoryValueRef = (CategoryValue) eResolveProxy(oldCategoryValueRef); if (categoryValueRef != oldCategoryValueRef) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Bpmn2Package.GROUP__CATEGORY_VALUE_REF, oldCategoryValueRef, categoryValueRef)); } } return categoryValueRef; } /** * * * @generated */ public CategoryValue basicGetCategoryValueRef() { return categoryValueRef; } /** * * * @generated */ @Override public void setCategoryValueRef(CategoryValue newCategoryValueRef) { CategoryValue oldCategoryValueRef = categoryValueRef; categoryValueRef = newCategoryValueRef; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.GROUP__CATEGORY_VALUE_REF, oldCategoryValueRef, categoryValueRef)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Bpmn2Package.GROUP__CATEGORY_VALUE_REF: if (resolve) return getCategoryValueRef(); return basicGetCategoryValueRef(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case Bpmn2Package.GROUP__CATEGORY_VALUE_REF: setCategoryValueRef((CategoryValue) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case Bpmn2Package.GROUP__CATEGORY_VALUE_REF: setCategoryValueRef((CategoryValue) null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case Bpmn2Package.GROUP__CATEGORY_VALUE_REF: return categoryValueRef != null; } return super.eIsSet(featureID); } } //GroupImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy