blob: d9b11770cd97c4bbc9603295030003eacda2cd61 [file] [log] [blame]
/**
* Copyright (c) 2010 Mia-Software.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*
* Nicolas Guyomar (Mia-Software) - initial API and implementation
*/
package org.eclipse.modisco.jee.webapp.webapp30.impl;
import java.lang.String;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
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.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.modisco.jee.webapp.webapp30.DescriptionType;
import org.eclipse.modisco.jee.webapp.webapp30.DisplayNameType;
import org.eclipse.modisco.jee.webapp.webapp30.FullyQualifiedClassType;
import org.eclipse.modisco.jee.webapp.webapp30.HandlerChainsType;
import org.eclipse.modisco.jee.webapp.webapp30.HandlerType;
import org.eclipse.modisco.jee.webapp.webapp30.IconType;
import org.eclipse.modisco.jee.webapp.webapp30.InjectionTargetType;
import org.eclipse.modisco.jee.webapp.webapp30.JndiNameType;
import org.eclipse.modisco.jee.webapp.webapp30.PathType;
import org.eclipse.modisco.jee.webapp.webapp30.PortComponentRefType;
import org.eclipse.modisco.jee.webapp.webapp30.ServiceRefType;
import org.eclipse.modisco.jee.webapp.webapp30.Webapp30Package;
import org.eclipse.modisco.jee.webapp.webapp30.XsdAnyURIType;
import org.eclipse.modisco.jee.webapp.webapp30.XsdQNameType;
import org.eclipse.modisco.jee.webapp.webapp30.XsdStringType;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Service Ref Type</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getDisplayName <em>Display Name</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getIcon <em>Icon</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getServiceRefName <em>Service Ref Name</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getServiceInterface <em>Service Interface</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getServiceRefType <em>Service Ref Type</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getWsdlFile <em>Wsdl File</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getServiceQname <em>Service Qname</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getPortComponentRef <em>Port Component Ref</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getHandler <em>Handler</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getHandlerChains <em>Handler Chains</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getMappedName <em>Mapped Name</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getInjectionTarget <em>Injection Target</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getLookupName <em>Lookup Name</em>}</li>
* <li>{@link org.eclipse.modisco.jee.webapp.webapp30.impl.ServiceRefTypeImpl#getId <em>Id</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ServiceRefTypeImpl extends EObjectImpl implements ServiceRefType {
/**
* The cached value of the '{@link #getDescription() <em>Description</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected EList<DescriptionType> description;
/**
* The cached value of the '{@link #getDisplayName() <em>Display Name</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisplayName()
* @generated
* @ordered
*/
protected EList<DisplayNameType> displayName;
/**
* The cached value of the '{@link #getIcon() <em>Icon</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIcon()
* @generated
* @ordered
*/
protected EList<IconType> icon;
/**
* The cached value of the '{@link #getServiceRefName() <em>Service Ref Name</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getServiceRefName()
* @generated
* @ordered
*/
protected JndiNameType serviceRefName;
/**
* The cached value of the '{@link #getServiceInterface() <em>Service Interface</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getServiceInterface()
* @generated
* @ordered
*/
protected FullyQualifiedClassType serviceInterface;
/**
* The cached value of the '{@link #getServiceRefType() <em>Service Ref Type</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getServiceRefType()
* @generated
* @ordered
*/
protected FullyQualifiedClassType serviceRefType;
/**
* The cached value of the '{@link #getWsdlFile() <em>Wsdl File</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWsdlFile()
* @generated
* @ordered
*/
protected XsdAnyURIType wsdlFile;
/**
* The cached value of the '{@link #getJaxrpcMappingFile() <em>Jaxrpc Mapping File</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getJaxrpcMappingFile()
* @generated
* @ordered
*/
protected PathType jaxrpcMappingFile;
/**
* The cached value of the '{@link #getServiceQname() <em>Service Qname</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getServiceQname()
* @generated
* @ordered
*/
protected XsdQNameType serviceQname;
/**
* The cached value of the '{@link #getPortComponentRef() <em>Port Component Ref</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPortComponentRef()
* @generated
* @ordered
*/
protected EList<PortComponentRefType> portComponentRef;
/**
* The cached value of the '{@link #getHandler() <em>Handler</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHandler()
* @generated
* @ordered
*/
protected EList<HandlerType> handler;
/**
* The cached value of the '{@link #getHandlerChains() <em>Handler Chains</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHandlerChains()
* @generated
* @ordered
*/
protected HandlerChainsType handlerChains;
/**
* The cached value of the '{@link #getMappedName() <em>Mapped Name</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMappedName()
* @generated
* @ordered
*/
protected XsdStringType mappedName;
/**
* The cached value of the '{@link #getInjectionTarget() <em>Injection Target</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInjectionTarget()
* @generated
* @ordered
*/
protected EList<InjectionTargetType> injectionTarget;
/**
* The cached value of the '{@link #getLookupName() <em>Lookup Name</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLookupName()
* @generated
* @ordered
*/
protected XsdStringType lookupName;
/**
* The default value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @generated
* @ordered
*/
protected static final String ID_EDEFAULT = null;
/**
* The cached value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @generated
* @ordered
*/
protected String id = ID_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ServiceRefTypeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return Webapp30Package.eINSTANCE.getServiceRefType();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<DescriptionType> getDescription() {
if (description == null) {
description = new EObjectContainmentEList<DescriptionType>(DescriptionType.class, this, Webapp30Package.SERVICE_REF_TYPE__DESCRIPTION);
}
return description;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<DisplayNameType> getDisplayName() {
if (displayName == null) {
displayName = new EObjectContainmentEList<DisplayNameType>(DisplayNameType.class, this, Webapp30Package.SERVICE_REF_TYPE__DISPLAY_NAME);
}
return displayName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<IconType> getIcon() {
if (icon == null) {
icon = new EObjectContainmentEList<IconType>(IconType.class, this, Webapp30Package.SERVICE_REF_TYPE__ICON);
}
return icon;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public JndiNameType getServiceRefName() {
return serviceRefName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetServiceRefName(JndiNameType newServiceRefName, NotificationChain msgs) {
JndiNameType oldServiceRefName = serviceRefName;
serviceRefName = newServiceRefName;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_NAME, oldServiceRefName, newServiceRefName);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setServiceRefName(JndiNameType newServiceRefName) {
if (newServiceRefName != serviceRefName) {
NotificationChain msgs = null;
if (serviceRefName != null)
msgs = ((InternalEObject)serviceRefName).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_NAME, null, msgs);
if (newServiceRefName != null)
msgs = ((InternalEObject)newServiceRefName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_NAME, null, msgs);
msgs = basicSetServiceRefName(newServiceRefName, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_NAME, newServiceRefName, newServiceRefName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FullyQualifiedClassType getServiceInterface() {
return serviceInterface;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetServiceInterface(FullyQualifiedClassType newServiceInterface, NotificationChain msgs) {
FullyQualifiedClassType oldServiceInterface = serviceInterface;
serviceInterface = newServiceInterface;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__SERVICE_INTERFACE, oldServiceInterface, newServiceInterface);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setServiceInterface(FullyQualifiedClassType newServiceInterface) {
if (newServiceInterface != serviceInterface) {
NotificationChain msgs = null;
if (serviceInterface != null)
msgs = ((InternalEObject)serviceInterface).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__SERVICE_INTERFACE, null, msgs);
if (newServiceInterface != null)
msgs = ((InternalEObject)newServiceInterface).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__SERVICE_INTERFACE, null, msgs);
msgs = basicSetServiceInterface(newServiceInterface, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__SERVICE_INTERFACE, newServiceInterface, newServiceInterface));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FullyQualifiedClassType getServiceRefType() {
return serviceRefType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetServiceRefType(FullyQualifiedClassType newServiceRefType, NotificationChain msgs) {
FullyQualifiedClassType oldServiceRefType = serviceRefType;
serviceRefType = newServiceRefType;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_TYPE, oldServiceRefType, newServiceRefType);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setServiceRefType(FullyQualifiedClassType newServiceRefType) {
if (newServiceRefType != serviceRefType) {
NotificationChain msgs = null;
if (serviceRefType != null)
msgs = ((InternalEObject)serviceRefType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_TYPE, null, msgs);
if (newServiceRefType != null)
msgs = ((InternalEObject)newServiceRefType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_TYPE, null, msgs);
msgs = basicSetServiceRefType(newServiceRefType, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_TYPE, newServiceRefType, newServiceRefType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public XsdAnyURIType getWsdlFile() {
return wsdlFile;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetWsdlFile(XsdAnyURIType newWsdlFile, NotificationChain msgs) {
XsdAnyURIType oldWsdlFile = wsdlFile;
wsdlFile = newWsdlFile;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__WSDL_FILE, oldWsdlFile, newWsdlFile);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setWsdlFile(XsdAnyURIType newWsdlFile) {
if (newWsdlFile != wsdlFile) {
NotificationChain msgs = null;
if (wsdlFile != null)
msgs = ((InternalEObject)wsdlFile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__WSDL_FILE, null, msgs);
if (newWsdlFile != null)
msgs = ((InternalEObject)newWsdlFile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__WSDL_FILE, null, msgs);
msgs = basicSetWsdlFile(newWsdlFile, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__WSDL_FILE, newWsdlFile, newWsdlFile));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PathType getJaxrpcMappingFile() {
return jaxrpcMappingFile;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetJaxrpcMappingFile(PathType newJaxrpcMappingFile, NotificationChain msgs) {
PathType oldJaxrpcMappingFile = jaxrpcMappingFile;
jaxrpcMappingFile = newJaxrpcMappingFile;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__JAXRPC_MAPPING_FILE, oldJaxrpcMappingFile, newJaxrpcMappingFile);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setJaxrpcMappingFile(PathType newJaxrpcMappingFile) {
if (newJaxrpcMappingFile != jaxrpcMappingFile) {
NotificationChain msgs = null;
if (jaxrpcMappingFile != null)
msgs = ((InternalEObject)jaxrpcMappingFile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__JAXRPC_MAPPING_FILE, null, msgs);
if (newJaxrpcMappingFile != null)
msgs = ((InternalEObject)newJaxrpcMappingFile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__JAXRPC_MAPPING_FILE, null, msgs);
msgs = basicSetJaxrpcMappingFile(newJaxrpcMappingFile, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__JAXRPC_MAPPING_FILE, newJaxrpcMappingFile, newJaxrpcMappingFile));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public XsdQNameType getServiceQname() {
return serviceQname;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetServiceQname(XsdQNameType newServiceQname, NotificationChain msgs) {
XsdQNameType oldServiceQname = serviceQname;
serviceQname = newServiceQname;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__SERVICE_QNAME, oldServiceQname, newServiceQname);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setServiceQname(XsdQNameType newServiceQname) {
if (newServiceQname != serviceQname) {
NotificationChain msgs = null;
if (serviceQname != null)
msgs = ((InternalEObject)serviceQname).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__SERVICE_QNAME, null, msgs);
if (newServiceQname != null)
msgs = ((InternalEObject)newServiceQname).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__SERVICE_QNAME, null, msgs);
msgs = basicSetServiceQname(newServiceQname, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__SERVICE_QNAME, newServiceQname, newServiceQname));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<PortComponentRefType> getPortComponentRef() {
if (portComponentRef == null) {
portComponentRef = new EObjectContainmentEList<PortComponentRefType>(PortComponentRefType.class, this, Webapp30Package.SERVICE_REF_TYPE__PORT_COMPONENT_REF);
}
return portComponentRef;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<HandlerType> getHandler() {
if (handler == null) {
handler = new EObjectContainmentEList<HandlerType>(HandlerType.class, this, Webapp30Package.SERVICE_REF_TYPE__HANDLER);
}
return handler;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public HandlerChainsType getHandlerChains() {
return handlerChains;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetHandlerChains(HandlerChainsType newHandlerChains, NotificationChain msgs) {
HandlerChainsType oldHandlerChains = handlerChains;
handlerChains = newHandlerChains;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__HANDLER_CHAINS, oldHandlerChains, newHandlerChains);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setHandlerChains(HandlerChainsType newHandlerChains) {
if (newHandlerChains != handlerChains) {
NotificationChain msgs = null;
if (handlerChains != null)
msgs = ((InternalEObject)handlerChains).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__HANDLER_CHAINS, null, msgs);
if (newHandlerChains != null)
msgs = ((InternalEObject)newHandlerChains).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__HANDLER_CHAINS, null, msgs);
msgs = basicSetHandlerChains(newHandlerChains, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__HANDLER_CHAINS, newHandlerChains, newHandlerChains));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public XsdStringType getMappedName() {
return mappedName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetMappedName(XsdStringType newMappedName, NotificationChain msgs) {
XsdStringType oldMappedName = mappedName;
mappedName = newMappedName;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__MAPPED_NAME, oldMappedName, newMappedName);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setMappedName(XsdStringType newMappedName) {
if (newMappedName != mappedName) {
NotificationChain msgs = null;
if (mappedName != null)
msgs = ((InternalEObject)mappedName).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__MAPPED_NAME, null, msgs);
if (newMappedName != null)
msgs = ((InternalEObject)newMappedName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__MAPPED_NAME, null, msgs);
msgs = basicSetMappedName(newMappedName, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__MAPPED_NAME, newMappedName, newMappedName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<InjectionTargetType> getInjectionTarget() {
if (injectionTarget == null) {
injectionTarget = new EObjectContainmentEList<InjectionTargetType>(InjectionTargetType.class, this, Webapp30Package.SERVICE_REF_TYPE__INJECTION_TARGET);
}
return injectionTarget;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public XsdStringType getLookupName() {
return lookupName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetLookupName(XsdStringType newLookupName, NotificationChain msgs) {
XsdStringType oldLookupName = lookupName;
lookupName = newLookupName;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__LOOKUP_NAME, oldLookupName, newLookupName);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLookupName(XsdStringType newLookupName) {
if (newLookupName != lookupName) {
NotificationChain msgs = null;
if (lookupName != null)
msgs = ((InternalEObject)lookupName).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__LOOKUP_NAME, null, msgs);
if (newLookupName != null)
msgs = ((InternalEObject)newLookupName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Webapp30Package.SERVICE_REF_TYPE__LOOKUP_NAME, null, msgs);
msgs = basicSetLookupName(newLookupName, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__LOOKUP_NAME, newLookupName, newLookupName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getId() {
return id;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setId(String newId) {
String oldId = id;
id = newId;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Webapp30Package.SERVICE_REF_TYPE__ID, oldId, id));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case Webapp30Package.SERVICE_REF_TYPE__DESCRIPTION:
return ((InternalEList<?>)getDescription()).basicRemove(otherEnd, msgs);
case Webapp30Package.SERVICE_REF_TYPE__DISPLAY_NAME:
return ((InternalEList<?>)getDisplayName()).basicRemove(otherEnd, msgs);
case Webapp30Package.SERVICE_REF_TYPE__ICON:
return ((InternalEList<?>)getIcon()).basicRemove(otherEnd, msgs);
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_NAME:
return basicSetServiceRefName(null, msgs);
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_INTERFACE:
return basicSetServiceInterface(null, msgs);
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_TYPE:
return basicSetServiceRefType(null, msgs);
case Webapp30Package.SERVICE_REF_TYPE__WSDL_FILE:
return basicSetWsdlFile(null, msgs);
case Webapp30Package.SERVICE_REF_TYPE__JAXRPC_MAPPING_FILE:
return basicSetJaxrpcMappingFile(null, msgs);
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_QNAME:
return basicSetServiceQname(null, msgs);
case Webapp30Package.SERVICE_REF_TYPE__PORT_COMPONENT_REF:
return ((InternalEList<?>)getPortComponentRef()).basicRemove(otherEnd, msgs);
case Webapp30Package.SERVICE_REF_TYPE__HANDLER:
return ((InternalEList<?>)getHandler()).basicRemove(otherEnd, msgs);
case Webapp30Package.SERVICE_REF_TYPE__HANDLER_CHAINS:
return basicSetHandlerChains(null, msgs);
case Webapp30Package.SERVICE_REF_TYPE__MAPPED_NAME:
return basicSetMappedName(null, msgs);
case Webapp30Package.SERVICE_REF_TYPE__INJECTION_TARGET:
return ((InternalEList<?>)getInjectionTarget()).basicRemove(otherEnd, msgs);
case Webapp30Package.SERVICE_REF_TYPE__LOOKUP_NAME:
return basicSetLookupName(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Webapp30Package.SERVICE_REF_TYPE__DESCRIPTION:
return getDescription();
case Webapp30Package.SERVICE_REF_TYPE__DISPLAY_NAME:
return getDisplayName();
case Webapp30Package.SERVICE_REF_TYPE__ICON:
return getIcon();
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_NAME:
return getServiceRefName();
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_INTERFACE:
return getServiceInterface();
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_TYPE:
return getServiceRefType();
case Webapp30Package.SERVICE_REF_TYPE__WSDL_FILE:
return getWsdlFile();
case Webapp30Package.SERVICE_REF_TYPE__JAXRPC_MAPPING_FILE:
return getJaxrpcMappingFile();
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_QNAME:
return getServiceQname();
case Webapp30Package.SERVICE_REF_TYPE__PORT_COMPONENT_REF:
return getPortComponentRef();
case Webapp30Package.SERVICE_REF_TYPE__HANDLER:
return getHandler();
case Webapp30Package.SERVICE_REF_TYPE__HANDLER_CHAINS:
return getHandlerChains();
case Webapp30Package.SERVICE_REF_TYPE__MAPPED_NAME:
return getMappedName();
case Webapp30Package.SERVICE_REF_TYPE__INJECTION_TARGET:
return getInjectionTarget();
case Webapp30Package.SERVICE_REF_TYPE__LOOKUP_NAME:
return getLookupName();
case Webapp30Package.SERVICE_REF_TYPE__ID:
return getId();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Webapp30Package.SERVICE_REF_TYPE__DESCRIPTION:
getDescription().clear();
getDescription().addAll((Collection<? extends DescriptionType>)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__DISPLAY_NAME:
getDisplayName().clear();
getDisplayName().addAll((Collection<? extends DisplayNameType>)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__ICON:
getIcon().clear();
getIcon().addAll((Collection<? extends IconType>)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_NAME:
setServiceRefName((JndiNameType)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_INTERFACE:
setServiceInterface((FullyQualifiedClassType)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_TYPE:
setServiceRefType((FullyQualifiedClassType)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__WSDL_FILE:
setWsdlFile((XsdAnyURIType)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__JAXRPC_MAPPING_FILE:
setJaxrpcMappingFile((PathType)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_QNAME:
setServiceQname((XsdQNameType)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__PORT_COMPONENT_REF:
getPortComponentRef().clear();
getPortComponentRef().addAll((Collection<? extends PortComponentRefType>)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__HANDLER:
getHandler().clear();
getHandler().addAll((Collection<? extends HandlerType>)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__HANDLER_CHAINS:
setHandlerChains((HandlerChainsType)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__MAPPED_NAME:
setMappedName((XsdStringType)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__INJECTION_TARGET:
getInjectionTarget().clear();
getInjectionTarget().addAll((Collection<? extends InjectionTargetType>)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__LOOKUP_NAME:
setLookupName((XsdStringType)newValue);
return;
case Webapp30Package.SERVICE_REF_TYPE__ID:
setId((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Webapp30Package.SERVICE_REF_TYPE__DESCRIPTION:
getDescription().clear();
return;
case Webapp30Package.SERVICE_REF_TYPE__DISPLAY_NAME:
getDisplayName().clear();
return;
case Webapp30Package.SERVICE_REF_TYPE__ICON:
getIcon().clear();
return;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_NAME:
setServiceRefName((JndiNameType)null);
return;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_INTERFACE:
setServiceInterface((FullyQualifiedClassType)null);
return;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_TYPE:
setServiceRefType((FullyQualifiedClassType)null);
return;
case Webapp30Package.SERVICE_REF_TYPE__WSDL_FILE:
setWsdlFile((XsdAnyURIType)null);
return;
case Webapp30Package.SERVICE_REF_TYPE__JAXRPC_MAPPING_FILE:
setJaxrpcMappingFile((PathType)null);
return;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_QNAME:
setServiceQname((XsdQNameType)null);
return;
case Webapp30Package.SERVICE_REF_TYPE__PORT_COMPONENT_REF:
getPortComponentRef().clear();
return;
case Webapp30Package.SERVICE_REF_TYPE__HANDLER:
getHandler().clear();
return;
case Webapp30Package.SERVICE_REF_TYPE__HANDLER_CHAINS:
setHandlerChains((HandlerChainsType)null);
return;
case Webapp30Package.SERVICE_REF_TYPE__MAPPED_NAME:
setMappedName((XsdStringType)null);
return;
case Webapp30Package.SERVICE_REF_TYPE__INJECTION_TARGET:
getInjectionTarget().clear();
return;
case Webapp30Package.SERVICE_REF_TYPE__LOOKUP_NAME:
setLookupName((XsdStringType)null);
return;
case Webapp30Package.SERVICE_REF_TYPE__ID:
setId(ID_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Webapp30Package.SERVICE_REF_TYPE__DESCRIPTION:
return description != null && !description.isEmpty();
case Webapp30Package.SERVICE_REF_TYPE__DISPLAY_NAME:
return displayName != null && !displayName.isEmpty();
case Webapp30Package.SERVICE_REF_TYPE__ICON:
return icon != null && !icon.isEmpty();
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_NAME:
return serviceRefName != null;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_INTERFACE:
return serviceInterface != null;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_REF_TYPE:
return serviceRefType != null;
case Webapp30Package.SERVICE_REF_TYPE__WSDL_FILE:
return wsdlFile != null;
case Webapp30Package.SERVICE_REF_TYPE__JAXRPC_MAPPING_FILE:
return jaxrpcMappingFile != null;
case Webapp30Package.SERVICE_REF_TYPE__SERVICE_QNAME:
return serviceQname != null;
case Webapp30Package.SERVICE_REF_TYPE__PORT_COMPONENT_REF:
return portComponentRef != null && !portComponentRef.isEmpty();
case Webapp30Package.SERVICE_REF_TYPE__HANDLER:
return handler != null && !handler.isEmpty();
case Webapp30Package.SERVICE_REF_TYPE__HANDLER_CHAINS:
return handlerChains != null;
case Webapp30Package.SERVICE_REF_TYPE__MAPPED_NAME:
return mappedName != null;
case Webapp30Package.SERVICE_REF_TYPE__INJECTION_TARGET:
return injectionTarget != null && !injectionTarget.isEmpty();
case Webapp30Package.SERVICE_REF_TYPE__LOOKUP_NAME:
return lookupName != null;
case Webapp30Package.SERVICE_REF_TYPE__ID:
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (id: "); //$NON-NLS-1$
result.append(id);
result.append(')');
return result.toString();
}
} //ServiceRefTypeImpl