
org.ow2.frascati.native_.impl.DocumentRootImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of frascati-metamodel-native Show documentation
Show all versions of frascati-metamodel-native Show documentation
SCA metamodel extension for describing native libraries.
The newest version!
/**
*
*
*
* $Id$
*/
package org.ow2.frascati.native_.impl;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.ow2.frascati.native_.DocumentRoot;
import org.ow2.frascati.native_.JnaBinding;
import org.ow2.frascati.native_.JnaImplementation;
import org.ow2.frascati.native_.NativeInterface;
import org.ow2.frascati.native_.NativePackage;
/**
*
* An implementation of the model object 'Document Root'.
*
*
* The following features are implemented:
*
* - {@link org.ow2.frascati.native_.impl.DocumentRootImpl#getInterfaceNative Interface Native}
* - {@link org.ow2.frascati.native_.impl.DocumentRootImpl#getBindingJna Binding Jna}
* - {@link org.ow2.frascati.native_.impl.DocumentRootImpl#getImplementationJna Implementation Jna}
*
*
*
* @generated
*/
public class DocumentRootImpl extends org.eclipse.stp.sca.impl.DocumentRootImpl implements DocumentRoot {
/**
*
*
* @generated
*/
protected DocumentRootImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return NativePackage.Literals.DOCUMENT_ROOT;
}
/**
*
*
* @generated
*/
public NativeInterface getInterfaceNative() {
return (NativeInterface)getMixed().get(NativePackage.Literals.DOCUMENT_ROOT__INTERFACE_NATIVE, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetInterfaceNative(NativeInterface newInterfaceNative, NotificationChain msgs) {
return ((FeatureMap.Internal)getMixed()).basicAdd(NativePackage.Literals.DOCUMENT_ROOT__INTERFACE_NATIVE, newInterfaceNative, msgs);
}
/**
*
*
* @generated
*/
public void setInterfaceNative(NativeInterface newInterfaceNative) {
((FeatureMap.Internal)getMixed()).set(NativePackage.Literals.DOCUMENT_ROOT__INTERFACE_NATIVE, newInterfaceNative);
}
/**
*
*
* @generated
*/
public JnaBinding getBindingJna() {
return (JnaBinding)getMixed().get(NativePackage.Literals.DOCUMENT_ROOT__BINDING_JNA, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetBindingJna(JnaBinding newBindingJna, NotificationChain msgs) {
return ((FeatureMap.Internal)getMixed()).basicAdd(NativePackage.Literals.DOCUMENT_ROOT__BINDING_JNA, newBindingJna, msgs);
}
/**
*
*
* @generated
*/
public void setBindingJna(JnaBinding newBindingJna) {
((FeatureMap.Internal)getMixed()).set(NativePackage.Literals.DOCUMENT_ROOT__BINDING_JNA, newBindingJna);
}
/**
*
*
* @generated
*/
public JnaImplementation getImplementationJna() {
return (JnaImplementation)getMixed().get(NativePackage.Literals.DOCUMENT_ROOT__IMPLEMENTATION_JNA, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetImplementationJna(JnaImplementation newImplementationJna, NotificationChain msgs) {
return ((FeatureMap.Internal)getMixed()).basicAdd(NativePackage.Literals.DOCUMENT_ROOT__IMPLEMENTATION_JNA, newImplementationJna, msgs);
}
/**
*
*
* @generated
*/
public void setImplementationJna(JnaImplementation newImplementationJna) {
((FeatureMap.Internal)getMixed()).set(NativePackage.Literals.DOCUMENT_ROOT__IMPLEMENTATION_JNA, newImplementationJna);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case NativePackage.DOCUMENT_ROOT__INTERFACE_NATIVE:
return basicSetInterfaceNative(null, msgs);
case NativePackage.DOCUMENT_ROOT__BINDING_JNA:
return basicSetBindingJna(null, msgs);
case NativePackage.DOCUMENT_ROOT__IMPLEMENTATION_JNA:
return basicSetImplementationJna(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case NativePackage.DOCUMENT_ROOT__INTERFACE_NATIVE:
return getInterfaceNative();
case NativePackage.DOCUMENT_ROOT__BINDING_JNA:
return getBindingJna();
case NativePackage.DOCUMENT_ROOT__IMPLEMENTATION_JNA:
return getImplementationJna();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case NativePackage.DOCUMENT_ROOT__INTERFACE_NATIVE:
setInterfaceNative((NativeInterface)newValue);
return;
case NativePackage.DOCUMENT_ROOT__BINDING_JNA:
setBindingJna((JnaBinding)newValue);
return;
case NativePackage.DOCUMENT_ROOT__IMPLEMENTATION_JNA:
setImplementationJna((JnaImplementation)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case NativePackage.DOCUMENT_ROOT__INTERFACE_NATIVE:
setInterfaceNative((NativeInterface)null);
return;
case NativePackage.DOCUMENT_ROOT__BINDING_JNA:
setBindingJna((JnaBinding)null);
return;
case NativePackage.DOCUMENT_ROOT__IMPLEMENTATION_JNA:
setImplementationJna((JnaImplementation)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case NativePackage.DOCUMENT_ROOT__INTERFACE_NATIVE:
return getInterfaceNative() != null;
case NativePackage.DOCUMENT_ROOT__BINDING_JNA:
return getBindingJna() != null;
case NativePackage.DOCUMENT_ROOT__IMPLEMENTATION_JNA:
return getImplementationJna() != null;
}
return super.eIsSet(featureID);
}
} //DocumentRootImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy