⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serviceidentificationtypeimpl.java

📁 电子地图服务器,搭建自己的地图服务
💻 JAVA
字号:
/**
 * <copyright>
 * </copyright>
 *
 * $Id: ServiceIdentificationTypeImpl.java 7522 2007-09-12 22:00:10Z saul.farber $
 */
package net.opengis.ows.impl;

import net.opengis.ows.CodeType;
import net.opengis.ows.OwsPackage;
import net.opengis.ows.ServiceIdentificationType;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

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

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Service Identification Type</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link net.opengis.ows.impl.ServiceIdentificationTypeImpl#getServiceType <em>Service Type</em>}</li>
 *   <li>{@link net.opengis.ows.impl.ServiceIdentificationTypeImpl#getServiceTypeVersion <em>Service Type Version</em>}</li>
 *   <li>{@link net.opengis.ows.impl.ServiceIdentificationTypeImpl#getFees <em>Fees</em>}</li>
 *   <li>{@link net.opengis.ows.impl.ServiceIdentificationTypeImpl#getAccessConstraints <em>Access Constraints</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class ServiceIdentificationTypeImpl extends DescriptionTypeImpl implements ServiceIdentificationType {
	/**
     * The cached value of the '{@link #getServiceType() <em>Service Type</em>}' containment reference.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getServiceType()
     * @generated
     * @ordered
     */
	protected CodeType serviceType;

	/**
     * The default value of the '{@link #getServiceTypeVersion() <em>Service Type Version</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getServiceTypeVersion()
     * @generated
     * @ordered
     */
	protected static final String SERVICE_TYPE_VERSION_EDEFAULT = null;

	/**
     * The cached value of the '{@link #getServiceTypeVersion() <em>Service Type Version</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getServiceTypeVersion()
     * @generated
     * @ordered
     */
	protected String serviceTypeVersion = SERVICE_TYPE_VERSION_EDEFAULT;

	/**
     * The default value of the '{@link #getFees() <em>Fees</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getFees()
     * @generated
     * @ordered
     */
	protected static final String FEES_EDEFAULT = null;

	/**
     * The cached value of the '{@link #getFees() <em>Fees</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getFees()
     * @generated
     * @ordered
     */
	protected String fees = FEES_EDEFAULT;

	/**
     * The default value of the '{@link #getAccessConstraints() <em>Access Constraints</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getAccessConstraints()
     * @generated
     * @ordered
     */
	protected static final String ACCESS_CONSTRAINTS_EDEFAULT = null;

	/**
     * The cached value of the '{@link #getAccessConstraints() <em>Access Constraints</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getAccessConstraints()
     * @generated
     * @ordered
     */
	protected String accessConstraints = ACCESS_CONSTRAINTS_EDEFAULT;

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

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

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public CodeType getServiceType() {
        return serviceType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public NotificationChain basicSetServiceType(CodeType newServiceType, NotificationChain msgs) {
        CodeType oldServiceType = serviceType;
        serviceType = newServiceType;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE, oldServiceType, newServiceType);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
        return msgs;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public void setServiceType(CodeType newServiceType) {
        if (newServiceType != serviceType) {
            NotificationChain msgs = null;
            if (serviceType != null)
                msgs = ((InternalEObject)serviceType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE, null, msgs);
            if (newServiceType != null)
                msgs = ((InternalEObject)newServiceType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE, null, msgs);
            msgs = basicSetServiceType(newServiceType, msgs);
            if (msgs != null) msgs.dispatch();
        }
        else if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE, newServiceType, newServiceType));
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public String getServiceTypeVersion() {
        return serviceTypeVersion;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public void setServiceTypeVersion(String newServiceTypeVersion) {
        String oldServiceTypeVersion = serviceTypeVersion;
        serviceTypeVersion = newServiceTypeVersion;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE_VERSION, oldServiceTypeVersion, serviceTypeVersion));
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public String getFees() {
        return fees;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public void setFees(String newFees) {
        String oldFees = fees;
        fees = newFees;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, OwsPackage.SERVICE_IDENTIFICATION_TYPE__FEES, oldFees, fees));
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public String getAccessConstraints() {
        return accessConstraints;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public void setAccessConstraints(String newAccessConstraints) {
        String oldAccessConstraints = accessConstraints;
        accessConstraints = newAccessConstraints;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, OwsPackage.SERVICE_IDENTIFICATION_TYPE__ACCESS_CONSTRAINTS, oldAccessConstraints, accessConstraints));
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
        switch (featureID) {
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE:
                return basicSetServiceType(null, msgs);
        }
        return super.eInverseRemove(otherEnd, featureID, msgs);
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
        switch (featureID) {
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE:
                return getServiceType();
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE_VERSION:
                return getServiceTypeVersion();
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__FEES:
                return getFees();
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__ACCESS_CONSTRAINTS:
                return getAccessConstraints();
        }
        return super.eGet(featureID, resolve, coreType);
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public void eSet(int featureID, Object newValue) {
        switch (featureID) {
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE:
                setServiceType((CodeType)newValue);
                return;
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE_VERSION:
                setServiceTypeVersion((String)newValue);
                return;
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__FEES:
                setFees((String)newValue);
                return;
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__ACCESS_CONSTRAINTS:
                setAccessConstraints((String)newValue);
                return;
        }
        super.eSet(featureID, newValue);
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public void eUnset(int featureID) {
        switch (featureID) {
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE:
                setServiceType((CodeType)null);
                return;
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE_VERSION:
                setServiceTypeVersion(SERVICE_TYPE_VERSION_EDEFAULT);
                return;
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__FEES:
                setFees(FEES_EDEFAULT);
                return;
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__ACCESS_CONSTRAINTS:
                setAccessConstraints(ACCESS_CONSTRAINTS_EDEFAULT);
                return;
        }
        super.eUnset(featureID);
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public boolean eIsSet(int featureID) {
        switch (featureID) {
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE:
                return serviceType != null;
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__SERVICE_TYPE_VERSION:
                return SERVICE_TYPE_VERSION_EDEFAULT == null ? serviceTypeVersion != null : !SERVICE_TYPE_VERSION_EDEFAULT.equals(serviceTypeVersion);
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__FEES:
                return FEES_EDEFAULT == null ? fees != null : !FEES_EDEFAULT.equals(fees);
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE__ACCESS_CONSTRAINTS:
                return ACCESS_CONSTRAINTS_EDEFAULT == null ? accessConstraints != null : !ACCESS_CONSTRAINTS_EDEFAULT.equals(accessConstraints);
        }
        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(" (serviceTypeVersion: ");
        result.append(serviceTypeVersion);
        result.append(", fees: ");
        result.append(fees);
        result.append(", accessConstraints: ");
        result.append(accessConstraints);
        result.append(')');
        return result.toString();
    }

} //ServiceIdentificationTypeImpl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -