/**
*
*
*
* $Id$
*/
package net.opengis.ows11.impl;
import java.util.Collection;
import net.opengis.ows11.DomainType;
import net.opengis.ows11.Ows11Package;
import net.opengis.ows11.RequestMethodType;
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.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
*
* An implementation of the model object 'Request Method Type'.
*
*
* The following features are implemented:
*
* - {@link net.opengis.ows11.impl.RequestMethodTypeImpl#getConstraint Constraint}
*
*
*
* @generated
*/
public class RequestMethodTypeImpl extends OnlineResourceTypeImpl implements RequestMethodType {
/**
* The cached value of the '{@link #getConstraint() Constraint}' containment reference list.
*
*
* @see #getConstraint()
* @generated
* @ordered
*/
protected EList constraint;
/**
*
*
* @generated
*/
protected RequestMethodTypeImpl() {
super();
}
/**
*
*
* @generated
*/
protected EClass eStaticClass() {
return Ows11Package.Literals.REQUEST_METHOD_TYPE;
}
/**
*
*
* @generated
*/
public EList getConstraint() {
if (constraint == null) {
constraint = new EObjectContainmentEList(DomainType.class, this, Ows11Package.REQUEST_METHOD_TYPE__CONSTRAINT);
}
return constraint;
}
/**
*
*
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case Ows11Package.REQUEST_METHOD_TYPE__CONSTRAINT:
return ((InternalEList)getConstraint()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Ows11Package.REQUEST_METHOD_TYPE__CONSTRAINT:
return getConstraint();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Ows11Package.REQUEST_METHOD_TYPE__CONSTRAINT:
getConstraint().clear();
getConstraint().addAll((Collection)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case Ows11Package.REQUEST_METHOD_TYPE__CONSTRAINT:
getConstraint().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case Ows11Package.REQUEST_METHOD_TYPE__CONSTRAINT:
return constraint != null && !constraint.isEmpty();
}
return super.eIsSet(featureID);
}
} //RequestMethodTypeImpl