Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (c) 2011 CEA and others.
   * 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:
   *   CEA - initial API and implementation
  *
  */
 package org.eclipse.uml2.uml.profile.l2.internal.impl;
 
 
 
 
 
An implementation of the model object 'Derive'.

The following features are implemented:

  • Base Abstraction
  • Computation

Generated:
 
 public class DeriveImpl
 		extends EObjectImpl
 		implements Derive {

The cached value of the 'Base Abstraction' reference.

See also:
getBase_Abstraction()
Generated:
Ordered:
 
The cached value of the 'Computation' containment reference.

See also:
getComputation()
Generated:
Ordered:
 

Generated:
 
 	protected DeriveImpl() {
 		super();
 	}

Generated:
 
 	protected EClass eStaticClass() {
 	}

Generated:
 
 		if ( != null && .eIsProxy()) {
 			InternalEObject oldBase_Abstraction = (InternalEObject;
 			 = (AbstractioneResolveProxy(oldBase_Abstraction);
 			if ( != oldBase_Abstraction) {
 						oldBase_Abstraction));
			}
		}
	}

Generated:
	}

Generated:
	public void setBase_Abstraction(Abstraction newBase_Abstraction) {
		Abstraction oldBase_Abstraction = ;
		 = newBase_Abstraction;
				.oldBase_Abstraction,
	}

Generated:
		if ( != null && .eIsProxy()) {
			if ( != oldComputation) {
				NotificationChain msgs = oldComputation.eInverseRemove(this,
					nullnull);
				if (newComputation.eInternalContainer() == null) {
					msgs = newComputation.eInverseAdd(this,
						nullmsgs);
				}
				if (msgs != null)
					msgs.dispatch();
			}
		}
		return ;
	}

Generated:
		return ;
	}

Generated:
			ValueSpecification newComputationNotificationChain msgs) {
		ValueSpecification oldComputation = ;
		 = newComputation;
			ENotificationImpl notification = new ENotificationImpl(this,
				oldComputationnewComputation);
			if (msgs == null)
				msgs = notification;
			else
				msgs.add(notification);
		}
		return msgs;
	}

Generated:
	public void setComputation(ValueSpecification newComputation) {
		if (newComputation != ) {
			NotificationChain msgs = null;
			if ( != null)
					nullmsgs);
			if (newComputation != null)
				msgs = ((InternalEObjectnewComputation).eInverseAdd(this,
					nullmsgs);
			msgs = basicSetComputation(newComputationmsgs);
			if (msgs != null)
				msgs.dispatch();
else if (eNotificationRequired())
				.newComputationnewComputation));
	}

Generated:
			int featureIDNotificationChain msgs) {
		switch (featureID) {
				return basicSetComputation(nullmsgs);
		}
		return super.eInverseRemove(otherEndfeatureIDmsgs);
	}

Generated:
	public Object eGet(int featureIDboolean resolveboolean coreType) {
		switch (featureID) {
				if (resolve)
				if (resolve)
					return getComputation();
		}
		return super.eGet(featureIDresolvecoreType);
	}

Generated:
	public void eSet(int featureIDObject newValue) {
		switch (featureID) {
				return;
				return;
		}
		super.eSet(featureIDnewValue);
	}

Generated:
	public void eUnset(int featureID) {
		switch (featureID) {
				return;
				return;
		}
		super.eUnset(featureID);
	}

Generated:
	public boolean eIsSet(int featureID) {
		switch (featureID) {
				return  != null;
				return  != null;
		}
		return super.eIsSet(featureID);
	}
//DeriveImpl
New to GrepCode? Check out our FAQ X