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