blob: bcf33e59a6656a35f51f812ab5262dcb036a80c4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2005 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.jst.j2ee.common.internal.impl.QNameImpl;
import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>WSDL Service Name</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public class WSDLServiceNameImpl extends QNameImpl implements WSDLServiceName
{
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected WSDLServiceNameImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EClass eStaticClass() {
return JaxrpcmapPackage.eINSTANCE.getWSDLServiceName();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object eGet(EStructuralFeature eFeature, boolean resolve) {
switch (eDerivedStructuralFeatureID(eFeature)) {
case JaxrpcmapPackage.WSDL_SERVICE_NAME__NAMESPACE_URI:
return getNamespaceURI();
case JaxrpcmapPackage.WSDL_SERVICE_NAME__LOCAL_PART:
return getLocalPart();
case JaxrpcmapPackage.WSDL_SERVICE_NAME__COMBINED_QNAME:
return getCombinedQName();
case JaxrpcmapPackage.WSDL_SERVICE_NAME__INTERNAL_PREFIX_OR_NS_URI:
return getInternalPrefixOrNsURI();
}
return eDynamicGet(eFeature, resolve);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eSet(EStructuralFeature eFeature, Object newValue) {
switch (eDerivedStructuralFeatureID(eFeature)) {
case JaxrpcmapPackage.WSDL_SERVICE_NAME__NAMESPACE_URI:
setNamespaceURI((String)newValue);
return;
case JaxrpcmapPackage.WSDL_SERVICE_NAME__LOCAL_PART:
setLocalPart((String)newValue);
return;
case JaxrpcmapPackage.WSDL_SERVICE_NAME__COMBINED_QNAME:
setCombinedQName((String)newValue);
return;
case JaxrpcmapPackage.WSDL_SERVICE_NAME__INTERNAL_PREFIX_OR_NS_URI:
setInternalPrefixOrNsURI((String)newValue);
return;
}
eDynamicSet(eFeature, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eUnset(EStructuralFeature eFeature) {
switch (eDerivedStructuralFeatureID(eFeature)) {
case JaxrpcmapPackage.WSDL_SERVICE_NAME__NAMESPACE_URI:
setNamespaceURI(NAMESPACE_URI_EDEFAULT);
return;
case JaxrpcmapPackage.WSDL_SERVICE_NAME__LOCAL_PART:
setLocalPart(LOCAL_PART_EDEFAULT);
return;
case JaxrpcmapPackage.WSDL_SERVICE_NAME__COMBINED_QNAME:
setCombinedQName(COMBINED_QNAME_EDEFAULT);
return;
case JaxrpcmapPackage.WSDL_SERVICE_NAME__INTERNAL_PREFIX_OR_NS_URI:
setInternalPrefixOrNsURI(INTERNAL_PREFIX_OR_NS_URI_EDEFAULT);
return;
}
eDynamicUnset(eFeature);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean eIsSet(EStructuralFeature eFeature) {
switch (eDerivedStructuralFeatureID(eFeature)) {
case JaxrpcmapPackage.WSDL_SERVICE_NAME__NAMESPACE_URI:
return NAMESPACE_URI_EDEFAULT == null ? namespaceURI != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI);
case JaxrpcmapPackage.WSDL_SERVICE_NAME__LOCAL_PART:
return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart);
case JaxrpcmapPackage.WSDL_SERVICE_NAME__COMBINED_QNAME:
return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName);
case JaxrpcmapPackage.WSDL_SERVICE_NAME__INTERNAL_PREFIX_OR_NS_URI:
return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI);
}
return eDynamicIsSet(eFeature);
}
} //WSDLServiceNameImpl