/**
*
*
*
* $Id$
*/
package net.opengis.fes20.impl;
import java.util.Collection;
import net.opengis.fes20.Fes20Package;
import net.opengis.fes20.SpatialOperatorType;
import net.opengis.fes20.SpatialOperatorsType;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
*
* An implementation of the model object 'Spatial Operators Type'.
*
*
* The following features are implemented:
*
* - {@link net.opengis.fes20.impl.SpatialOperatorsTypeImpl#getSpatialOperator Spatial Operator}
*
*
*
* @generated
*/
public class SpatialOperatorsTypeImpl extends EObjectImpl implements SpatialOperatorsType {
/**
* The cached value of the '{@link #getSpatialOperator() Spatial Operator}' containment reference list.
*
*
* @see #getSpatialOperator()
* @generated
* @ordered
*/
protected EList spatialOperator;
/**
*
*
* @generated
*/
protected SpatialOperatorsTypeImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Fes20Package.Literals.SPATIAL_OPERATORS_TYPE;
}
/**
*
*
* @generated
*/
public EList getSpatialOperator() {
if (spatialOperator == null) {
spatialOperator = new EObjectContainmentEList(SpatialOperatorType.class, this, Fes20Package.SPATIAL_OPERATORS_TYPE__SPATIAL_OPERATOR);
}
return spatialOperator;
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case Fes20Package.SPATIAL_OPERATORS_TYPE__SPATIAL_OPERATOR:
return ((InternalEList>)getSpatialOperator()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Fes20Package.SPATIAL_OPERATORS_TYPE__SPATIAL_OPERATOR:
return getSpatialOperator();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Fes20Package.SPATIAL_OPERATORS_TYPE__SPATIAL_OPERATOR:
getSpatialOperator().clear();
getSpatialOperator().addAll((Collection extends SpatialOperatorType>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Fes20Package.SPATIAL_OPERATORS_TYPE__SPATIAL_OPERATOR:
getSpatialOperator().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Fes20Package.SPATIAL_OPERATORS_TYPE__SPATIAL_OPERATOR:
return spatialOperator != null && !spatialOperator.isEmpty();
}
return super.eIsSet(featureID);
}
} //SpatialOperatorsTypeImpl