/**
*
*
*
* $Id$
*/
package net.opengis.ows11.impl;
import net.opengis.ows11.Ows11Package;
import net.opengis.ows11.ReferenceGroupType;
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 'Reference Group Type'.
*
*
* The following features are implemented:
*
* - {@link net.opengis.ows11.impl.ReferenceGroupTypeImpl#getAbstractReferenceBaseGroup Abstract Reference Base Group}
* - {@link net.opengis.ows11.impl.ReferenceGroupTypeImpl#getAbstractReferenceBase Abstract Reference Base}
*
*
*
* @generated
*/
public class ReferenceGroupTypeImpl extends BasicIdentificationTypeImpl implements ReferenceGroupType {
/**
* The cached value of the '{@link #getAbstractReferenceBaseGroup() Abstract Reference Base Group}' attribute list.
*
*
* @see #getAbstractReferenceBaseGroup()
* @generated
* @ordered
*/
protected FeatureMap abstractReferenceBaseGroup;
/**
*
*
* @generated
*/
protected ReferenceGroupTypeImpl() {
super();
}
/**
*
*
* @generated
*/
protected EClass eStaticClass() {
return Ows11Package.Literals.REFERENCE_GROUP_TYPE;
}
/**
*
*
* @generated
*/
public FeatureMap getAbstractReferenceBaseGroup() {
if (abstractReferenceBaseGroup == null) {
abstractReferenceBaseGroup = new BasicFeatureMap(this, Ows11Package.REFERENCE_GROUP_TYPE__ABSTRACT_REFERENCE_BASE_GROUP);
}
return abstractReferenceBaseGroup;
}
/**
*
*
* @generated
*/
public EList getAbstractReferenceBase() {
return getAbstractReferenceBaseGroup().list(Ows11Package.Literals.REFERENCE_GROUP_TYPE__ABSTRACT_REFERENCE_BASE);
}
/**
*
*
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case Ows11Package.REFERENCE_GROUP_TYPE__ABSTRACT_REFERENCE_BASE_GROUP:
return ((InternalEList)getAbstractReferenceBaseGroup()).basicRemove(otherEnd, msgs);
case Ows11Package.REFERENCE_GROUP_TYPE__ABSTRACT_REFERENCE_BASE:
return ((InternalEList)getAbstractReferenceBase()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Ows11Package.REFERENCE_GROUP_TYPE__ABSTRACT_REFERENCE_BASE_GROUP:
if (coreType) return getAbstractReferenceBaseGroup();
return ((FeatureMap.Internal)getAbstractReferenceBaseGroup()).getWrapper();
case Ows11Package.REFERENCE_GROUP_TYPE__ABSTRACT_REFERENCE_BASE:
return getAbstractReferenceBase();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Ows11Package.REFERENCE_GROUP_TYPE__ABSTRACT_REFERENCE_BASE_GROUP:
((FeatureMap.Internal)getAbstractReferenceBaseGroup()).set(newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case Ows11Package.REFERENCE_GROUP_TYPE__ABSTRACT_REFERENCE_BASE_GROUP:
getAbstractReferenceBaseGroup().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case Ows11Package.REFERENCE_GROUP_TYPE__ABSTRACT_REFERENCE_BASE_GROUP:
return abstractReferenceBaseGroup != null && !abstractReferenceBaseGroup.isEmpty();
case Ows11Package.REFERENCE_GROUP_TYPE__ABSTRACT_REFERENCE_BASE:
return !getAbstractReferenceBase().isEmpty();
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (abstractReferenceBaseGroup: ");
result.append(abstractReferenceBaseGroup);
result.append(')');
return result.toString();
}
} //ReferenceGroupTypeImpl