Package net.opengis.wfs.impl

Source Code of net.opengis.wfs.impl.OperationsTypeImpl

/**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.opengis.wfs.impl;

import java.util.Collection;

import net.opengis.wfs.OperationType;
import net.opengis.wfs.OperationsType;
import net.opengis.wfs.WfsPackage;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.EObjectImpl;

import org.eclipse.emf.ecore.util.EDataTypeEList;

/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Operations Type</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
*   <li>{@link net.opengis.wfs.impl.OperationsTypeImpl#getOperation <em>Operation</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class OperationsTypeImpl extends EObjectImpl implements OperationsType {
  /**
     * The cached value of the '{@link #getOperation() <em>Operation</em>}' attribute list.
     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @see #getOperation()
     * @generated
     * @ordered
     */
  protected EList operation;

  /**
     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  protected OperationsTypeImpl() {
        super();
    }

  /**
     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  protected EClass eStaticClass() {
        return WfsPackage.Literals.OPERATIONS_TYPE;
    }

  /**
     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  public EList getOperation() {
        if (operation == null) {
            operation = new EDataTypeEList(OperationType.class, this, WfsPackage.OPERATIONS_TYPE__OPERATION);
        }
        return operation;
    }

  /**
     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  public Object eGet(int featureID, boolean resolve, boolean coreType) {
        switch (featureID) {
            case WfsPackage.OPERATIONS_TYPE__OPERATION:
                return getOperation();
        }
        return super.eGet(featureID, resolve, coreType);
    }

  /**
     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  public void eSet(int featureID, Object newValue) {
        switch (featureID) {
            case WfsPackage.OPERATIONS_TYPE__OPERATION:
                getOperation().clear();
                getOperation().addAll((Collection)newValue);
                return;
        }
        super.eSet(featureID, newValue);
    }

  /**
     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  public void eUnset(int featureID) {
        switch (featureID) {
            case WfsPackage.OPERATIONS_TYPE__OPERATION:
                getOperation().clear();
                return;
        }
        super.eUnset(featureID);
    }

  /**
     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  public boolean eIsSet(int featureID) {
        switch (featureID) {
            case WfsPackage.OPERATIONS_TYPE__OPERATION:
                return operation != null && !operation.isEmpty();
        }
        return super.eIsSet(featureID);
    }

  /**
     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  public String toString() {
        if (eIsProxy()) return super.toString();

        StringBuffer result = new StringBuffer(super.toString());
        result.append(" (operation: ");
        result.append(operation);
        result.append(')');
        return result.toString();
    }

} //OperationsTypeImpl
TOP

Related Classes of net.opengis.wfs.impl.OperationsTypeImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.