blob: 5ca33ad8017be78fd6d9777674137f0d171ec952 [file] [log] [blame]
/**
* Copyright (c) 2016 ALL4TEC & CEA LIST.
* 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:
* ALL4TEC & CEA LIST - initial API and implementation
*/
package org.polarsys.esf.esflocalanalysis.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.polarsys.esf.esflocalanalysis.IAbstractSLogicalGateLAnalysis;
import org.polarsys.esf.esflocalanalysis.IESFLocalAnalysisPackage;
import org.polarsys.esf.esflocalanalysis.ISBlockLAnalysis;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Abstract SLogical Gate LAnalysis</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.polarsys.esf.esflocalanalysis.impl.AbstractSLogicalGateLAnalysis#getSBlockLAnalysis <em>SBlock
* LAnalysis</em>}</li>
* </ul>
*
* @generated
*/
public abstract class AbstractSLogicalGateLAnalysis
extends AbstractSPropagationElement
implements IAbstractSLogicalGateLAnalysis {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
protected AbstractSLogicalGateLAnalysis() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return IESFLocalAnalysisPackage.Literals.ABSTRACT_SLOGICAL_GATE_LANALYSIS;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
public ISBlockLAnalysis getSBlockLAnalysis() {
ISBlockLAnalysis sBlockLAnalysis = basicGetSBlockLAnalysis();
return sBlockLAnalysis != null && sBlockLAnalysis.eIsProxy()
? (ISBlockLAnalysis) eResolveProxy((InternalEObject) sBlockLAnalysis)
: sBlockLAnalysis;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
public ISBlockLAnalysis basicGetSBlockLAnalysis() {
// TODO: implement this method to return the 'SBlock LAnalysis' reference
// -> do not perform proxy resolution
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
public void setSBlockLAnalysis(ISBlockLAnalysis newSBlockLAnalysis) {
// TODO: implement this method to set the 'SBlock LAnalysis' reference
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case IESFLocalAnalysisPackage.ABSTRACT_SLOGICAL_GATE_LANALYSIS__SBLOCK_LANALYSIS:
if (resolve)
return getSBlockLAnalysis();
return basicGetSBlockLAnalysis();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case IESFLocalAnalysisPackage.ABSTRACT_SLOGICAL_GATE_LANALYSIS__SBLOCK_LANALYSIS:
setSBlockLAnalysis((ISBlockLAnalysis) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case IESFLocalAnalysisPackage.ABSTRACT_SLOGICAL_GATE_LANALYSIS__SBLOCK_LANALYSIS:
setSBlockLAnalysis((ISBlockLAnalysis) null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case IESFLocalAnalysisPackage.ABSTRACT_SLOGICAL_GATE_LANALYSIS__SBLOCK_LANALYSIS:
return basicGetSBlockLAnalysis() != null;
}
return super.eIsSet(featureID);
}
} // AbstractSLogicalGateLAnalysis