diff options
Diffstat (limited to 'archive/working/apitools/org.eclipse.component.use.core/src/org/eclipse/component/use/impl/SourceClassImpl.java')
-rw-r--r-- | archive/working/apitools/org.eclipse.component.use.core/src/org/eclipse/component/use/impl/SourceClassImpl.java | 243 |
1 files changed, 0 insertions, 243 deletions
diff --git a/archive/working/apitools/org.eclipse.component.use.core/src/org/eclipse/component/use/impl/SourceClassImpl.java b/archive/working/apitools/org.eclipse.component.use.core/src/org/eclipse/component/use/impl/SourceClassImpl.java deleted file mode 100644 index bc5997fd8..000000000 --- a/archive/working/apitools/org.eclipse.component.use.core/src/org/eclipse/component/use/impl/SourceClassImpl.java +++ /dev/null @@ -1,243 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: SourceClassImpl.java,v 1.1 2005/01/20 12:03:03 ryman Exp $ - */ -package org.eclipse.component.use.impl; - -import java.util.Collection; - -import org.eclipse.component.api.ClassApi; - -import org.eclipse.component.use.SourceClass; -import org.eclipse.component.use.UsePackage; - -import org.eclipse.emf.common.notify.Notification; -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.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Source Class</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.component.use.impl.SourceClassImpl#getClassUse <em>Class Use</em>}</li> - * <li>{@link org.eclipse.component.use.impl.SourceClassImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class SourceClassImpl extends EObjectImpl implements SourceClass -{ - /** - * The cached value of the '{@link #getClassUse() <em>Class Use</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getClassUse() - * @generated - * @ordered - */ - protected EList classUse = null; - - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected SourceClassImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() - { - return UsePackage.eINSTANCE.getSourceClass(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getClassUse() - { - if (classUse == null) - { - classUse = new EObjectContainmentEList(ClassApi.class, this, UsePackage.SOURCE_CLASS__CLASS_USE); - } - return classUse; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UsePackage.SOURCE_CLASS__NAME, oldName, name)); - } - - /** - * <!-- 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 UsePackage.SOURCE_CLASS__CLASS_USE: - return ((InternalEList)getClassUse()).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 UsePackage.SOURCE_CLASS__CLASS_USE: - return getClassUse(); - case UsePackage.SOURCE_CLASS__NAME: - return getName(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) - { - switch (eDerivedStructuralFeatureID(eFeature)) - { - case UsePackage.SOURCE_CLASS__CLASS_USE: - getClassUse().clear(); - getClassUse().addAll((Collection)newValue); - return; - case UsePackage.SOURCE_CLASS__NAME: - setName((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) - { - switch (eDerivedStructuralFeatureID(eFeature)) - { - case UsePackage.SOURCE_CLASS__CLASS_USE: - getClassUse().clear(); - return; - case UsePackage.SOURCE_CLASS__NAME: - setName(NAME_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) - { - switch (eDerivedStructuralFeatureID(eFeature)) - { - case UsePackage.SOURCE_CLASS__CLASS_USE: - return classUse != null && !classUse.isEmpty(); - case UsePackage.SOURCE_CLASS__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //SourceClassImpl |