/**
*
*
*
* $Id$
*/
package net.opengis.wfs20.impl;
import java.util.Collection;
import net.opengis.wfs20.ListStoredQueriesResponseType;
import net.opengis.wfs20.StoredQueryListItemType;
import net.opengis.wfs20.Wfs20Package;
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 'List Stored Queries Response Type'.
*
*
* The following features are implemented:
*
* - {@link net.opengis.wfs20.impl.ListStoredQueriesResponseTypeImpl#getStoredQuery Stored Query}
*
*
*
* @generated
*/
public class ListStoredQueriesResponseTypeImpl extends EObjectImpl implements ListStoredQueriesResponseType {
/**
* The cached value of the '{@link #getStoredQuery() Stored Query}' containment reference list.
*
*
* @see #getStoredQuery()
* @generated
* @ordered
*/
protected EList storedQuery;
/**
*
*
* @generated
*/
protected ListStoredQueriesResponseTypeImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Wfs20Package.Literals.LIST_STORED_QUERIES_RESPONSE_TYPE;
}
/**
*
*
* @generated
*/
public EList getStoredQuery() {
if (storedQuery == null) {
storedQuery = new EObjectContainmentEList(StoredQueryListItemType.class, this, Wfs20Package.LIST_STORED_QUERIES_RESPONSE_TYPE__STORED_QUERY);
}
return storedQuery;
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case Wfs20Package.LIST_STORED_QUERIES_RESPONSE_TYPE__STORED_QUERY:
return ((InternalEList>)getStoredQuery()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Wfs20Package.LIST_STORED_QUERIES_RESPONSE_TYPE__STORED_QUERY:
return getStoredQuery();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Wfs20Package.LIST_STORED_QUERIES_RESPONSE_TYPE__STORED_QUERY:
getStoredQuery().clear();
getStoredQuery().addAll((Collection extends StoredQueryListItemType>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Wfs20Package.LIST_STORED_QUERIES_RESPONSE_TYPE__STORED_QUERY:
getStoredQuery().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Wfs20Package.LIST_STORED_QUERIES_RESPONSE_TYPE__STORED_QUERY:
return storedQuery != null && !storedQuery.isEmpty();
}
return super.eIsSet(featureID);
}
} //ListStoredQueriesResponseTypeImpl