blob: a3b6e76ce774f3606b43ec0e305965e7c4efc680 [file] [log] [blame]
/**
* Copyright (c) 2011, 2018 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
* generated from SignalDSL.xcore
*
*
*/
package org.eclipse.osbp.xtext.signal.impl;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.osbp.xtext.oxtype.resource.EcoreUtil3;
import org.eclipse.osbp.xtext.signal.SignalDSLPackage;
import org.eclipse.osbp.xtext.signal.SignalLazyResolver;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Signal Lazy Resolver</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class SignalLazyResolverImpl extends MinimalEObjectImpl.Container implements SignalLazyResolver {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected SignalLazyResolverImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return SignalDSLPackage.Literals.SIGNAL_LAZY_RESOLVER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EObject eResolveProxy(final InternalEObject proxy) {
return EcoreUtil3.resolve(proxy, this.eResource().getResourceSet());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
case SignalDSLPackage.SIGNAL_LAZY_RESOLVER___ERESOLVE_PROXY__INTERNALEOBJECT:
return eResolveProxy((InternalEObject)arguments.get(0));
}
return super.eInvoke(operationID, arguments);
}
} //SignalLazyResolverImpl