/**
*
*
*
* $Id$
*/
package net.opengis.fes20.impl;
import java.util.Collection;
import net.opengis.fes20.AbstractIdType;
import net.opengis.fes20.BinaryLogicOpType;
import net.opengis.fes20.ComparisonOpsType;
import net.opengis.fes20.ExtensionOpsType;
import net.opengis.fes20.Fes20Package;
import net.opengis.fes20.FunctionType;
import net.opengis.fes20.LogicOpsType;
import net.opengis.fes20.SpatialOpsType;
import net.opengis.fes20.TemporalOpsType;
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.util.BasicFeatureMap;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.InternalEList;
/**
*
* An implementation of the model object 'Binary Logic Op Type'.
*
*
* The following features are implemented:
*
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getFilterPredicates Filter Predicates}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getComparisonOpsGroup Comparison Ops Group}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getComparisonOps Comparison Ops}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getSpatialOpsGroup Spatial Ops Group}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getSpatialOps Spatial Ops}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getTemporalOpsGroup Temporal Ops Group}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getTemporalOps Temporal Ops}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getLogicOpsGroup Logic Ops Group}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getLogicOps Logic Ops}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getExtensionOpsGroup Extension Ops Group}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getExtensionOps Extension Ops}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getFunction Function}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getIdGroup Id Group}
* - {@link net.opengis.fes20.impl.BinaryLogicOpTypeImpl#getId Id}
*
*
*
* @generated
*/
public class BinaryLogicOpTypeImpl extends LogicOpsTypeImpl implements BinaryLogicOpType {
/**
* The cached value of the '{@link #getFilterPredicates() Filter Predicates}' attribute list.
*
*
* @see #getFilterPredicates()
* @generated
* @ordered
*/
protected FeatureMap filterPredicates;
/**
*
*
* @generated
*/
protected BinaryLogicOpTypeImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Fes20Package.Literals.BINARY_LOGIC_OP_TYPE;
}
/**
*
*
* @generated
*/
public FeatureMap getFilterPredicates() {
if (filterPredicates == null) {
filterPredicates = new BasicFeatureMap(this, Fes20Package.BINARY_LOGIC_OP_TYPE__FILTER_PREDICATES);
}
return filterPredicates;
}
/**
*
*
* @generated
*/
public FeatureMap getComparisonOpsGroup() {
return (FeatureMap)getFilterPredicates().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__COMPARISON_OPS_GROUP);
}
/**
*
*
* @generated
*/
public EList getComparisonOps() {
return getComparisonOpsGroup().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__COMPARISON_OPS);
}
/**
*
*
* @generated
*/
public FeatureMap getSpatialOpsGroup() {
return (FeatureMap)getFilterPredicates().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__SPATIAL_OPS_GROUP);
}
/**
*
*
* @generated
*/
public EList getSpatialOps() {
return getSpatialOpsGroup().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__SPATIAL_OPS);
}
/**
*
*
* @generated
*/
public FeatureMap getTemporalOpsGroup() {
return (FeatureMap)getFilterPredicates().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__TEMPORAL_OPS_GROUP);
}
/**
*
*
* @generated
*/
public EList getTemporalOps() {
return getTemporalOpsGroup().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__TEMPORAL_OPS);
}
/**
*
*
* @generated
*/
public FeatureMap getLogicOpsGroup() {
return (FeatureMap)getFilterPredicates().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__LOGIC_OPS_GROUP);
}
/**
*
*
* @generated
*/
public EList getLogicOps() {
return getLogicOpsGroup().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__LOGIC_OPS);
}
/**
*
*
* @generated
*/
public FeatureMap getExtensionOpsGroup() {
return (FeatureMap)getFilterPredicates().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__EXTENSION_OPS_GROUP);
}
/**
*
*
* @generated
*/
public EList getExtensionOps() {
return getExtensionOpsGroup().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__EXTENSION_OPS);
}
/**
*
*
* @generated
*/
public EList getFunction() {
return getFilterPredicates().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__FUNCTION);
}
/**
*
*
* @generated
*/
public FeatureMap getIdGroup() {
return (FeatureMap)getFilterPredicates().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__ID_GROUP);
}
/**
*
*
* @generated
*/
public EList getId() {
return getIdGroup().list(Fes20Package.Literals.BINARY_LOGIC_OP_TYPE__ID);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case Fes20Package.BINARY_LOGIC_OP_TYPE__FILTER_PREDICATES:
return ((InternalEList>)getFilterPredicates()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__COMPARISON_OPS_GROUP:
return ((InternalEList>)getComparisonOpsGroup()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__COMPARISON_OPS:
return ((InternalEList>)getComparisonOps()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__SPATIAL_OPS_GROUP:
return ((InternalEList>)getSpatialOpsGroup()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__SPATIAL_OPS:
return ((InternalEList>)getSpatialOps()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__TEMPORAL_OPS_GROUP:
return ((InternalEList>)getTemporalOpsGroup()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__TEMPORAL_OPS:
return ((InternalEList>)getTemporalOps()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__LOGIC_OPS_GROUP:
return ((InternalEList>)getLogicOpsGroup()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__LOGIC_OPS:
return ((InternalEList>)getLogicOps()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__EXTENSION_OPS_GROUP:
return ((InternalEList>)getExtensionOpsGroup()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__EXTENSION_OPS:
return ((InternalEList>)getExtensionOps()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__FUNCTION:
return ((InternalEList>)getFunction()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__ID_GROUP:
return ((InternalEList>)getIdGroup()).basicRemove(otherEnd, msgs);
case Fes20Package.BINARY_LOGIC_OP_TYPE__ID:
return ((InternalEList>)getId()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Fes20Package.BINARY_LOGIC_OP_TYPE__FILTER_PREDICATES:
if (coreType) return getFilterPredicates();
return ((FeatureMap.Internal)getFilterPredicates()).getWrapper();
case Fes20Package.BINARY_LOGIC_OP_TYPE__COMPARISON_OPS_GROUP:
if (coreType) return getComparisonOpsGroup();
return ((FeatureMap.Internal)getComparisonOpsGroup()).getWrapper();
case Fes20Package.BINARY_LOGIC_OP_TYPE__COMPARISON_OPS:
return getComparisonOps();
case Fes20Package.BINARY_LOGIC_OP_TYPE__SPATIAL_OPS_GROUP:
if (coreType) return getSpatialOpsGroup();
return ((FeatureMap.Internal)getSpatialOpsGroup()).getWrapper();
case Fes20Package.BINARY_LOGIC_OP_TYPE__SPATIAL_OPS:
return getSpatialOps();
case Fes20Package.BINARY_LOGIC_OP_TYPE__TEMPORAL_OPS_GROUP:
if (coreType) return getTemporalOpsGroup();
return ((FeatureMap.Internal)getTemporalOpsGroup()).getWrapper();
case Fes20Package.BINARY_LOGIC_OP_TYPE__TEMPORAL_OPS:
return getTemporalOps();
case Fes20Package.BINARY_LOGIC_OP_TYPE__LOGIC_OPS_GROUP:
if (coreType) return getLogicOpsGroup();
return ((FeatureMap.Internal)getLogicOpsGroup()).getWrapper();
case Fes20Package.BINARY_LOGIC_OP_TYPE__LOGIC_OPS:
return getLogicOps();
case Fes20Package.BINARY_LOGIC_OP_TYPE__EXTENSION_OPS_GROUP:
if (coreType) return getExtensionOpsGroup();
return ((FeatureMap.Internal)getExtensionOpsGroup()).getWrapper();
case Fes20Package.BINARY_LOGIC_OP_TYPE__EXTENSION_OPS:
return getExtensionOps();
case Fes20Package.BINARY_LOGIC_OP_TYPE__FUNCTION:
return getFunction();
case Fes20Package.BINARY_LOGIC_OP_TYPE__ID_GROUP:
if (coreType) return getIdGroup();
return ((FeatureMap.Internal)getIdGroup()).getWrapper();
case Fes20Package.BINARY_LOGIC_OP_TYPE__ID:
return getId();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Fes20Package.BINARY_LOGIC_OP_TYPE__FILTER_PREDICATES:
((FeatureMap.Internal)getFilterPredicates()).set(newValue);
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__COMPARISON_OPS_GROUP:
((FeatureMap.Internal)getComparisonOpsGroup()).set(newValue);
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__SPATIAL_OPS_GROUP:
((FeatureMap.Internal)getSpatialOpsGroup()).set(newValue);
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__TEMPORAL_OPS_GROUP:
((FeatureMap.Internal)getTemporalOpsGroup()).set(newValue);
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__LOGIC_OPS_GROUP:
((FeatureMap.Internal)getLogicOpsGroup()).set(newValue);
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__EXTENSION_OPS_GROUP:
((FeatureMap.Internal)getExtensionOpsGroup()).set(newValue);
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__FUNCTION:
getFunction().clear();
getFunction().addAll((Collection extends FunctionType>)newValue);
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__ID_GROUP:
((FeatureMap.Internal)getIdGroup()).set(newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Fes20Package.BINARY_LOGIC_OP_TYPE__FILTER_PREDICATES:
getFilterPredicates().clear();
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__COMPARISON_OPS_GROUP:
getComparisonOpsGroup().clear();
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__SPATIAL_OPS_GROUP:
getSpatialOpsGroup().clear();
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__TEMPORAL_OPS_GROUP:
getTemporalOpsGroup().clear();
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__LOGIC_OPS_GROUP:
getLogicOpsGroup().clear();
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__EXTENSION_OPS_GROUP:
getExtensionOpsGroup().clear();
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__FUNCTION:
getFunction().clear();
return;
case Fes20Package.BINARY_LOGIC_OP_TYPE__ID_GROUP:
getIdGroup().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Fes20Package.BINARY_LOGIC_OP_TYPE__FILTER_PREDICATES:
return filterPredicates != null && !filterPredicates.isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__COMPARISON_OPS_GROUP:
return !getComparisonOpsGroup().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__COMPARISON_OPS:
return !getComparisonOps().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__SPATIAL_OPS_GROUP:
return !getSpatialOpsGroup().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__SPATIAL_OPS:
return !getSpatialOps().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__TEMPORAL_OPS_GROUP:
return !getTemporalOpsGroup().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__TEMPORAL_OPS:
return !getTemporalOps().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__LOGIC_OPS_GROUP:
return !getLogicOpsGroup().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__LOGIC_OPS:
return !getLogicOps().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__EXTENSION_OPS_GROUP:
return !getExtensionOpsGroup().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__EXTENSION_OPS:
return !getExtensionOps().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__FUNCTION:
return !getFunction().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__ID_GROUP:
return !getIdGroup().isEmpty();
case Fes20Package.BINARY_LOGIC_OP_TYPE__ID:
return !getId().isEmpty();
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (filterPredicates: ");
result.append(filterPredicates);
result.append(')');
return result.toString();
}
} //BinaryLogicOpTypeImpl