diff options
Diffstat (limited to 'plugins/org.eclipse.jem/mofjava/org/eclipse/jem/java/impl/StatementImpl.java')
-rw-r--r-- | plugins/org.eclipse.jem/mofjava/org/eclipse/jem/java/impl/StatementImpl.java | 140 |
1 files changed, 0 insertions, 140 deletions
diff --git a/plugins/org.eclipse.jem/mofjava/org/eclipse/jem/java/impl/StatementImpl.java b/plugins/org.eclipse.jem/mofjava/org/eclipse/jem/java/impl/StatementImpl.java deleted file mode 100644 index 3dac27d32..000000000 --- a/plugins/org.eclipse.jem/mofjava/org/eclipse/jem/java/impl/StatementImpl.java +++ /dev/null @@ -1,140 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jem.java.impl; -/* - * $RCSfile: StatementImpl.java,v $ - * $Revision: 1.3 $ $Date: 2004/08/27 15:33:17 $ - */ -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.jem.java.JavaRefPackage; -import org.eclipse.jem.java.Statement; -/** - * @generated - */ -public class StatementImpl extends BlockImpl implements Statement{ - - protected StatementImpl() { - super(); - } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return JavaRefPackage.eINSTANCE.getStatement(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case JavaRefPackage.STATEMENT__CONTENTS: - return ((InternalEList)getContents()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JavaRefPackage.STATEMENT__SOURCE: - return getSource(); - case JavaRefPackage.STATEMENT__NAME: - return getName(); - case JavaRefPackage.STATEMENT__CONTENTS: - return getContents(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JavaRefPackage.STATEMENT__SOURCE: - setSource((String)newValue); - return; - case JavaRefPackage.STATEMENT__NAME: - setName((String)newValue); - return; - case JavaRefPackage.STATEMENT__CONTENTS: - getContents().clear(); - getContents().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JavaRefPackage.STATEMENT__SOURCE: - setSource(SOURCE_EDEFAULT); - return; - case JavaRefPackage.STATEMENT__NAME: - setName(NAME_EDEFAULT); - return; - case JavaRefPackage.STATEMENT__CONTENTS: - getContents().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case JavaRefPackage.STATEMENT__SOURCE: - return SOURCE_EDEFAULT == null ? source != null : !SOURCE_EDEFAULT.equals(source); - case JavaRefPackage.STATEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case JavaRefPackage.STATEMENT__CONTENTS: - return contents != null && !contents.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - -} - - - - - |