/**
*
*
*
* $Id$
*/
package net.opengis.fes20.impl;
import net.opengis.fes20.AdditionalOperatorsType;
import net.opengis.fes20.ExtendedCapabilitiesType;
import net.opengis.fes20.Fes20Package;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
/**
*
* An implementation of the model object 'Extended Capabilities Type'.
*
*
* The following features are implemented:
*
* - {@link net.opengis.fes20.impl.ExtendedCapabilitiesTypeImpl#getAdditionalOperators Additional Operators}
*
*
*
* @generated
*/
public class ExtendedCapabilitiesTypeImpl extends EObjectImpl implements ExtendedCapabilitiesType {
/**
* The cached value of the '{@link #getAdditionalOperators() Additional Operators}' containment reference.
*
*
* @see #getAdditionalOperators()
* @generated
* @ordered
*/
protected AdditionalOperatorsType additionalOperators;
/**
*
*
* @generated
*/
protected ExtendedCapabilitiesTypeImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Fes20Package.Literals.EXTENDED_CAPABILITIES_TYPE;
}
/**
*
*
* @generated
*/
public AdditionalOperatorsType getAdditionalOperators() {
return additionalOperators;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetAdditionalOperators(AdditionalOperatorsType newAdditionalOperators, NotificationChain msgs) {
AdditionalOperatorsType oldAdditionalOperators = additionalOperators;
additionalOperators = newAdditionalOperators;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Fes20Package.EXTENDED_CAPABILITIES_TYPE__ADDITIONAL_OPERATORS, oldAdditionalOperators, newAdditionalOperators);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setAdditionalOperators(AdditionalOperatorsType newAdditionalOperators) {
if (newAdditionalOperators != additionalOperators) {
NotificationChain msgs = null;
if (additionalOperators != null)
msgs = ((InternalEObject)additionalOperators).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Fes20Package.EXTENDED_CAPABILITIES_TYPE__ADDITIONAL_OPERATORS, null, msgs);
if (newAdditionalOperators != null)
msgs = ((InternalEObject)newAdditionalOperators).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Fes20Package.EXTENDED_CAPABILITIES_TYPE__ADDITIONAL_OPERATORS, null, msgs);
msgs = basicSetAdditionalOperators(newAdditionalOperators, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Fes20Package.EXTENDED_CAPABILITIES_TYPE__ADDITIONAL_OPERATORS, newAdditionalOperators, newAdditionalOperators));
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case Fes20Package.EXTENDED_CAPABILITIES_TYPE__ADDITIONAL_OPERATORS:
return basicSetAdditionalOperators(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Fes20Package.EXTENDED_CAPABILITIES_TYPE__ADDITIONAL_OPERATORS:
return getAdditionalOperators();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Fes20Package.EXTENDED_CAPABILITIES_TYPE__ADDITIONAL_OPERATORS:
setAdditionalOperators((AdditionalOperatorsType)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Fes20Package.EXTENDED_CAPABILITIES_TYPE__ADDITIONAL_OPERATORS:
setAdditionalOperators((AdditionalOperatorsType)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Fes20Package.EXTENDED_CAPABILITIES_TYPE__ADDITIONAL_OPERATORS:
return additionalOperators != null;
}
return super.eIsSet(featureID);
}
} //ExtendedCapabilitiesTypeImpl