📄 getcapabilitiestypeimpl.java
字号:
/**
* <copyright>
* </copyright>
*
* $Id: GetCapabilitiesTypeImpl.java 7522 2007-09-12 22:00:10Z saul.farber $
*/
package net.opengis.ows.impl;
import net.opengis.ows.AcceptFormatsType;
import net.opengis.ows.AcceptVersionsType;
import net.opengis.ows.GetCapabilitiesType;
import net.opengis.ows.OwsPackage;
import net.opengis.ows.SectionsType;
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>Get Capabilities Type</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link net.opengis.ows.impl.GetCapabilitiesTypeImpl#getAcceptVersions <em>Accept Versions</em>}</li>
* <li>{@link net.opengis.ows.impl.GetCapabilitiesTypeImpl#getSections <em>Sections</em>}</li>
* <li>{@link net.opengis.ows.impl.GetCapabilitiesTypeImpl#getAcceptFormats <em>Accept Formats</em>}</li>
* <li>{@link net.opengis.ows.impl.GetCapabilitiesTypeImpl#getUpdateSequence <em>Update Sequence</em>}</li>
* <li>{@link net.opengis.ows.impl.GetCapabilitiesTypeImpl#getBaseUrl <em>Base Url</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class GetCapabilitiesTypeImpl extends EObjectImpl implements GetCapabilitiesType {
/**
* The cached value of the '{@link #getAcceptVersions() <em>Accept Versions</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAcceptVersions()
* @generated
* @ordered
*/
protected AcceptVersionsType acceptVersions;
/**
* The cached value of the '{@link #getSections() <em>Sections</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSections()
* @generated
* @ordered
*/
protected SectionsType sections;
/**
* The cached value of the '{@link #getAcceptFormats() <em>Accept Formats</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAcceptFormats()
* @generated
* @ordered
*/
protected AcceptFormatsType acceptFormats;
/**
* 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 #getBaseUrl() <em>Base Url</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBaseUrl()
* @generated
* @ordered
*/
protected static final String BASE_URL_EDEFAULT = null;
/**
* The cached value of the '{@link #getBaseUrl() <em>Base Url</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBaseUrl()
* @generated
* @ordered
*/
protected String baseUrl = BASE_URL_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GetCapabilitiesTypeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EClass eStaticClass() {
return OwsPackage.Literals.GET_CAPABILITIES_TYPE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AcceptVersionsType getAcceptVersions() {
return acceptVersions;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetAcceptVersions(AcceptVersionsType newAcceptVersions, NotificationChain msgs) {
AcceptVersionsType oldAcceptVersions = acceptVersions;
acceptVersions = newAcceptVersions;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS, oldAcceptVersions, newAcceptVersions);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setAcceptVersions(AcceptVersionsType newAcceptVersions) {
if (newAcceptVersions != acceptVersions) {
NotificationChain msgs = null;
if (acceptVersions != null)
msgs = ((InternalEObject)acceptVersions).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS, null, msgs);
if (newAcceptVersions != null)
msgs = ((InternalEObject)newAcceptVersions).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS, null, msgs);
msgs = basicSetAcceptVersions(newAcceptVersions, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS, newAcceptVersions, newAcceptVersions));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SectionsType getSections() {
return sections;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSections(SectionsType newSections, NotificationChain msgs) {
SectionsType oldSections = sections;
sections = newSections;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS, oldSections, newSections);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSections(SectionsType newSections) {
if (newSections != sections) {
NotificationChain msgs = null;
if (sections != null)
msgs = ((InternalEObject)sections).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS, null, msgs);
if (newSections != null)
msgs = ((InternalEObject)newSections).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS, null, msgs);
msgs = basicSetSections(newSections, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS, newSections, newSections));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -