📄 capabilitiesbasetypeimpl.java
字号:
/**
* <copyright>
* </copyright>
*
* $Id: CapabilitiesBaseTypeImpl.java 7522 2007-09-12 22:00:10Z saul.farber $
*/
package net.opengis.ows.impl;
import net.opengis.ows.CapabilitiesBaseType;
import net.opengis.ows.OperationsMetadataType;
import net.opengis.ows.OwsPackage;
import net.opengis.ows.ServiceIdentificationType;
import net.opengis.ows.ServiceProviderType;
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;
import org.eclipse.emf.ecore.impl.EObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Capabilities Base Type</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link net.opengis.ows.impl.CapabilitiesBaseTypeImpl#getServiceIdentification <em>Service Identification</em>}</li>
* <li>{@link net.opengis.ows.impl.CapabilitiesBaseTypeImpl#getServiceProvider <em>Service Provider</em>}</li>
* <li>{@link net.opengis.ows.impl.CapabilitiesBaseTypeImpl#getOperationsMetadata <em>Operations Metadata</em>}</li>
* <li>{@link net.opengis.ows.impl.CapabilitiesBaseTypeImpl#getUpdateSequence <em>Update Sequence</em>}</li>
* <li>{@link net.opengis.ows.impl.CapabilitiesBaseTypeImpl#getVersion <em>Version</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class CapabilitiesBaseTypeImpl extends EObjectImpl implements CapabilitiesBaseType {
/**
* The cached value of the '{@link #getServiceIdentification() <em>Service Identification</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getServiceIdentification()
* @generated
* @ordered
*/
protected ServiceIdentificationType serviceIdentification;
/**
* The cached value of the '{@link #getServiceProvider() <em>Service Provider</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getServiceProvider()
* @generated
* @ordered
*/
protected ServiceProviderType serviceProvider;
/**
* The cached value of the '{@link #getOperationsMetadata() <em>Operations Metadata</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperationsMetadata()
* @generated
* @ordered
*/
protected OperationsMetadataType operationsMetadata;
/**
* The default value of the '{@link #getUpdateSequence() <em>Update Sequence</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUpdateSequence()
* @generated
* @ordered
*/
protected static final String UPDATE_SEQUENCE_EDEFAULT = null;
/**
* The cached value of the '{@link #getUpdateSequence() <em>Update Sequence</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUpdateSequence()
* @generated
* @ordered
*/
protected String updateSequence = UPDATE_SEQUENCE_EDEFAULT;
/**
* The default value of the '{@link #getVersion() <em>Version</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getVersion()
* @generated
* @ordered
*/
protected static final String VERSION_EDEFAULT = null;
/**
* The cached value of the '{@link #getVersion() <em>Version</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getVersion()
* @generated
* @ordered
*/
protected String version = VERSION_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CapabilitiesBaseTypeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EClass eStaticClass() {
return OwsPackage.Literals.CAPABILITIES_BASE_TYPE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ServiceIdentificationType getServiceIdentification() {
return serviceIdentification;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetServiceIdentification(ServiceIdentificationType newServiceIdentification, NotificationChain msgs) {
ServiceIdentificationType oldServiceIdentification = serviceIdentification;
serviceIdentification = newServiceIdentification;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION, oldServiceIdentification, newServiceIdentification);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setServiceIdentification(ServiceIdentificationType newServiceIdentification) {
if (newServiceIdentification != serviceIdentification) {
NotificationChain msgs = null;
if (serviceIdentification != null)
msgs = ((InternalEObject)serviceIdentification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION, null, msgs);
if (newServiceIdentification != null)
msgs = ((InternalEObject)newServiceIdentification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION, null, msgs);
msgs = basicSetServiceIdentification(newServiceIdentification, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION, newServiceIdentification, newServiceIdentification));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ServiceProviderType getServiceProvider() {
return serviceProvider;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetServiceProvider(ServiceProviderType newServiceProvider, NotificationChain msgs) {
ServiceProviderType oldServiceProvider = serviceProvider;
serviceProvider = newServiceProvider;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER, oldServiceProvider, newServiceProvider);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setServiceProvider(ServiceProviderType newServiceProvider) {
if (newServiceProvider != serviceProvider) {
NotificationChain msgs = null;
if (serviceProvider != null)
msgs = ((InternalEObject)serviceProvider).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER, null, msgs);
if (newServiceProvider != null)
msgs = ((InternalEObject)newServiceProvider).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER, null, msgs);
msgs = basicSetServiceProvider(newServiceProvider, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER, newServiceProvider, newServiceProvider));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -