Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org')
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/DomUtil.java241
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/INamedExtensionInfo.java33
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/IPropertyDefaults.java32
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/IPropertyState.java30
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/WsDomStartupParticipant.java52
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/DomFactory.java114
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/DomPackage.java1372
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IDOM.java50
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IJavaWebServiceElement.java43
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IServiceEndpointInterface.java145
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWSDOMRuntimeManager.java47
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebMethod.java132
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebParam.java122
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebService.java71
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebServiceProject.java39
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebType.java20
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWsDOMRuntimeExtension.java64
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWsDomLoadListener.java32
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingParameterStyle.java223
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingStyle.java223
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingUse.java223
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WebParamKind.java207
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WsDOMLoadCanceledException.java47
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WsDOMRuntimeManager.java147
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/dom.ecore132
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/dom.ws.genmodel76
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/DomFactoryImpl.java320
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/DomPackageImpl.java722
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IDOMImpl.java162
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IJavaWebServiceElementImpl.java227
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IServiceEndpointInterfaceImpl.java522
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebMethodImpl.java397
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebParamImpl.java389
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebServiceImpl.java396
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebServiceProjectImpl.java270
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebTypeImpl.java47
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/JaxWsDomRuntimeMessages.java29
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/JaxWsDomRuntimePlugin.java60
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/messages.properties13
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/util/NamedExtensionInfo.java39
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/util/XpUtil.java63
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IAnnotationSerializer.java24
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/ICompilationUnitFinder.java37
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/ICompilationUnitHandler.java53
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IModelElementSynchronizer.java29
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IProjectSelector.java32
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/JaxWsDefaultsCalculator.java185
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/JaxWsWorkspaceResource.java326
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/Jee5WsDomRuntimeExtension.java135
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/NonStreamResource.java128
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/SBAnnotationFeatures.java38
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WMAnnotationFeatures.java25
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WPAnnotationFeatures.java32
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WSAnnotationFeatures.java25
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WorkspaceCUFinder.java133
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/AnnotationAdapterFactory.java44
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/IAnnotationAdapter.java39
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/impl/AnnotationAdapter.java55
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/MethodPropertyDefaultsAdapter.java52
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/ParameterPropertyDefaultsAdapter.java61
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/PropertyDefaultsAdapterFactory.java54
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/SeiPropertyDefaultsAdapter.java46
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/WsPropertyDefaultsAdapter.java43
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/AbstractSerializerAdapter.java236
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/MethodSerializerAdapter.java98
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/ParameterSerializerAdapter.java199
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/SeiSerializerAdapter.java92
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/SerializerAdapterFactory.java66
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/WsSerializerAdapter.java108
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/MethodPropertyStateAdapter.java65
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/ParameterPropertyStateAdapter.java109
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/PropertyStateAdapterFactory.java53
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/SeiPropertyStateAdapter.java64
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/WsPropertyStateAdapter.java58
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/AbstractMethodSynchronizer.java218
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/AbstractModelSynchronizer.java259
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/ElementSynchronizerImpl.java85
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/InitialModelSynchronizer.java38
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/OnEventModelSynchronizer.java416
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/ParameterSynchronizer.java244
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiMerger.java106
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiMethodSynchronizer.java46
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiSynchronizer.java81
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/WSMethodSynchronizer.java72
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/WsSynchronizer.java172
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/registry/IWsDOMRuntimeInfo.java32
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/registry/WsDOMRuntimeRegistry.java199
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/Dom2ResourceMapper.java133
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/DomAdapterFactory.java281
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/DomSwitch.java306
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/Jee5DomUtils.java123
-rwxr-xr-xbundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/ParamValueComparator.java47
92 files changed, 0 insertions, 13175 deletions
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/DomUtil.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/DomUtil.java
deleted file mode 100755
index 6373b86..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/DomUtil.java
+++ /dev/null
@@ -1,241 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime;
-
-import java.util.Collection;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jdt.core.IMethod;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.util.DomSwitch;
-
-/**
- *
- * @noextend This class is not intended to be extended by clients.
- *
- */
-public class DomUtil
-{
- public static final DomUtil INSTANCE = new DomUtil();
-
- private final DomSwitch<String> implSwitch;
-
- public DomUtil() {
- implSwitch = createImplFinderSwitch();
- }
-
- public void setFeatureValue(final EObject object, final int featureId, final Object value)
- {
- final EStructuralFeature feature = object.eClass().getEStructuralFeature(featureId);
- object.eSet(feature, value);
- }
-
- public Object getFeatureValue(final EObject object, final int featureId)
- {
- final EStructuralFeature feature = object.eClass().getEStructuralFeature(featureId);
- return object.eGet(feature);
- }
-
- public void addToCollectionFeature(final EObject object, final int featureId, final Object value)
- {
- @SuppressWarnings("unchecked")
- final Collection<Object> oldValue = (Collection<Object>) getFeatureValue(object, featureId);
- oldValue.add(value);
- }
-
- public IWebServiceProject findProjectByName(IDOM dom, String name)
- {
- for (IWebServiceProject wsProject : dom.getWebServiceProjects())
- {
- if (wsProject.getName().equals(name))
- {
- return wsProject;
- }
- }
- return null;
- }
-
- public IWebService findWsByImplName(IWebServiceProject wsProject, String name)
- {
- for (IWebService ws : wsProject.getWebServices())
- {
- if (ws.getImplementation().equals(name))
- {
- return ws;
- }
- }
- return null;
- }
-
- public IServiceEndpointInterface findSeiByImplName(IWebServiceProject wsProject, String name)
- {
- for (IServiceEndpointInterface sei : wsProject.getServiceEndpointInterfaces())
- {
- if (sei.getImplementation().equals(name))
- {
- return sei;
- }
- }
- return null;
- }
-
-
- public IWebMethod findWebMethodByImpl(IServiceEndpointInterface sei, String impl)
- {
- for (IWebMethod wm : sei.getWebMethods())
- {
- if (wm.getImplementation().equals(impl))
- {
- return wm;
- }
- }
- return null;
- }
-
- public IMethod findMethod(final IType seiType, final IWebMethod webMethod) throws JavaModelException
- {
- for (IMethod method : seiType.getMethods())
- {
- if (webMethod.getImplementation().equals(calcImplementation(method))) {
- return method;
- }
- }
-
- return null;
- }
-
- public IJavaWebServiceElement findJavaWebServiceElemByImplName(IWebServiceProject wsProject, String name)
- {
- final IWebService ws = findWsByImplName(wsProject, name);
- return ws == null ? findSeiByImplName(wsProject, name) : ws;
- }
-
- /**
- * Calculates the method signature to be used as implementation in {@link IWebMethod}
- * @param method
- * @return calculated string
- * @throws JavaModelException
- */
- public String calcImplementation(final IMethod method) throws JavaModelException
- {
- return method.getElementName() + method.getSignature();
- }
-
- /**
- * Extract {@link IWebServiceProject} out of DOM object by recursively
- * iterating parent objects.
- * @param eObject
- * @return the found project or <code>null</code> in case not found
- */
- public IWebServiceProject findWsProject(EObject eObject)
- {
- EObject parent = eObject;
- while (parent!=null)
- {
- if (parent instanceof IWebServiceProject) {
- return (IWebServiceProject)parent;
- }
-
- parent = parent.eContainer();
- }
-
- return null;
- }
-
- /**
- * Defines if this SEI is part of outside-in web service
- * @param sei
- * @return true if there is a web service with wsdlLocation set to something different than <code>null</code>
- */
- public boolean isOutsideInWebService(final IServiceEndpointInterface sei)
- {
- if (sei == null) {
- return false;
- }
-
- for (IWebService webService : sei.getImplementingWebServices()) {
- if (webService.getWsdlLocation()!=null) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * Calculates unique implementation for DOM object in the scope of the resource in which
- * they exist. Useful when you need to uniquely identify DOM object.
- *
- * @param eObject
- * @return calculated implementation
- */
- public String calcUniqueImpl(final EObject eObject)
- {
- if (eObject.eClass().getClassifierID() == DomPackage.IWEB_PARAM)
- {
- final IWebParam wp = (IWebParam) eObject;
- return ((IWebMethod)wp.eContainer()).getImplementation() + "[" + wp.getImplementation() + "]"; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- return extractImplementation(eObject);
- }
-
- /**
- * Extracts the implementation property for DOM object without casting :-D.
- *
- * @param eObject
- * @return the implementation
- */
- public String extractImplementation(final EObject eObject) {
- return implSwitch.doSwitch(eObject);
- }
-
- private DomSwitch<String> createImplFinderSwitch()
- {
- return new DomSwitch<String>()
- {
- @Override
- public String caseIWebService(IWebService ws) {
- return ws.getImplementation();
- }
-
- @Override
- public String caseIServiceEndpointInterface(IServiceEndpointInterface sei) {
- return sei.getImplementation();
- }
-
- @Override
- public String caseIWebMethod(IWebMethod wm) {
- return wm.getImplementation();
- }
-
- @Override
- public String caseIWebParam(IWebParam wp) {
- return wp.getImplementation();
- }
-
- @Override
- public String caseIWebServiceProject(IWebServiceProject wsProject) {
- return wsProject.getName();
- }
- };
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/INamedExtensionInfo.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/INamedExtensionInfo.java
deleted file mode 100755
index ce509af..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/INamedExtensionInfo.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime;
-
-/**
- * Interface representig and extention.
- */
-public interface INamedExtensionInfo
-{
-
- /**
- * The unique ID to identify this consumer type when calling the <code>ProxyGeneratorFactory</code>, e.g. <code>jee/jaxws</code>
- *
- * @return non-empty string containing the ID
- */
- public abstract String getId();
-
- /**
- * A verbose name for the type of consumer, e.g. <code>JAX-WS</code>
- *
- * @return localized string used for the UI
- */
- public abstract String getName();
-
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/IPropertyDefaults.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/IPropertyDefaults.java
deleted file mode 100755
index 6cbcd10..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/IPropertyDefaults.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime;
-
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-/**
- * Interface that provides default values for DOM object's properties.
- * Usually this interface should be used by clients that need to revert some
- * property value to the default one.
- *
- * @author Georgi Vachkov
- */
-public interface IPropertyDefaults
-{
- /**
- * Defines the default value for this <code>feature</code>.
- *
- * @param feature the feature representing the objects property type
- * @return the default value. In case <code>null</code> is possible property value
- * <code>null</code> might be returned
- */
- public Object getDefault(EStructuralFeature feature);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/IPropertyState.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/IPropertyState.java
deleted file mode 100755
index e8c4e9b..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/IPropertyState.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime;
-
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-/**
- * Interface for checking the state of some property for concrete DOM object.
- * This interface should be used by DOM clients that need to know if some property
- * can be changed - for example UI editor that needs to know if the property should
- * be enabled for edit or disabled.
- *
- * @author Georgi Vachkov
- */
-public interface IPropertyState
-{
- /**
- * Defines if property is changeable.
- * @return <code>true</code> in case property can be changed
- */
- public boolean isChangeable(EStructuralFeature feature);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/WsDomStartupParticipant.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/WsDomStartupParticipant.java
deleted file mode 100755
index 8d13853..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/WsDomStartupParticipant.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime;
-
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WsDOMRuntimeManager;
-import org.eclipse.jst.ws.jaxws.dom.runtime.internal.plugin.JaxWsDomRuntimeMessages;
-import org.eclipse.ui.IStartup;
-
-/**
- * Startup participant registered on IDE startup extension point
- *
- * @author Georgi Vachkov
- * @noextend This class is not intended to be extended by clients.
- */
-public class WsDomStartupParticipant implements IStartup
-{
-
- /**
- * Called by the Eclipse on workbench startup.
- * Starts load for registered web service runtimes
- */
- public void earlyStartup()
- {
- Job job = new Job(JaxWsDomRuntimeMessages.WsDomStartupParticipant_Startup_Job_Message)
- {
- @Override
- protected IStatus run(final IProgressMonitor monitor)
- {
- WsDOMRuntimeManager.instance().createDOMRuntimes(monitor);
- return Status.OK_STATUS;
- }
- };
-
- job.setUser(false);
- job.setPriority(Job.LONG);
- job.setRule(ResourcesPlugin.getWorkspace().getRoot());
- job.schedule();
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/DomFactory.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/DomFactory.java
deleted file mode 100755
index 5a87613..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/DomFactory.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import org.eclipse.emf.ecore.EFactory;
-
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage
- * @generated
- */
-public interface DomFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- DomFactory eINSTANCE = org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>IDOM</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>IDOM</em>'.
- * @generated
- */
- IDOM createIDOM();
-
- /**
- * Returns a new object of class '<em>IJava Web Service Element</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>IJava Web Service Element</em>'.
- * @generated
- */
- IJavaWebServiceElement createIJavaWebServiceElement();
-
- /**
- * Returns a new object of class '<em>IService Endpoint Interface</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>IService Endpoint Interface</em>'.
- * @generated
- */
- IServiceEndpointInterface createIServiceEndpointInterface();
-
- /**
- * Returns a new object of class '<em>IWeb Method</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>IWeb Method</em>'.
- * @generated
- */
- IWebMethod createIWebMethod();
-
- /**
- * Returns a new object of class '<em>IWeb Param</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>IWeb Param</em>'.
- * @generated
- */
- IWebParam createIWebParam();
-
- /**
- * Returns a new object of class '<em>IWeb Service</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>IWeb Service</em>'.
- * @generated
- */
- IWebService createIWebService();
-
- /**
- * Returns a new object of class '<em>IWeb Service Project</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>IWeb Service Project</em>'.
- * @generated
- */
- IWebServiceProject createIWebServiceProject();
-
- /**
- * Returns a new object of class '<em>IWeb Type</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>IWeb Type</em>'.
- * @generated
- */
- IWebType createIWebType();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- DomPackage getDomPackage();
-
-} //DomFactory
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/DomPackage.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/DomPackage.java
deleted file mode 100755
index d6aab07..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/DomPackage.java
+++ /dev/null
@@ -1,1372 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomFactory
- * @model kind="package"
- * @generated
- */
-public interface DomPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "dom"; //$NON-NLS-1$
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http:///org/eclipse/jst/ws/jaxws/dom/runtime/dom.ecore"; //$NON-NLS-1$
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "org.eclipse.jst.ws.jaxws.dom.runtime"; //$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- DomPackage eINSTANCE = org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IDOMImpl <em>IDOM</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IDOMImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIDOM()
- * @generated
- */
- int IDOM = 0;
-
- /**
- * The feature id for the '<em><b>Web Service Projects</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IDOM__WEB_SERVICE_PROJECTS = 0;
-
- /**
- * The number of structural features of the '<em>IDOM</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IDOM_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IJavaWebServiceElementImpl <em>IJava Web Service Element</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IJavaWebServiceElementImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIJavaWebServiceElement()
- * @generated
- */
- int IJAVA_WEB_SERVICE_ELEMENT = 1;
-
- /**
- * The feature id for the '<em><b>Implementation</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION = 0;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IJAVA_WEB_SERVICE_ELEMENT__NAME = 1;
-
- /**
- * The number of structural features of the '<em>IJava Web Service Element</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl <em>IService Endpoint Interface</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIServiceEndpointInterface()
- * @generated
- */
- int ISERVICE_ENDPOINT_INTERFACE = 2;
-
- /**
- * The feature id for the '<em><b>Implementation</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTATION = IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISERVICE_ENDPOINT_INTERFACE__NAME = IJAVA_WEB_SERVICE_ELEMENT__NAME;
-
- /**
- * The feature id for the '<em><b>Implicit</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISERVICE_ENDPOINT_INTERFACE__IMPLICIT = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Implementing Web Services</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Web Methods</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISERVICE_ENDPOINT_INTERFACE__WEB_METHODS = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Target Namespace</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Soap Binding Style</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_STYLE = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the '<em><b>Soap Binding Use</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_USE = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 5;
-
- /**
- * The feature id for the '<em><b>Soap Binding Parameter Style</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_PARAMETER_STYLE = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 6;
-
- /**
- * The number of structural features of the '<em>IService Endpoint Interface</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISERVICE_ENDPOINT_INTERFACE_FEATURE_COUNT = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 7;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebMethodImpl <em>IWeb Method</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebMethodImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIWebMethod()
- * @generated
- */
- int IWEB_METHOD = 3;
-
- /**
- * The feature id for the '<em><b>Implementation</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_METHOD__IMPLEMENTATION = IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_METHOD__NAME = IJAVA_WEB_SERVICE_ELEMENT__NAME;
-
- /**
- * The feature id for the '<em><b>Parameters</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_METHOD__PARAMETERS = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Excluded</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_METHOD__EXCLUDED = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Soap Binding Style</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_METHOD__SOAP_BINDING_STYLE = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Soap Binding Use</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_METHOD__SOAP_BINDING_USE = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Soap Binding Parameter Style</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_METHOD__SOAP_BINDING_PARAMETER_STYLE = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 4;
-
- /**
- * The number of structural features of the '<em>IWeb Method</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_METHOD_FEATURE_COUNT = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 5;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebParamImpl <em>IWeb Param</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebParamImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIWebParam()
- * @generated
- */
- int IWEB_PARAM = 4;
-
- /**
- * The feature id for the '<em><b>Implementation</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_PARAM__IMPLEMENTATION = IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_PARAM__NAME = IJAVA_WEB_SERVICE_ELEMENT__NAME;
-
- /**
- * The feature id for the '<em><b>Kind</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_PARAM__KIND = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Type Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_PARAM__TYPE_NAME = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Part Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_PARAM__PART_NAME = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Target Namespace</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_PARAM__TARGET_NAMESPACE = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Header</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_PARAM__HEADER = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 4;
-
- /**
- * The number of structural features of the '<em>IWeb Param</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_PARAM_FEATURE_COUNT = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 5;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceImpl <em>IWeb Service</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIWebService()
- * @generated
- */
- int IWEB_SERVICE = 5;
-
- /**
- * The feature id for the '<em><b>Implementation</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE__IMPLEMENTATION = IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE__NAME = IJAVA_WEB_SERVICE_ELEMENT__NAME;
-
- /**
- * The feature id for the '<em><b>Service Endpoint</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE__SERVICE_ENDPOINT = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Target Namespace</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE__TARGET_NAMESPACE = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Port Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE__PORT_NAME = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Wsdl Location</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE__WSDL_LOCATION = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 3;
-
- /**
- * The number of structural features of the '<em>IWeb Service</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE_FEATURE_COUNT = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceProjectImpl <em>IWeb Service Project</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceProjectImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIWebServiceProject()
- * @generated
- */
- int IWEB_SERVICE_PROJECT = 6;
-
- /**
- * The feature id for the '<em><b>Web Services</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE_PROJECT__WEB_SERVICES = 0;
-
- /**
- * The feature id for the '<em><b>Service Endpoint Interfaces</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE_PROJECT__SERVICE_ENDPOINT_INTERFACES = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE_PROJECT__NAME = 2;
-
- /**
- * The number of structural features of the '<em>IWeb Service Project</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_SERVICE_PROJECT_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebTypeImpl <em>IWeb Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebTypeImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIWebType()
- * @generated
- */
- int IWEB_TYPE = 7;
-
- /**
- * The feature id for the '<em><b>Implementation</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_TYPE__IMPLEMENTATION = IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_TYPE__NAME = IJAVA_WEB_SERVICE_ELEMENT__NAME;
-
- /**
- * The number of structural features of the '<em>IWeb Type</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IWEB_TYPE_FEATURE_COUNT = IJAVA_WEB_SERVICE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind <em>Web Param Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getWebParamKind()
- * @generated
- */
- int WEB_PARAM_KIND = 8;
-
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle <em>SOAP Binding Style</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getSOAPBindingStyle()
- * @generated
- */
- int SOAP_BINDING_STYLE = 9;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse <em>SOAP Binding Use</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getSOAPBindingUse()
- * @generated
- */
- int SOAP_BINDING_USE = 10;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle <em>SOAP Binding Parameter Style</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getSOAPBindingParameterStyle()
- * @generated
- */
- int SOAP_BINDING_PARAMETER_STYLE = 11;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM <em>IDOM</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>IDOM</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM
- * @generated
- */
- EClass getIDOM();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM#getWebServiceProjects <em>Web Service Projects</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Web Service Projects</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM#getWebServiceProjects()
- * @see #getIDOM()
- * @generated
- */
- EReference getIDOM_WebServiceProjects();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement <em>IJava Web Service Element</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>IJava Web Service Element</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement
- * @generated
- */
- EClass getIJavaWebServiceElement();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement#getImplementation <em>Implementation</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Implementation</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement#getImplementation()
- * @see #getIJavaWebServiceElement()
- * @generated
- */
- EAttribute getIJavaWebServiceElement_Implementation();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement#getName()
- * @see #getIJavaWebServiceElement()
- * @generated
- */
- EAttribute getIJavaWebServiceElement_Name();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface <em>IService Endpoint Interface</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>IService Endpoint Interface</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface
- * @generated
- */
- EClass getIServiceEndpointInterface();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#isImplicit <em>Implicit</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Implicit</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#isImplicit()
- * @see #getIServiceEndpointInterface()
- * @generated
- */
- EAttribute getIServiceEndpointInterface_Implicit();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getImplementingWebServices <em>Implementing Web Services</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference list '<em>Implementing Web Services</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getImplementingWebServices()
- * @see #getIServiceEndpointInterface()
- * @generated
- */
- EReference getIServiceEndpointInterface_ImplementingWebServices();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getWebMethods <em>Web Methods</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Web Methods</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getWebMethods()
- * @see #getIServiceEndpointInterface()
- * @generated
- */
- EReference getIServiceEndpointInterface_WebMethods();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getTargetNamespace <em>Target Namespace</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Target Namespace</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getTargetNamespace()
- * @see #getIServiceEndpointInterface()
- * @generated
- */
- EAttribute getIServiceEndpointInterface_TargetNamespace();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getSoapBindingStyle <em>Soap Binding Style</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Soap Binding Style</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getSoapBindingStyle()
- * @see #getIServiceEndpointInterface()
- * @generated
- */
- EAttribute getIServiceEndpointInterface_SoapBindingStyle();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getSoapBindingUse <em>Soap Binding Use</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Soap Binding Use</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getSoapBindingUse()
- * @see #getIServiceEndpointInterface()
- * @generated
- */
- EAttribute getIServiceEndpointInterface_SoapBindingUse();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getSoapBindingParameterStyle <em>Soap Binding Parameter Style</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Soap Binding Parameter Style</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getSoapBindingParameterStyle()
- * @see #getIServiceEndpointInterface()
- * @generated
- */
- EAttribute getIServiceEndpointInterface_SoapBindingParameterStyle();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod <em>IWeb Method</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>IWeb Method</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod
- * @generated
- */
- EClass getIWebMethod();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getParameters <em>Parameters</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Parameters</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getParameters()
- * @see #getIWebMethod()
- * @generated
- */
- EReference getIWebMethod_Parameters();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#isExcluded <em>Excluded</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Excluded</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#isExcluded()
- * @see #getIWebMethod()
- * @generated
- */
- EAttribute getIWebMethod_Excluded();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getSoapBindingStyle <em>Soap Binding Style</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Soap Binding Style</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getSoapBindingStyle()
- * @see #getIWebMethod()
- * @generated
- */
- EAttribute getIWebMethod_SoapBindingStyle();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getSoapBindingUse <em>Soap Binding Use</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Soap Binding Use</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getSoapBindingUse()
- * @see #getIWebMethod()
- * @generated
- */
- EAttribute getIWebMethod_SoapBindingUse();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getSoapBindingParameterStyle <em>Soap Binding Parameter Style</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Soap Binding Parameter Style</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getSoapBindingParameterStyle()
- * @see #getIWebMethod()
- * @generated
- */
- EAttribute getIWebMethod_SoapBindingParameterStyle();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam <em>IWeb Param</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>IWeb Param</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam
- * @generated
- */
- EClass getIWebParam();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getKind <em>Kind</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Kind</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getKind()
- * @see #getIWebParam()
- * @generated
- */
- EAttribute getIWebParam_Kind();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getTypeName <em>Type Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Type Name</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getTypeName()
- * @see #getIWebParam()
- * @generated
- */
- EAttribute getIWebParam_TypeName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getPartName <em>Part Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Part Name</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getPartName()
- * @see #getIWebParam()
- * @generated
- */
- EAttribute getIWebParam_PartName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getTargetNamespace <em>Target Namespace</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Target Namespace</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getTargetNamespace()
- * @see #getIWebParam()
- * @generated
- */
- EAttribute getIWebParam_TargetNamespace();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#isHeader <em>Header</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Header</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#isHeader()
- * @see #getIWebParam()
- * @generated
- */
- EAttribute getIWebParam_Header();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService <em>IWeb Service</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>IWeb Service</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService
- * @generated
- */
- EClass getIWebService();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getServiceEndpoint <em>Service Endpoint</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Service Endpoint</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getServiceEndpoint()
- * @see #getIWebService()
- * @generated
- */
- EReference getIWebService_ServiceEndpoint();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getTargetNamespace <em>Target Namespace</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Target Namespace</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getTargetNamespace()
- * @see #getIWebService()
- * @generated
- */
- EAttribute getIWebService_TargetNamespace();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getPortName <em>Port Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Port Name</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getPortName()
- * @see #getIWebService()
- * @generated
- */
- EAttribute getIWebService_PortName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getWsdlLocation <em>Wsdl Location</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Wsdl Location</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getWsdlLocation()
- * @see #getIWebService()
- * @generated
- */
- EAttribute getIWebService_WsdlLocation();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject <em>IWeb Service Project</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>IWeb Service Project</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject
- * @generated
- */
- EClass getIWebServiceProject();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject#getWebServices <em>Web Services</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Web Services</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject#getWebServices()
- * @see #getIWebServiceProject()
- * @generated
- */
- EReference getIWebServiceProject_WebServices();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject#getServiceEndpointInterfaces <em>Service Endpoint Interfaces</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Service Endpoint Interfaces</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject#getServiceEndpointInterfaces()
- * @see #getIWebServiceProject()
- * @generated
- */
- EReference getIWebServiceProject_ServiceEndpointInterfaces();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject#getName()
- * @see #getIWebServiceProject()
- * @generated
- */
- EAttribute getIWebServiceProject_Name();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebType <em>IWeb Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>IWeb Type</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebType
- * @generated
- */
- EClass getIWebType();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind <em>Web Param Kind</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for enum '<em>Web Param Kind</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind
- * @generated
- */
- EEnum getWebParamKind();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle <em>SOAP Binding Style</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for enum '<em>SOAP Binding Style</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle
- * @generated
- */
- EEnum getSOAPBindingStyle();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse <em>SOAP Binding Use</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for enum '<em>SOAP Binding Use</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse
- * @generated
- */
- EEnum getSOAPBindingUse();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle <em>SOAP Binding Parameter Style</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for enum '<em>SOAP Binding Parameter Style</em>'.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle
- * @generated
- */
- EEnum getSOAPBindingParameterStyle();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- DomFactory getDomFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IDOMImpl <em>IDOM</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IDOMImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIDOM()
- * @generated
- */
- EClass IDOM = eINSTANCE.getIDOM();
-
- /**
- * The meta object literal for the '<em><b>Web Service Projects</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference IDOM__WEB_SERVICE_PROJECTS = eINSTANCE.getIDOM_WebServiceProjects();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IJavaWebServiceElementImpl <em>IJava Web Service Element</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IJavaWebServiceElementImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIJavaWebServiceElement()
- * @generated
- */
- EClass IJAVA_WEB_SERVICE_ELEMENT = eINSTANCE.getIJavaWebServiceElement();
-
- /**
- * The meta object literal for the '<em><b>Implementation</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION = eINSTANCE.getIJavaWebServiceElement_Implementation();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IJAVA_WEB_SERVICE_ELEMENT__NAME = eINSTANCE.getIJavaWebServiceElement_Name();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl <em>IService Endpoint Interface</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIServiceEndpointInterface()
- * @generated
- */
- EClass ISERVICE_ENDPOINT_INTERFACE = eINSTANCE.getIServiceEndpointInterface();
-
- /**
- * The meta object literal for the '<em><b>Implicit</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ISERVICE_ENDPOINT_INTERFACE__IMPLICIT = eINSTANCE.getIServiceEndpointInterface_Implicit();
-
- /**
- * The meta object literal for the '<em><b>Implementing Web Services</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES = eINSTANCE.getIServiceEndpointInterface_ImplementingWebServices();
-
- /**
- * The meta object literal for the '<em><b>Web Methods</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ISERVICE_ENDPOINT_INTERFACE__WEB_METHODS = eINSTANCE.getIServiceEndpointInterface_WebMethods();
-
- /**
- * The meta object literal for the '<em><b>Target Namespace</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE = eINSTANCE.getIServiceEndpointInterface_TargetNamespace();
-
- /**
- * The meta object literal for the '<em><b>Soap Binding Style</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_STYLE = eINSTANCE.getIServiceEndpointInterface_SoapBindingStyle();
-
- /**
- * The meta object literal for the '<em><b>Soap Binding Use</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_USE = eINSTANCE.getIServiceEndpointInterface_SoapBindingUse();
-
- /**
- * The meta object literal for the '<em><b>Soap Binding Parameter Style</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_PARAMETER_STYLE = eINSTANCE.getIServiceEndpointInterface_SoapBindingParameterStyle();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebMethodImpl <em>IWeb Method</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebMethodImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIWebMethod()
- * @generated
- */
- EClass IWEB_METHOD = eINSTANCE.getIWebMethod();
-
- /**
- * The meta object literal for the '<em><b>Parameters</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference IWEB_METHOD__PARAMETERS = eINSTANCE.getIWebMethod_Parameters();
-
- /**
- * The meta object literal for the '<em><b>Excluded</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_METHOD__EXCLUDED = eINSTANCE.getIWebMethod_Excluded();
-
- /**
- * The meta object literal for the '<em><b>Soap Binding Style</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_METHOD__SOAP_BINDING_STYLE = eINSTANCE.getIWebMethod_SoapBindingStyle();
-
- /**
- * The meta object literal for the '<em><b>Soap Binding Use</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_METHOD__SOAP_BINDING_USE = eINSTANCE.getIWebMethod_SoapBindingUse();
-
- /**
- * The meta object literal for the '<em><b>Soap Binding Parameter Style</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_METHOD__SOAP_BINDING_PARAMETER_STYLE = eINSTANCE.getIWebMethod_SoapBindingParameterStyle();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebParamImpl <em>IWeb Param</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebParamImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIWebParam()
- * @generated
- */
- EClass IWEB_PARAM = eINSTANCE.getIWebParam();
-
- /**
- * The meta object literal for the '<em><b>Kind</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_PARAM__KIND = eINSTANCE.getIWebParam_Kind();
-
- /**
- * The meta object literal for the '<em><b>Type Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_PARAM__TYPE_NAME = eINSTANCE.getIWebParam_TypeName();
-
- /**
- * The meta object literal for the '<em><b>Part Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_PARAM__PART_NAME = eINSTANCE.getIWebParam_PartName();
-
- /**
- * The meta object literal for the '<em><b>Target Namespace</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_PARAM__TARGET_NAMESPACE = eINSTANCE.getIWebParam_TargetNamespace();
-
- /**
- * The meta object literal for the '<em><b>Header</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_PARAM__HEADER = eINSTANCE.getIWebParam_Header();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceImpl <em>IWeb Service</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIWebService()
- * @generated
- */
- EClass IWEB_SERVICE = eINSTANCE.getIWebService();
-
- /**
- * The meta object literal for the '<em><b>Service Endpoint</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference IWEB_SERVICE__SERVICE_ENDPOINT = eINSTANCE.getIWebService_ServiceEndpoint();
-
- /**
- * The meta object literal for the '<em><b>Target Namespace</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_SERVICE__TARGET_NAMESPACE = eINSTANCE.getIWebService_TargetNamespace();
-
- /**
- * The meta object literal for the '<em><b>Port Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_SERVICE__PORT_NAME = eINSTANCE.getIWebService_PortName();
-
- /**
- * The meta object literal for the '<em><b>Wsdl Location</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_SERVICE__WSDL_LOCATION = eINSTANCE.getIWebService_WsdlLocation();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceProjectImpl <em>IWeb Service Project</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceProjectImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIWebServiceProject()
- * @generated
- */
- EClass IWEB_SERVICE_PROJECT = eINSTANCE.getIWebServiceProject();
-
- /**
- * The meta object literal for the '<em><b>Web Services</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference IWEB_SERVICE_PROJECT__WEB_SERVICES = eINSTANCE.getIWebServiceProject_WebServices();
-
- /**
- * The meta object literal for the '<em><b>Service Endpoint Interfaces</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference IWEB_SERVICE_PROJECT__SERVICE_ENDPOINT_INTERFACES = eINSTANCE.getIWebServiceProject_ServiceEndpointInterfaces();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IWEB_SERVICE_PROJECT__NAME = eINSTANCE.getIWebServiceProject_Name();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebTypeImpl <em>IWeb Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebTypeImpl
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getIWebType()
- * @generated
- */
- EClass IWEB_TYPE = eINSTANCE.getIWebType();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind <em>Web Param Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getWebParamKind()
- * @generated
- */
- EEnum WEB_PARAM_KIND = eINSTANCE.getWebParamKind();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle <em>SOAP Binding Style</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getSOAPBindingStyle()
- * @generated
- */
- EEnum SOAP_BINDING_STYLE = eINSTANCE.getSOAPBindingStyle();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse <em>SOAP Binding Use</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getSOAPBindingUse()
- * @generated
- */
- EEnum SOAP_BINDING_USE = eINSTANCE.getSOAPBindingUse();
-
- /**
- * The meta object literal for the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle <em>SOAP Binding Parameter Style</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.DomPackageImpl#getSOAPBindingParameterStyle()
- * @generated
- */
- EEnum SOAP_BINDING_PARAMETER_STYLE = eINSTANCE.getSOAPBindingParameterStyle();
-
- }
-
-} //DomPackage
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IDOM.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IDOM.java
deleted file mode 100755
index e94a88b..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IDOM.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>IDOM</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM#getWebServiceProjects <em>Web Service Projects</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIDOM()
- * @model
- * @generated
- */
-public interface IDOM extends EObject {
- /**
- * Returns the value of the '<em><b>Web Service Projects</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Web Service Projects</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Web Service Projects</em>' containment reference list.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIDOM_WebServiceProjects()
- * @model containment="true" suppressedSetVisibility="true"
- * @generated
- */
- EList<IWebServiceProject> getWebServiceProjects();
-
-} // IDOM
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IJavaWebServiceElement.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IJavaWebServiceElement.java
deleted file mode 100755
index 21200fa..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IJavaWebServiceElement.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * @model
- * * @author Hristo Sabev
- *
- */
-public interface IJavaWebServiceElement extends EObject
-{
- /**
- * @model changeable="true" suppressedSetVisibility="true" required="true"
- * @return
- */
- public String getImplementation();
-
- /**
- * @model changeable="true" required="true"
- * @return
- */
- public String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IServiceEndpointInterface.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IServiceEndpointInterface.java
deleted file mode 100755
index 3589d11..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IServiceEndpointInterface.java
+++ /dev/null
@@ -1,145 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import org.eclipse.emf.common.util.EList;
-
-
-/**
- * @model
- * @author Hristo Sabev
- *
- */
-public interface IServiceEndpointInterface extends IJavaWebServiceElement
-{
- /**
- * @model changeable="true" suppressedSetVisibility="true" required="true"
- * @return
- */
- public boolean isImplicit();
-
- /**
- * @model changeable="true" suppressedSetVisibility="true" required="true" containment="false" many="true" type="IWebService" opposite="serviceEndpoint"
- * @return
- */
- public EList<IWebService> getImplementingWebServices();
-
- /**
- * @model changeable="true" suppressedSetVisibility="true" required="true" containment="true" many="true" type="IWebMethod"
- * @return
- */
- public EList<IWebMethod> getWebMethods();
-
- /**
- * @model changeable="true" required="true"
- */
- public String getTargetNamespace();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getTargetNamespace <em>Target Namespace</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Target Namespace</em>' attribute.
- * @see #getTargetNamespace()
- * @generated
- */
- void setTargetNamespace(String value);
-
- /**
- * Returns the value of the '<em><b>Soap Binding Style</b></em>' attribute.
- * The default value is <code>"DOCUMENT"</code>.
- * The literals are from the enumeration {@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Soap Binding Style</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Soap Binding Style</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle
- * @see #setSoapBindingStyle(SOAPBindingStyle)
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIServiceEndpointInterface_SoapBindingStyle()
- * @model default="DOCUMENT" required="true"
- * @generated
- */
- SOAPBindingStyle getSoapBindingStyle();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getSoapBindingStyle <em>Soap Binding Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Soap Binding Style</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle
- * @see #getSoapBindingStyle()
- * @generated
- */
- void setSoapBindingStyle(SOAPBindingStyle value);
-
- /**
- * Returns the value of the '<em><b>Soap Binding Use</b></em>' attribute.
- * The default value is <code>"LITERAL"</code>.
- * The literals are from the enumeration {@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Soap Binding Use</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Soap Binding Use</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse
- * @see #setSoapBindingUse(SOAPBindingUse)
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIServiceEndpointInterface_SoapBindingUse()
- * @model default="LITERAL" required="true"
- * @generated
- */
- SOAPBindingUse getSoapBindingUse();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getSoapBindingUse <em>Soap Binding Use</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Soap Binding Use</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse
- * @see #getSoapBindingUse()
- * @generated
- */
- void setSoapBindingUse(SOAPBindingUse value);
-
- /**
- * Returns the value of the '<em><b>Soap Binding Parameter Style</b></em>' attribute.
- * The default value is <code>"WRAPPED"</code>.
- * The literals are from the enumeration {@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Soap Binding Parameter Style</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Soap Binding Parameter Style</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle
- * @see #setSoapBindingParameterStyle(SOAPBindingParameterStyle)
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIServiceEndpointInterface_SoapBindingParameterStyle()
- * @model default="WRAPPED" required="true"
- * @generated
- */
- SOAPBindingParameterStyle getSoapBindingParameterStyle();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface#getSoapBindingParameterStyle <em>Soap Binding Parameter Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Soap Binding Parameter Style</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle
- * @see #getSoapBindingParameterStyle()
- * @generated
- */
- void setSoapBindingParameterStyle(SOAPBindingParameterStyle value);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWSDOMRuntimeManager.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWSDOMRuntimeManager.java
deleted file mode 100755
index ca39cb9..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWSDOMRuntimeManager.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import java.util.Collection;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-
-
-public interface IWSDOMRuntimeManager
-{
- /**
- * Instantiates the DOM Runtimes if not already.
- * @param progress monitor to track progress
- */
- public void createDOMRuntimes(IProgressMonitor monitor);
-
- /**
- * This method should return the DOM runtime instance corresponding to the runtime id
- * and instantiate such DOM runtime instance if non existent at the
- * moment of invocation of this method.
- *
- * @param runtimeId - string identifier of the runtime
- * @return the DOM runtime instance. Null if runtime with such id is not registered
- */
- public IWsDOMRuntimeExtension getDOMRuntime(String runtimeId);
-
- /**
- *
- * @return a list of all DOM Runtimes currently instantiated
- */
- public Collection<IWsDOMRuntimeExtension> getDOMRuntimes();
-
- /**
- * This method should reload all instances of DOM Runtimes.
- *
- */
- public void reloadDOMRuntimes(IProgressMonitor monitor);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebMethod.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebMethod.java
deleted file mode 100755
index 070d385..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebMethod.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import org.eclipse.emf.common.util.EList;
-
-
-/**
- * @model
- * @author Hristo Sabev
- */
-public interface IWebMethod extends IJavaWebServiceElement
-{
- /**
- * @model type="IWebParam" suppressedSetVisibility="true" many="true" containment="true" required="true"
- * @return
- */
- EList<IWebParam> getParameters();
-
- /**
- * @model type="boolean" many="false" changeable="true" required="true"
- */
- boolean isExcluded();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#isExcluded <em>Excluded</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Excluded</em>' attribute.
- * @see #isExcluded()
- * @generated
- */
- void setExcluded(boolean value);
-
- /**
- * Returns the value of the '<em><b>Soap Binding Style</b></em>' attribute.
- * The default value is <code>"DOCUMENT"</code>.
- * The literals are from the enumeration {@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Soap Binding Style</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Soap Binding Style</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle
- * @see #setSoapBindingStyle(SOAPBindingStyle)
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIWebMethod_SoapBindingStyle()
- * @model default="DOCUMENT" required="true"
- * @generated
- */
- SOAPBindingStyle getSoapBindingStyle();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getSoapBindingStyle <em>Soap Binding Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Soap Binding Style</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle
- * @see #getSoapBindingStyle()
- * @generated
- */
- void setSoapBindingStyle(SOAPBindingStyle value);
-
- /**
- * Returns the value of the '<em><b>Soap Binding Use</b></em>' attribute.
- * The default value is <code>"LITERAL"</code>.
- * The literals are from the enumeration {@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Soap Binding Use</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Soap Binding Use</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse
- * @see #setSoapBindingUse(SOAPBindingUse)
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIWebMethod_SoapBindingUse()
- * @model default="LITERAL" required="true"
- * @generated
- */
- SOAPBindingUse getSoapBindingUse();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getSoapBindingUse <em>Soap Binding Use</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Soap Binding Use</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse
- * @see #getSoapBindingUse()
- * @generated
- */
- void setSoapBindingUse(SOAPBindingUse value);
-
- /**
- * Returns the value of the '<em><b>Soap Binding Parameter Style</b></em>' attribute.
- * The default value is <code>"WRAPPED"</code>.
- * The literals are from the enumeration {@link org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Soap Binding Parameter Style</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Soap Binding Parameter Style</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle
- * @see #setSoapBindingParameterStyle(SOAPBindingParameterStyle)
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIWebMethod_SoapBindingParameterStyle()
- * @model default="WRAPPED" required="true"
- * @generated
- */
- SOAPBindingParameterStyle getSoapBindingParameterStyle();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod#getSoapBindingParameterStyle <em>Soap Binding Parameter Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Soap Binding Parameter Style</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle
- * @see #getSoapBindingParameterStyle()
- * @generated
- */
- void setSoapBindingParameterStyle(SOAPBindingParameterStyle value);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebParam.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebParam.java
deleted file mode 100755
index f7696e5..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebParam.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-
-/**
- *
- * @author Hristo Sabev
- *
- * @model
- */
-public interface IWebParam extends IJavaWebServiceElement
-{
- /**
- * @model required="true" many="false" suppressedSetVisibility="true"
- * @return
- */
- String getTypeName();
-
- /**
- * Returns the value of the '<em><b>Part Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Part Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Part Name</em>' attribute.
- * @see #setPartName(String)
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIWebParam_PartName()
- * @model required="true"
- * @generated
- */
- String getPartName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getPartName <em>Part Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Part Name</em>' attribute.
- * @see #getPartName()
- * @generated
- */
- void setPartName(String value);
-
- /**
- * Returns the value of the '<em><b>Target Namespace</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Target Namespace</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Target Namespace</em>' attribute.
- * @see #setTargetNamespace(String)
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIWebParam_TargetNamespace()
- * @model required="true"
- * @generated
- */
- String getTargetNamespace();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getTargetNamespace <em>Target Namespace</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Target Namespace</em>' attribute.
- * @see #getTargetNamespace()
- * @generated
- */
- void setTargetNamespace(String value);
-
- /**
- * Returns the value of the '<em><b>Header</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Header</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Header</em>' attribute.
- * @see #setHeader(boolean)
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getIWebParam_Header()
- * @model default="false" required="true"
- * @generated
- */
- boolean isHeader();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#isHeader <em>Header</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Header</em>' attribute.
- * @see #isHeader()
- * @generated
- */
- void setHeader(boolean value);
-
- /**
- * @model type="WebParamKind" required="true" many="false"
- */
- WebParamKind getKind();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam#getKind <em>Kind</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Kind</em>' attribute.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind
- * @see #getKind()
- * @generated
- */
- void setKind(WebParamKind value);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebService.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebService.java
deleted file mode 100755
index 6011fe3..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebService.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-
-/**
- * @model
- * @author Hristo Sabev
- *
- */
-public interface IWebService extends IJavaWebServiceElement
-{
- /**
- * @model suppressedSetVisibility="true" opposite="implementingWebServices" type="IServiceEndpointInterface"
- * @return
- */
- public IServiceEndpointInterface getServiceEndpoint();
-
- /**
- * @model changeable="true" required="true"
- */
- public String getTargetNamespace();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getTargetNamespace <em>Target Namespace</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Target Namespace</em>' attribute.
- * @see #getTargetNamespace()
- * @generated
- */
- void setTargetNamespace(String value);
-
- /**
- * @model changeable="true" required="true"
- */
- public String getPortName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getPortName <em>Port Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Port Name</em>' attribute.
- * @see #getPortName()
- * @generated
- */
- void setPortName(String value);
-
- /**
- * @model changeable="true" suppressedSetVisibility="true"
- */
- public String getWsdlLocation();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService#getWsdlLocation <em>Wsdl Location</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Wsdl Location</em>' attribute.
- * @see #getWsdlLocation()
- * @generated
- */
- void setWsdlLocation(String value);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebServiceProject.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebServiceProject.java
deleted file mode 100755
index b41d5ee..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebServiceProject.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-
-/**
- * @model
- * @author Hristo Sabev
- */
-public interface IWebServiceProject extends EObject
-{
- /**
- * @model type="IWebService" suppressedSetVisibility="true" many="true" containment="true"
- * @return
- */
- public EList<IWebService> getWebServices();
-
-
- /**
- * @model type="IServiceEndpointInterface" suppressedSetVisibility="true" many="true" containment="true"
- */
- public EList<IServiceEndpointInterface> getServiceEndpointInterfaces();
-
- /**
- * @model suppressedSetVisibility="true" required="true"
- */
- public String getName();
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebType.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebType.java
deleted file mode 100755
index 734da97..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWebType.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-
-/**
- * @model
- * @author Hristo Sabev
- */
-public interface IWebType extends IJavaWebServiceElement {
-
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWsDOMRuntimeExtension.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWsDOMRuntimeExtension.java
deleted file mode 100755
index f2b8050..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWsDOMRuntimeExtension.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import java.io.IOException;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-
-
-/**
- * This interface should be implemented by all runtime which want to have DOM Tree
- * representation on top of them.
- *
- * @author Georgi Hristov I036201
- */
-public interface IWsDOMRuntimeExtension
-{
- /**
- * This method should instantiate the DOM instance for the runtime and loads the
- * data into it. The method locks the workspace root during execution. If you call this
- * method during loading (i.e. somebody already called it in different thread) the method
- * will block until the load finishes instead of triggering DOM reload.
- *
- * @param monitor progress monitor to be used during loading, cancelling the load via monitor is supported
- * @throws IOException in case the DOM loading is not able to read required data
- * @throws WsDOMLoadCanceledException in case the loading was cancelled via provided
- * <code>monitor</code>.
- */
- public void createDOM(IProgressMonitor monitor) throws IOException, WsDOMLoadCanceledException;
-
- /**
- * Adds a load listener to be notified in load events. In case the loading has already been started
- * this listener's methods are called depending on the current state of the load.
- * {@link IWsDomLoadListener#finished()} method is called in any case regardless of whether loading
- * has been cancelled or not.
- * @param listener
- */
- public void addLoadListener(IWsDomLoadListener listener);
-
- /**
- * Removes the listener from DOM loading listeners list
- *
- * @param listener
- */
- public void removeLoadListener(IWsDomLoadListener listener);
-
- /**
- * To get a handle to the DOM instance available for this runtime.
- *
- * @return the DOM instance or <code>null</code> in case the loading was not started yet or
- * is not finished yet.
- * @throws WsDOMLoadCanceledException in case loading has been called already but the load
- * has been cancelled
- */
- public IDOM getDOM() throws WsDOMLoadCanceledException;
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWsDomLoadListener.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWsDomLoadListener.java
deleted file mode 100755
index 879b046..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/IWsDomLoadListener.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-
-
-/**
- * Interface to be implemented by interested in DOM load process. Implementors can be added to
- * the {@link IWsDOMRuntimeExtension} to receive notifications on load startup/finish
- *
- * @author Georgi Vachkov
- */
-public interface IWsDomLoadListener
-{
- /**
- * Called by {@link IWsDOMRuntimeExtension} just before the DOM load start
- */
- public void started();
-
- /**
- * Called by {@link IWsDOMRuntimeExtension} when the DOM load has finished
- */
- public void finished();
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingParameterStyle.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingParameterStyle.java
deleted file mode 100755
index 956855f..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingParameterStyle.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>SOAP Binding Parameter Style</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getSOAPBindingParameterStyle()
- * @model
- * @generated
- */
-public enum SOAPBindingParameterStyle implements Enumerator {
- /**
- * The '<em><b>WRAPPED</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #WRAPPED_VALUE
- * @generated
- * @ordered
- */
- WRAPPED(0, "WRAPPED", "WRAPPED"), //$NON-NLS-1$ //$NON-NLS-2$
-
- /**
- * The '<em><b>BARE</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #BARE_VALUE
- * @generated
- * @ordered
- */
- BARE(1, "BARE", "BARE"); //$NON-NLS-1$ //$NON-NLS-2$
-
- /**
- * The '<em><b>WRAPPED</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>WRAPPED</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #WRAPPED
- * @model
- * @generated
- * @ordered
- */
- public static final int WRAPPED_VALUE = 0;
-
- /**
- * The '<em><b>BARE</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>BARE</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #BARE
- * @model
- * @generated
- * @ordered
- */
- public static final int BARE_VALUE = 1;
-
- /**
- * An array of all the '<em><b>SOAP Binding Parameter Style</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static final SOAPBindingParameterStyle[] VALUES_ARRAY =
- new SOAPBindingParameterStyle[]
- {
- WRAPPED,
- BARE,
- };
-
- /**
- * A public read-only list of all the '<em><b>SOAP Binding Parameter Style</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final List<SOAPBindingParameterStyle> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>SOAP Binding Parameter Style</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static SOAPBindingParameterStyle get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- SOAPBindingParameterStyle result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>SOAP Binding Parameter Style</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static SOAPBindingParameterStyle getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- SOAPBindingParameterStyle result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>SOAP Binding Parameter Style</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static SOAPBindingParameterStyle get(int value) {
- switch (value)
- {
- case WRAPPED_VALUE: return WRAPPED;
- case BARE_VALUE: return BARE;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private SOAPBindingParameterStyle(int value, String name, String literal) {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLiteral() {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- return literal;
- }
-
-} //SOAPBindingParameterStyle
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingStyle.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingStyle.java
deleted file mode 100755
index 6082254..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingStyle.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>SOAP Binding Style</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getSOAPBindingStyle()
- * @model
- * @generated
- */
-public enum SOAPBindingStyle implements Enumerator {
- /**
- * The '<em><b>DOCUMENT</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #DOCUMENT_VALUE
- * @generated
- * @ordered
- */
- DOCUMENT(0, "DOCUMENT", "DOCUMENT"), //$NON-NLS-1$ //$NON-NLS-2$
-
- /**
- * The '<em><b>RPC</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #RPC_VALUE
- * @generated
- * @ordered
- */
- RPC(1, "RPC", "RPC"); //$NON-NLS-1$ //$NON-NLS-2$
-
- /**
- * The '<em><b>DOCUMENT</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>DOCUMENT</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #DOCUMENT
- * @model
- * @generated
- * @ordered
- */
- public static final int DOCUMENT_VALUE = 0;
-
- /**
- * The '<em><b>RPC</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>RPC</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #RPC
- * @model
- * @generated
- * @ordered
- */
- public static final int RPC_VALUE = 1;
-
- /**
- * An array of all the '<em><b>SOAP Binding Style</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static final SOAPBindingStyle[] VALUES_ARRAY =
- new SOAPBindingStyle[]
- {
- DOCUMENT,
- RPC,
- };
-
- /**
- * A public read-only list of all the '<em><b>SOAP Binding Style</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final List<SOAPBindingStyle> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>SOAP Binding Style</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static SOAPBindingStyle get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- SOAPBindingStyle result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>SOAP Binding Style</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static SOAPBindingStyle getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- SOAPBindingStyle result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>SOAP Binding Style</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static SOAPBindingStyle get(int value) {
- switch (value)
- {
- case DOCUMENT_VALUE: return DOCUMENT;
- case RPC_VALUE: return RPC;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private SOAPBindingStyle(int value, String name, String literal) {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLiteral() {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- return literal;
- }
-
-} //SOAPBindingStyle
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingUse.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingUse.java
deleted file mode 100755
index b35b180..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/SOAPBindingUse.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>SOAP Binding Use</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#getSOAPBindingUse()
- * @model
- * @generated
- */
-public enum SOAPBindingUse implements Enumerator {
- /**
- * The '<em><b>LITERAL</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #LITERAL_VALUE
- * @generated
- * @ordered
- */
- LITERAL(0, "LITERAL", "LITERAL"), //$NON-NLS-1$ //$NON-NLS-2$
-
- /**
- * The '<em><b>ENCODED</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #ENCODED_VALUE
- * @generated
- * @ordered
- */
- ENCODED(1, "ENCODED", "ENCODED"); //$NON-NLS-1$ //$NON-NLS-2$
-
- /**
- * The '<em><b>LITERAL</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>LITERAL</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #LITERAL
- * @model
- * @generated
- * @ordered
- */
- public static final int LITERAL_VALUE = 0;
-
- /**
- * The '<em><b>ENCODED</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>ENCODED</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #ENCODED
- * @model
- * @generated
- * @ordered
- */
- public static final int ENCODED_VALUE = 1;
-
- /**
- * An array of all the '<em><b>SOAP Binding Use</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static final SOAPBindingUse[] VALUES_ARRAY =
- new SOAPBindingUse[]
- {
- LITERAL,
- ENCODED,
- };
-
- /**
- * A public read-only list of all the '<em><b>SOAP Binding Use</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final List<SOAPBindingUse> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>SOAP Binding Use</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static SOAPBindingUse get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- SOAPBindingUse result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>SOAP Binding Use</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static SOAPBindingUse getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- SOAPBindingUse result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>SOAP Binding Use</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static SOAPBindingUse get(int value) {
- switch (value)
- {
- case LITERAL_VALUE: return LITERAL;
- case ENCODED_VALUE: return ENCODED;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private SOAPBindingUse(int value, String name, String literal) {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLiteral() {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- return literal;
- }
-
-} //SOAPBindingUse
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WebParamKind.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WebParamKind.java
deleted file mode 100755
index 092643c..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WebParamKind.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * @model
- * @author Hristo Sabev
- *
- */
-public enum WebParamKind implements Enumerator {/**@model*/IN(0, "IN", "IN"), /**@model*/INOUT(1, "INOUT", "INOUT"), /**@model*/OUT(2, "OUT", "OUT"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
-
-/**
- * The '<em><b>IN</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>IN</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #IN
- * @model
- * @generated
- * @ordered
- */
- public static final int IN_VALUE = 0;
-/**
- * The '<em><b>INOUT</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>INOUT</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #INOUT
- * @model
- * @generated
- * @ordered
- */
- public static final int INOUT_VALUE = 1;
-/**
- * The '<em><b>OUT</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>OUT</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #OUT
- * @model
- * @generated
- * @ordered
- */
- public static final int OUT_VALUE = 2;
-/**
- * An array of all the '<em><b>Web Param Kind</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static final WebParamKind[] VALUES_ARRAY =
- new WebParamKind[]
- {
- IN,
- INOUT,
- OUT,
- };
-/**
- * A public read-only list of all the '<em><b>Web Param Kind</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final List<WebParamKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
-/**
- * Returns the '<em><b>Web Param Kind</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static WebParamKind get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- WebParamKind result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
-/**
- * Returns the '<em><b>Web Param Kind</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static WebParamKind getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- WebParamKind result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
-/**
- * Returns the '<em><b>Web Param Kind</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static WebParamKind get(int value) {
- switch (value)
- {
- case IN_VALUE: return IN;
- case INOUT_VALUE: return INOUT;
- case OUT_VALUE: return OUT;
- }
- return null;
- }
-
-/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final int value;
-/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String name;
-/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String literal;
-
-/**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private WebParamKind(int value, String name, String literal) {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
-/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getValue() {
- return value;
- }
-
-/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
-/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLiteral() {
- return literal;
- }
-
-/**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- return literal;
- }}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WsDOMLoadCanceledException.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WsDOMLoadCanceledException.java
deleted file mode 100755
index 671047b..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WsDOMLoadCanceledException.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import org.eclipse.jst.ws.jaxws.utils.ContractChecker;
-
-
-/**
- * Exception thrown in case the loading of WS DOM has been cancelled
- *
- * @author Georgi Vachkov
- */
-public class WsDOMLoadCanceledException extends Exception
-{
- private static final long serialVersionUID = 1L;
- private final String localizedMessage;
-
- /**
- * Constructs exception with ability to provide localized message
- * @param message - the detail message (which is saved for later retrieval
- * by the {@link #getMessage()} method)
- * @param localizedMessage - the localized message (which is saved for later retrieval
- * by the {@link #getLocalizedMessage()} method)
- *
- * @throws NullPointerException - in case localised message is null
- * */
- public WsDOMLoadCanceledException(final String message, final String localizedMessage) {
- super(message);
- ContractChecker.nullCheckParam(localizedMessage, "localizedMessage"); //$NON-NLS-1$
- this.localizedMessage = localizedMessage;
- }
-
- /**
- * Returns localized message with which the exception was constructed.*/
- @Override
- public String getLocalizedMessage() {
- return localizedMessage;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WsDOMRuntimeManager.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WsDOMRuntimeManager.java
deleted file mode 100755
index 06d4a6f..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/api/WsDOMRuntimeManager.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.api;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jst.ws.jaxws.dom.runtime.registry.IWsDOMRuntimeInfo;
-import org.eclipse.jst.ws.jaxws.dom.runtime.registry.WsDOMRuntimeRegistry;
-import org.eclipse.jst.ws.jaxws.utils.logging.ILogger;
-import org.eclipse.jst.ws.jaxws.utils.logging.Logger;
-
-/**
- * Factory class for instantiating DOM Runtimes and managing those instances.
- *
- * @author Georgi Hristov
- *
- */
-public class WsDOMRuntimeManager implements IWSDOMRuntimeManager
-{
- private static WsDOMRuntimeManager instance = new WsDOMRuntimeManager();
-
- private Map<String,IWsDOMRuntimeExtension> domRuntimes = new HashMap<String,IWsDOMRuntimeExtension>();
-
- protected WsDOMRuntimeManager()
- {
- // singleton
- }
-
- public static IWSDOMRuntimeManager instance()
- {
- return instance;
- }
-
- /**
- * Instantiates the DOM Runtimes if not already.
- *
- */
- public synchronized void createDOMRuntimes(final IProgressMonitor monitor)
- {
- for (IWsDOMRuntimeInfo runtimeInfo : WsDOMRuntimeRegistry.getRegisteredRuntimesInfo()) {
- createDOMRuntime(runtimeInfo, monitor);
- }
- }
-
- protected IWsDOMRuntimeExtension createDOMRuntime(final IWsDOMRuntimeInfo runtimeInfo, final IProgressMonitor monitor)
- {
- final IWsDOMRuntimeExtension domRuntime = getDOMRuntime(runtimeInfo);
- if (domRuntime == null) {
- return null;
- }
-
- try {
- domRuntime.createDOM(monitor);
- }
- catch (Exception unexpected) {
- logger().logError("Unexpected Exception! Dom from runtime " + runtimeInfo.getName() + " will not be processed!", unexpected); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- return domRuntime;
- }
-
- /**
- * This method should return the DOM runtime instance corresponding to the descriptor object
- * of type IRuntimeInfo and instantiate such DOM runtime instance if non existent at the
- * moment of invocation of this method.
- *
- * @param runtimeInfo - descriptor of the DOM runtime to be instantiated and returned
- * @return the DOM runtime instance
- */
- public IWsDOMRuntimeExtension getDOMRuntime(final IWsDOMRuntimeInfo runtimeInfo)
- {
- if (runtimeInfo == null) {
- return null;
- }
-
- IWsDOMRuntimeExtension domRuntime = domRuntimes.get(runtimeInfo.getId());
- if (domRuntime == null)
- {
- domRuntime = WsDOMRuntimeRegistry.instantiateRuntime(runtimeInfo);
- if (domRuntime != null) {
- synchronized(domRuntimes) {
- domRuntimes.put(runtimeInfo.getId(), domRuntime);
- }
- }
- }
-
- return domRuntime;
- }
-
- /**
- * This method should return the DOM runtime instance corresponding to the runtime id
- * and instantiate such DOM runtime instance if non existent at the
- * moment of invocation of this method.
- *
- * @param runtimeId - string identifier of the runtime
- * @return the DOM runtime instance
- */
- public IWsDOMRuntimeExtension getDOMRuntime(final String runtimeId)
- {
- return getDOMRuntime(WsDOMRuntimeRegistry.getRuntimeInfo(runtimeId));
- }
-
- /**
- *
- * @return a list of all instantiated DOM Runtimes
- */
- public Collection<IWsDOMRuntimeExtension> getDOMRuntimes()
- {
- if (domRuntimes.size() == 0)
- {
- final Collection<IWsDOMRuntimeInfo> rtInfos = WsDOMRuntimeRegistry.getRegisteredRuntimesInfo();
- for (IWsDOMRuntimeInfo runtimeInfo : rtInfos) {
- getDOMRuntime(runtimeInfo);
- }
- }
-
- return domRuntimes.values();
- }
-
- /**
- * This method should reload all instances of DOM Runtimes.
- *
- */
- public synchronized void reloadDOMRuntimes(final IProgressMonitor monitor)
- {
- synchronized(domRuntimes) {
- domRuntimes = new HashMap<String,IWsDOMRuntimeExtension>();
- }
-
- createDOMRuntimes(monitor);
- }
-
- private ILogger logger() {
- return new Logger();
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/dom.ecore b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/dom.ecore
deleted file mode 100755
index 0041eda..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/dom.ecore
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="dom"
- nsURI="http:///org/eclipse/jst/ws/jaxws/dom/runtime/dom.ecore" nsPrefix="org.eclipse.jst.ws.jaxws.dom.runtime">
- <eClassifiers xsi:type="ecore:EClass" name="IDOM">
- <eStructuralFeatures xsi:type="ecore:EReference" name="webServiceProjects" upperBound="-1"
- eType="#//IWebServiceProject" containment="true" resolveProxies="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="IJavaWebServiceElement">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="implementation" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="IServiceEndpointInterface" eSuperTypes="#//IJavaWebServiceElement">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="implicit" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="implementingWebServices"
- lowerBound="1" upperBound="-1" eType="#//IWebService" eOpposite="#//IWebService/serviceEndpoint">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="webMethods" lowerBound="1"
- upperBound="-1" eType="#//IWebMethod" containment="true" resolveProxies="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="targetNamespace" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="soapBindingStyle" lowerBound="1"
- eType="#//SOAPBindingStyle" defaultValueLiteral="DOCUMENT"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="soapBindingUse" lowerBound="1"
- eType="#//SOAPBindingUse" defaultValueLiteral="LITERAL"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="soapBindingParameterStyle"
- lowerBound="1" eType="#//SOAPBindingParameterStyle" defaultValueLiteral="WRAPPED"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="IWebMethod" eSuperTypes="#//IJavaWebServiceElement">
- <eStructuralFeatures xsi:type="ecore:EReference" name="parameters" lowerBound="1"
- upperBound="-1" eType="#//IWebParam" containment="true" resolveProxies="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="excluded" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="soapBindingStyle" lowerBound="1"
- eType="#//SOAPBindingStyle" defaultValueLiteral="DOCUMENT"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="soapBindingUse" lowerBound="1"
- eType="#//SOAPBindingUse" defaultValueLiteral="LITERAL"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="soapBindingParameterStyle"
- lowerBound="1" eType="#//SOAPBindingParameterStyle" defaultValueLiteral="WRAPPED"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="IWebParam" eSuperTypes="#//IJavaWebServiceElement">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" lowerBound="1" eType="#//WebParamKind"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="typeName" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="partName" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="targetNamespace" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="header" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="IWebService" eSuperTypes="#//IJavaWebServiceElement">
- <eStructuralFeatures xsi:type="ecore:EReference" name="serviceEndpoint" eType="#//IServiceEndpointInterface"
- eOpposite="#//IServiceEndpointInterface/implementingWebServices">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="targetNamespace" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="portName" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="wsdlLocation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="IWebServiceProject">
- <eStructuralFeatures xsi:type="ecore:EReference" name="webServices" upperBound="-1"
- eType="#//IWebService" containment="true" resolveProxies="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="serviceEndpointInterfaces"
- upperBound="-1" eType="#//IServiceEndpointInterface" containment="true" resolveProxies="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="suppressedSetVisibility" value="true"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="IWebType" eSuperTypes="#//IJavaWebServiceElement"/>
- <eClassifiers xsi:type="ecore:EEnum" name="WebParamKind">
- <eLiterals name="IN"/>
- <eLiterals name="INOUT" value="1"/>
- <eLiterals name="OUT" value="2"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="SOAPBindingStyle">
- <eLiterals name="DOCUMENT" literal="DOCUMENT"/>
- <eLiterals name="RPC" value="1"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="SOAPBindingUse">
- <eLiterals name="LITERAL"/>
- <eLiterals name="ENCODED" value="1"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="SOAPBindingParameterStyle">
- <eLiterals name="WRAPPED"/>
- <eLiterals name="BARE" value="1"/>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/dom.ws.genmodel b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/dom.ws.genmodel
deleted file mode 100755
index b4269ab..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/dom.ws.genmodel
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="org.eclipse.jst.ws.jaxws.dom.runtime/src"
- editDirectory="org.eclipse.jst.ws.jaxws.dom.ui/src" editorDirectory="org.eclipse.jst.ws.jaxws.dom.runtime.editor/src"
- modelPluginID="org.eclipse.jst.ws.jaxws.dom.runtime" modelName="Dom" editPluginClass="org.eclipse.jst.ws.jaxws.dom.ui.internal.plugin.DomUi"
- editorPluginClass="org.eclipse.jst.ws.jaxws.dom.ui.navigator.generated.DomEditorPlugin"
- nonNLSMarkers="true" testsDirectory="org.eclipse.jst.ws.jaxws.dom.runtime.tests/src"
- importerID="org.eclipse.emf.importer.java" complianceLevel="5.0" copyrightFields="false"
- providerRootExtendsClass="">
- <foreignModel>@model</foreignModel>
- <genPackages prefix="Dom" basePackage="org.eclipse.jst.ws.jaxws" disposableProviderFactory="true"
- interfacePackageSuffix="runtime.api" metaDataPackageSuffix="runtime.api" classPackageSuffix="runtime.internal.impl"
- utilityPackageSuffix="runtime.util" providerPackageSuffix="ui" generateExampleClass="false"
- ecorePackage="dom.ecore#/">
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="dom.ecore#//WebParamKind">
- <genEnumLiterals ecoreEnumLiteral="dom.ecore#//WebParamKind/IN"/>
- <genEnumLiterals ecoreEnumLiteral="dom.ecore#//WebParamKind/INOUT"/>
- <genEnumLiterals ecoreEnumLiteral="dom.ecore#//WebParamKind/OUT"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="dom.ecore#//SOAPBindingStyle">
- <genEnumLiterals ecoreEnumLiteral="dom.ecore#//SOAPBindingStyle/DOCUMENT"/>
- <genEnumLiterals ecoreEnumLiteral="dom.ecore#//SOAPBindingStyle/RPC"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="dom.ecore#//SOAPBindingUse">
- <genEnumLiterals ecoreEnumLiteral="dom.ecore#//SOAPBindingUse/LITERAL"/>
- <genEnumLiterals ecoreEnumLiteral="dom.ecore#//SOAPBindingUse/ENCODED"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="dom.ecore#//SOAPBindingParameterStyle">
- <genEnumLiterals ecoreEnumLiteral="dom.ecore#//SOAPBindingParameterStyle/WRAPPED"/>
- <genEnumLiterals ecoreEnumLiteral="dom.ecore#//SOAPBindingParameterStyle/BARE"/>
- </genEnums>
- <genClasses ecoreClass="dom.ecore#//IDOM">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference dom.ecore#//IDOM/webServiceProjects"/>
- </genClasses>
- <genClasses ecoreClass="dom.ecore#//IJavaWebServiceElement">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IJavaWebServiceElement/implementation"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IJavaWebServiceElement/name"/>
- </genClasses>
- <genClasses ecoreClass="dom.ecore#//IServiceEndpointInterface">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IServiceEndpointInterface/implicit"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference dom.ecore#//IServiceEndpointInterface/implementingWebServices"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference dom.ecore#//IServiceEndpointInterface/webMethods"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IServiceEndpointInterface/targetNamespace"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IServiceEndpointInterface/soapBindingStyle"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IServiceEndpointInterface/soapBindingUse"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IServiceEndpointInterface/soapBindingParameterStyle"/>
- </genClasses>
- <genClasses ecoreClass="dom.ecore#//IWebMethod">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference dom.ecore#//IWebMethod/parameters"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebMethod/excluded"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebMethod/soapBindingStyle"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebMethod/soapBindingUse"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebMethod/soapBindingParameterStyle"/>
- </genClasses>
- <genClasses ecoreClass="dom.ecore#//IWebParam">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebParam/kind"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebParam/typeName"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebParam/partName"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebParam/targetNamespace"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebParam/header"/>
- </genClasses>
- <genClasses ecoreClass="dom.ecore#//IWebService">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference dom.ecore#//IWebService/serviceEndpoint"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebService/targetNamespace"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebService/portName"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebService/wsdlLocation"/>
- </genClasses>
- <genClasses ecoreClass="dom.ecore#//IWebServiceProject">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference dom.ecore#//IWebServiceProject/webServices"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference dom.ecore#//IWebServiceProject/serviceEndpointInterfaces"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute dom.ecore#//IWebServiceProject/name"/>
- </genClasses>
- <genClasses ecoreClass="dom.ecore#//IWebType"/>
- </genPackages>
-</genmodel:GenModel>
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/DomFactoryImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/DomFactoryImpl.java
deleted file mode 100755
index 91d3a74..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/DomFactoryImpl.java
+++ /dev/null
@@ -1,320 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomFactory;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebType;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class DomFactoryImpl extends EFactoryImpl implements DomFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static DomFactory init() {
- try
- {
- DomFactory theDomFactory = (DomFactory)EPackage.Registry.INSTANCE.getEFactory("http:///org/eclipse/jst/ws/jaxws/dom/runtime/dom.ecore"); //$NON-NLS-1$
- if (theDomFactory != null)
- {
- return theDomFactory;
- }
- }
- catch (Exception exception)
- {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new DomFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DomFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID())
- {
- case DomPackage.IDOM: return createIDOM();
- case DomPackage.IJAVA_WEB_SERVICE_ELEMENT: return createIJavaWebServiceElement();
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE: return createIServiceEndpointInterface();
- case DomPackage.IWEB_METHOD: return createIWebMethod();
- case DomPackage.IWEB_PARAM: return createIWebParam();
- case DomPackage.IWEB_SERVICE: return createIWebService();
- case DomPackage.IWEB_SERVICE_PROJECT: return createIWebServiceProject();
- case DomPackage.IWEB_TYPE: return createIWebType();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch (eDataType.getClassifierID())
- {
- case DomPackage.WEB_PARAM_KIND:
- return createWebParamKindFromString(eDataType, initialValue);
- case DomPackage.SOAP_BINDING_STYLE:
- return createSOAPBindingStyleFromString(eDataType, initialValue);
- case DomPackage.SOAP_BINDING_USE:
- return createSOAPBindingUseFromString(eDataType, initialValue);
- case DomPackage.SOAP_BINDING_PARAMETER_STYLE:
- return createSOAPBindingParameterStyleFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch (eDataType.getClassifierID())
- {
- case DomPackage.WEB_PARAM_KIND:
- return convertWebParamKindToString(eDataType, instanceValue);
- case DomPackage.SOAP_BINDING_STYLE:
- return convertSOAPBindingStyleToString(eDataType, instanceValue);
- case DomPackage.SOAP_BINDING_USE:
- return convertSOAPBindingUseToString(eDataType, instanceValue);
- case DomPackage.SOAP_BINDING_PARAMETER_STYLE:
- return convertSOAPBindingParameterStyleToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IDOM createIDOM() {
- IDOMImpl idom = new IDOMImpl();
- return idom;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IJavaWebServiceElement createIJavaWebServiceElement() {
- IJavaWebServiceElementImpl iJavaWebServiceElement = new IJavaWebServiceElementImpl();
- return iJavaWebServiceElement;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IServiceEndpointInterface createIServiceEndpointInterface() {
- IServiceEndpointInterfaceImpl iServiceEndpointInterface = new IServiceEndpointInterfaceImpl();
- return iServiceEndpointInterface;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IWebMethod createIWebMethod() {
- IWebMethodImpl iWebMethod = new IWebMethodImpl();
- return iWebMethod;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IWebParam createIWebParam() {
- IWebParamImpl iWebParam = new IWebParamImpl();
- return iWebParam;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IWebService createIWebService() {
- IWebServiceImpl iWebService = new IWebServiceImpl();
- return iWebService;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IWebServiceProject createIWebServiceProject() {
- IWebServiceProjectImpl iWebServiceProject = new IWebServiceProjectImpl();
- return iWebServiceProject;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IWebType createIWebType() {
- IWebTypeImpl iWebType = new IWebTypeImpl();
- return iWebType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public WebParamKind createWebParamKindFromString(EDataType eDataType, String initialValue) {
- WebParamKind result = WebParamKind.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertWebParamKindToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SOAPBindingStyle createSOAPBindingStyleFromString(EDataType eDataType, String initialValue) {
- SOAPBindingStyle result = SOAPBindingStyle.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertSOAPBindingStyleToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SOAPBindingUse createSOAPBindingUseFromString(EDataType eDataType, String initialValue) {
- SOAPBindingUse result = SOAPBindingUse.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertSOAPBindingUseToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SOAPBindingParameterStyle createSOAPBindingParameterStyleFromString(EDataType eDataType, String initialValue) {
- SOAPBindingParameterStyle result = SOAPBindingParameterStyle.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertSOAPBindingParameterStyleToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DomPackage getDomPackage() {
- return (DomPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static DomPackage getPackage() {
- return DomPackage.eINSTANCE;
- }
-
-} //DomFactoryImpl
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/DomPackageImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/DomPackageImpl.java
deleted file mode 100755
index 79588a7..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/DomPackageImpl.java
+++ /dev/null
@@ -1,722 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl;
-
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomFactory;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebType;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class DomPackageImpl extends EPackageImpl implements DomPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass idomEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass iJavaWebServiceElementEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass iServiceEndpointInterfaceEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass iWebMethodEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass iWebParamEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass iWebServiceEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass iWebServiceProjectEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass iWebTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum webParamKindEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum soapBindingStyleEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum soapBindingUseEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum soapBindingParameterStyleEEnum = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private DomPackageImpl() {
- super(eNS_URI, DomFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this
- * model, and for any others upon which it depends. Simple
- * dependencies are satisfied by calling this method on all
- * dependent packages before doing anything else. This method drives
- * initialization for interdependent packages directly, in parallel
- * with this package, itself.
- * <p>Of this package and its interdependencies, all packages which
- * have not yet been registered by their URI values are first created
- * and registered. The packages are then initialized in two steps:
- * meta-model objects for all of the packages are created before any
- * are initialized, since one package's meta-model objects may refer to
- * those of another.
- * <p>Invocation of this method will not affect any packages that have
- * already been initialized.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static DomPackage init() {
- if (isInited) return (DomPackage)EPackage.Registry.INSTANCE.getEPackage(DomPackage.eNS_URI);
-
- // Obtain or create and register package
- DomPackageImpl theDomPackage = (DomPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof DomPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new DomPackageImpl());
-
- isInited = true;
-
- // Create package meta-data objects
- theDomPackage.createPackageContents();
-
- // Initialize created meta-data
- theDomPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theDomPackage.freeze();
-
- return theDomPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getIDOM() {
- return idomEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getIDOM_WebServiceProjects() {
- return (EReference)idomEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getIJavaWebServiceElement() {
- return iJavaWebServiceElementEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIJavaWebServiceElement_Implementation() {
- return (EAttribute)iJavaWebServiceElementEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIJavaWebServiceElement_Name() {
- return (EAttribute)iJavaWebServiceElementEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getIServiceEndpointInterface() {
- return iServiceEndpointInterfaceEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIServiceEndpointInterface_Implicit() {
- return (EAttribute)iServiceEndpointInterfaceEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getIServiceEndpointInterface_ImplementingWebServices() {
- return (EReference)iServiceEndpointInterfaceEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getIServiceEndpointInterface_WebMethods() {
- return (EReference)iServiceEndpointInterfaceEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIServiceEndpointInterface_TargetNamespace() {
- return (EAttribute)iServiceEndpointInterfaceEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIServiceEndpointInterface_SoapBindingStyle() {
- return (EAttribute)iServiceEndpointInterfaceEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIServiceEndpointInterface_SoapBindingUse() {
- return (EAttribute)iServiceEndpointInterfaceEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIServiceEndpointInterface_SoapBindingParameterStyle() {
- return (EAttribute)iServiceEndpointInterfaceEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getIWebMethod() {
- return iWebMethodEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getIWebMethod_Parameters() {
- return (EReference)iWebMethodEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebMethod_Excluded() {
- return (EAttribute)iWebMethodEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebMethod_SoapBindingStyle() {
- return (EAttribute)iWebMethodEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebMethod_SoapBindingUse() {
- return (EAttribute)iWebMethodEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebMethod_SoapBindingParameterStyle() {
- return (EAttribute)iWebMethodEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getIWebParam() {
- return iWebParamEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebParam_Kind() {
- return (EAttribute)iWebParamEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebParam_TypeName() {
- return (EAttribute)iWebParamEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebParam_PartName() {
- return (EAttribute)iWebParamEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebParam_TargetNamespace() {
- return (EAttribute)iWebParamEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebParam_Header() {
- return (EAttribute)iWebParamEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getIWebService() {
- return iWebServiceEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getIWebService_ServiceEndpoint() {
- return (EReference)iWebServiceEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebService_TargetNamespace() {
- return (EAttribute)iWebServiceEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebService_PortName() {
- return (EAttribute)iWebServiceEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebService_WsdlLocation() {
- return (EAttribute)iWebServiceEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getIWebServiceProject() {
- return iWebServiceProjectEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getIWebServiceProject_WebServices() {
- return (EReference)iWebServiceProjectEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getIWebServiceProject_ServiceEndpointInterfaces() {
- return (EReference)iWebServiceProjectEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIWebServiceProject_Name() {
- return (EAttribute)iWebServiceProjectEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getIWebType() {
- return iWebTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getWebParamKind() {
- return webParamKindEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getSOAPBindingStyle() {
- return soapBindingStyleEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getSOAPBindingUse() {
- return soapBindingUseEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getSOAPBindingParameterStyle() {
- return soapBindingParameterStyleEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DomFactory getDomFactory() {
- return (DomFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- idomEClass = createEClass(IDOM);
- createEReference(idomEClass, IDOM__WEB_SERVICE_PROJECTS);
-
- iJavaWebServiceElementEClass = createEClass(IJAVA_WEB_SERVICE_ELEMENT);
- createEAttribute(iJavaWebServiceElementEClass, IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION);
- createEAttribute(iJavaWebServiceElementEClass, IJAVA_WEB_SERVICE_ELEMENT__NAME);
-
- iServiceEndpointInterfaceEClass = createEClass(ISERVICE_ENDPOINT_INTERFACE);
- createEAttribute(iServiceEndpointInterfaceEClass, ISERVICE_ENDPOINT_INTERFACE__IMPLICIT);
- createEReference(iServiceEndpointInterfaceEClass, ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES);
- createEReference(iServiceEndpointInterfaceEClass, ISERVICE_ENDPOINT_INTERFACE__WEB_METHODS);
- createEAttribute(iServiceEndpointInterfaceEClass, ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE);
- createEAttribute(iServiceEndpointInterfaceEClass, ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_STYLE);
- createEAttribute(iServiceEndpointInterfaceEClass, ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_USE);
- createEAttribute(iServiceEndpointInterfaceEClass, ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_PARAMETER_STYLE);
-
- iWebMethodEClass = createEClass(IWEB_METHOD);
- createEReference(iWebMethodEClass, IWEB_METHOD__PARAMETERS);
- createEAttribute(iWebMethodEClass, IWEB_METHOD__EXCLUDED);
- createEAttribute(iWebMethodEClass, IWEB_METHOD__SOAP_BINDING_STYLE);
- createEAttribute(iWebMethodEClass, IWEB_METHOD__SOAP_BINDING_USE);
- createEAttribute(iWebMethodEClass, IWEB_METHOD__SOAP_BINDING_PARAMETER_STYLE);
-
- iWebParamEClass = createEClass(IWEB_PARAM);
- createEAttribute(iWebParamEClass, IWEB_PARAM__KIND);
- createEAttribute(iWebParamEClass, IWEB_PARAM__TYPE_NAME);
- createEAttribute(iWebParamEClass, IWEB_PARAM__PART_NAME);
- createEAttribute(iWebParamEClass, IWEB_PARAM__TARGET_NAMESPACE);
- createEAttribute(iWebParamEClass, IWEB_PARAM__HEADER);
-
- iWebServiceEClass = createEClass(IWEB_SERVICE);
- createEReference(iWebServiceEClass, IWEB_SERVICE__SERVICE_ENDPOINT);
- createEAttribute(iWebServiceEClass, IWEB_SERVICE__TARGET_NAMESPACE);
- createEAttribute(iWebServiceEClass, IWEB_SERVICE__PORT_NAME);
- createEAttribute(iWebServiceEClass, IWEB_SERVICE__WSDL_LOCATION);
-
- iWebServiceProjectEClass = createEClass(IWEB_SERVICE_PROJECT);
- createEReference(iWebServiceProjectEClass, IWEB_SERVICE_PROJECT__WEB_SERVICES);
- createEReference(iWebServiceProjectEClass, IWEB_SERVICE_PROJECT__SERVICE_ENDPOINT_INTERFACES);
- createEAttribute(iWebServiceProjectEClass, IWEB_SERVICE_PROJECT__NAME);
-
- iWebTypeEClass = createEClass(IWEB_TYPE);
-
- // Create enums
- webParamKindEEnum = createEEnum(WEB_PARAM_KIND);
- soapBindingStyleEEnum = createEEnum(SOAP_BINDING_STYLE);
- soapBindingUseEEnum = createEEnum(SOAP_BINDING_USE);
- soapBindingParameterStyleEEnum = createEEnum(SOAP_BINDING_PARAMETER_STYLE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- iServiceEndpointInterfaceEClass.getESuperTypes().add(this.getIJavaWebServiceElement());
- iWebMethodEClass.getESuperTypes().add(this.getIJavaWebServiceElement());
- iWebParamEClass.getESuperTypes().add(this.getIJavaWebServiceElement());
- iWebServiceEClass.getESuperTypes().add(this.getIJavaWebServiceElement());
- iWebTypeEClass.getESuperTypes().add(this.getIJavaWebServiceElement());
-
- // Initialize classes and features; add operations and parameters
- initEClass(idomEClass, org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM.class, "IDOM", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEReference(getIDOM_WebServiceProjects(), this.getIWebServiceProject(), null, "webServiceProjects", null, 0, -1, org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEClass(iJavaWebServiceElementEClass, IJavaWebServiceElement.class, "IJavaWebServiceElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEAttribute(getIJavaWebServiceElement_Implementation(), ecorePackage.getEString(), "implementation", null, 1, 1, IJavaWebServiceElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIJavaWebServiceElement_Name(), ecorePackage.getEString(), "name", null, 1, 1, IJavaWebServiceElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEClass(iServiceEndpointInterfaceEClass, IServiceEndpointInterface.class, "IServiceEndpointInterface", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEAttribute(getIServiceEndpointInterface_Implicit(), ecorePackage.getEBoolean(), "implicit", null, 1, 1, IServiceEndpointInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEReference(getIServiceEndpointInterface_ImplementingWebServices(), this.getIWebService(), this.getIWebService_ServiceEndpoint(), "implementingWebServices", null, 1, -1, IServiceEndpointInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEReference(getIServiceEndpointInterface_WebMethods(), this.getIWebMethod(), null, "webMethods", null, 1, -1, IServiceEndpointInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIServiceEndpointInterface_TargetNamespace(), ecorePackage.getEString(), "targetNamespace", null, 1, 1, IServiceEndpointInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIServiceEndpointInterface_SoapBindingStyle(), this.getSOAPBindingStyle(), "soapBindingStyle", "DOCUMENT", 1, 1, IServiceEndpointInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getIServiceEndpointInterface_SoapBindingUse(), this.getSOAPBindingUse(), "soapBindingUse", "LITERAL", 1, 1, IServiceEndpointInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getIServiceEndpointInterface_SoapBindingParameterStyle(), this.getSOAPBindingParameterStyle(), "soapBindingParameterStyle", "WRAPPED", 1, 1, IServiceEndpointInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
-
- initEClass(iWebMethodEClass, IWebMethod.class, "IWebMethod", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEReference(getIWebMethod_Parameters(), this.getIWebParam(), null, "parameters", null, 1, -1, IWebMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIWebMethod_Excluded(), ecorePackage.getEBoolean(), "excluded", null, 1, 1, IWebMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIWebMethod_SoapBindingStyle(), this.getSOAPBindingStyle(), "soapBindingStyle", "DOCUMENT", 1, 1, IWebMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getIWebMethod_SoapBindingUse(), this.getSOAPBindingUse(), "soapBindingUse", "LITERAL", 1, 1, IWebMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getIWebMethod_SoapBindingParameterStyle(), this.getSOAPBindingParameterStyle(), "soapBindingParameterStyle", "WRAPPED", 1, 1, IWebMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
-
- initEClass(iWebParamEClass, IWebParam.class, "IWebParam", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEAttribute(getIWebParam_Kind(), this.getWebParamKind(), "kind", null, 1, 1, IWebParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIWebParam_TypeName(), ecorePackage.getEString(), "typeName", null, 1, 1, IWebParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIWebParam_PartName(), ecorePackage.getEString(), "partName", null, 1, 1, IWebParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIWebParam_TargetNamespace(), ecorePackage.getEString(), "targetNamespace", null, 1, 1, IWebParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIWebParam_Header(), ecorePackage.getEBoolean(), "header", "false", 1, 1, IWebParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
-
- initEClass(iWebServiceEClass, IWebService.class, "IWebService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEReference(getIWebService_ServiceEndpoint(), this.getIServiceEndpointInterface(), this.getIServiceEndpointInterface_ImplementingWebServices(), "serviceEndpoint", null, 0, 1, IWebService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIWebService_TargetNamespace(), ecorePackage.getEString(), "targetNamespace", null, 1, 1, IWebService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIWebService_PortName(), ecorePackage.getEString(), "portName", null, 1, 1, IWebService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIWebService_WsdlLocation(), ecorePackage.getEString(), "wsdlLocation", null, 0, 1, IWebService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEClass(iWebServiceProjectEClass, IWebServiceProject.class, "IWebServiceProject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEReference(getIWebServiceProject_WebServices(), this.getIWebService(), null, "webServices", null, 0, -1, IWebServiceProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEReference(getIWebServiceProject_ServiceEndpointInterfaces(), this.getIServiceEndpointInterface(), null, "serviceEndpointInterfaces", null, 0, -1, IWebServiceProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEAttribute(getIWebServiceProject_Name(), ecorePackage.getEString(), "name", null, 1, 1, IWebServiceProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEClass(iWebTypeEClass, IWebType.class, "IWebType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
-
- // Initialize enums and add enum literals
- initEEnum(webParamKindEEnum, WebParamKind.class, "WebParamKind"); //$NON-NLS-1$
- addEEnumLiteral(webParamKindEEnum, WebParamKind.IN);
- addEEnumLiteral(webParamKindEEnum, WebParamKind.INOUT);
- addEEnumLiteral(webParamKindEEnum, WebParamKind.OUT);
-
- initEEnum(soapBindingStyleEEnum, SOAPBindingStyle.class, "SOAPBindingStyle"); //$NON-NLS-1$
- addEEnumLiteral(soapBindingStyleEEnum, SOAPBindingStyle.DOCUMENT);
- addEEnumLiteral(soapBindingStyleEEnum, SOAPBindingStyle.RPC);
-
- initEEnum(soapBindingUseEEnum, SOAPBindingUse.class, "SOAPBindingUse"); //$NON-NLS-1$
- addEEnumLiteral(soapBindingUseEEnum, SOAPBindingUse.LITERAL);
- addEEnumLiteral(soapBindingUseEEnum, SOAPBindingUse.ENCODED);
-
- initEEnum(soapBindingParameterStyleEEnum, SOAPBindingParameterStyle.class, "SOAPBindingParameterStyle"); //$NON-NLS-1$
- addEEnumLiteral(soapBindingParameterStyleEEnum, SOAPBindingParameterStyle.WRAPPED);
- addEEnumLiteral(soapBindingParameterStyleEEnum, SOAPBindingParameterStyle.BARE);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //DomPackageImpl
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IDOMImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IDOMImpl.java
deleted file mode 100755
index 8ae867c..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IDOMImpl.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl;
-
-
-import java.util.Collection;
-
-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.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>IDOM</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IDOMImpl#getWebServiceProjects <em>Web Service Projects</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IDOMImpl extends EObjectImpl implements IDOM {
- /**
- * The cached value of the '{@link #getWebServiceProjects() <em>Web Service Projects</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWebServiceProjects()
- * @generated
- * @ordered
- */
- protected EList<IWebServiceProject> webServiceProjects;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IDOMImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DomPackage.Literals.IDOM;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<IWebServiceProject> getWebServiceProjects() {
- if (webServiceProjects == null)
- {
- webServiceProjects = new EObjectContainmentEList<IWebServiceProject>(IWebServiceProject.class, this, DomPackage.IDOM__WEB_SERVICE_PROJECTS);
- }
- return webServiceProjects;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID)
- {
- case DomPackage.IDOM__WEB_SERVICE_PROJECTS:
- return ((InternalEList<?>)getWebServiceProjects()).basicRemove(otherEnd, 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 DomPackage.IDOM__WEB_SERVICE_PROJECTS:
- return getWebServiceProjects();
- }
- 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 DomPackage.IDOM__WEB_SERVICE_PROJECTS:
- getWebServiceProjects().clear();
- getWebServiceProjects().addAll((Collection<? extends IWebServiceProject>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID)
- {
- case DomPackage.IDOM__WEB_SERVICE_PROJECTS:
- getWebServiceProjects().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID)
- {
- case DomPackage.IDOM__WEB_SERVICE_PROJECTS:
- return webServiceProjects != null && !webServiceProjects.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} //IDOMImpl
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IJavaWebServiceElementImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IJavaWebServiceElementImpl.java
deleted file mode 100755
index d80c124..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IJavaWebServiceElementImpl.java
+++ /dev/null
@@ -1,227 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl;
-
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>IJava Web Service Element</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IJavaWebServiceElementImpl#getImplementation <em>Implementation</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IJavaWebServiceElementImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IJavaWebServiceElementImpl extends EObjectImpl implements IJavaWebServiceElement {
- /**
- * The default value of the '{@link #getImplementation() <em>Implementation</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getImplementation()
- * @generated
- * @ordered
- */
- protected static final String IMPLEMENTATION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getImplementation() <em>Implementation</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getImplementation()
- * @generated
- * @ordered
- */
- protected String implementation = IMPLEMENTATION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IJavaWebServiceElementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DomPackage.Literals.IJAVA_WEB_SERVICE_ELEMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getImplementation() {
- return implementation;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setImplementation(String newImplementation) {
- String oldImplementation = implementation;
- implementation = newImplementation;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION, oldImplementation, implementation));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IJAVA_WEB_SERVICE_ELEMENT__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID)
- {
- case DomPackage.IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION:
- return getImplementation();
- case DomPackage.IJAVA_WEB_SERVICE_ELEMENT__NAME:
- return getName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID)
- {
- case DomPackage.IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION:
- setImplementation((String)newValue);
- return;
- case DomPackage.IJAVA_WEB_SERVICE_ELEMENT__NAME:
- setName((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID)
- {
- case DomPackage.IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION:
- setImplementation(IMPLEMENTATION_EDEFAULT);
- return;
- case DomPackage.IJAVA_WEB_SERVICE_ELEMENT__NAME:
- setName(NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID)
- {
- case DomPackage.IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION:
- return IMPLEMENTATION_EDEFAULT == null ? implementation != null : !IMPLEMENTATION_EDEFAULT.equals(implementation);
- case DomPackage.IJAVA_WEB_SERVICE_ELEMENT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- }
- 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(" (implementation: "); //$NON-NLS-1$
- result.append(implementation);
- result.append(", name: "); //$NON-NLS-1$
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //IJavaWebServiceElementImpl
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IServiceEndpointInterfaceImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IServiceEndpointInterfaceImpl.java
deleted file mode 100755
index 8d0e51f..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IServiceEndpointInterfaceImpl.java
+++ /dev/null
@@ -1,522 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl;
-
-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.EObject;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>IService Endpoint Interface</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl#isImplicit <em>Implicit</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl#getImplementingWebServices <em>Implementing Web Services</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl#getWebMethods <em>Web Methods</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl#getTargetNamespace <em>Target Namespace</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl#getSoapBindingStyle <em>Soap Binding Style</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl#getSoapBindingUse <em>Soap Binding Use</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IServiceEndpointInterfaceImpl#getSoapBindingParameterStyle <em>Soap Binding Parameter Style</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IServiceEndpointInterfaceImpl extends IJavaWebServiceElementImpl implements IServiceEndpointInterface {
- /**
- * The default value of the '{@link #isImplicit() <em>Implicit</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isImplicit()
- * @generated
- * @ordered
- */
- protected static final boolean IMPLICIT_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isImplicit() <em>Implicit</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isImplicit()
- * @generated
- * @ordered
- */
- protected boolean implicit = IMPLICIT_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getImplementingWebServices() <em>Implementing Web Services</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getImplementingWebServices()
- * @generated
- * @ordered
- */
- protected EList<IWebService> implementingWebServices;
-
- /**
- * The cached value of the '{@link #getWebMethods() <em>Web Methods</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWebMethods()
- * @generated
- * @ordered
- */
- protected EList<IWebMethod> webMethods;
-
- /**
- * The default value of the '{@link #getTargetNamespace() <em>Target Namespace</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTargetNamespace()
- * @generated
- * @ordered
- */
- protected static final String TARGET_NAMESPACE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTargetNamespace() <em>Target Namespace</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTargetNamespace()
- * @generated
- * @ordered
- */
- protected String targetNamespace = TARGET_NAMESPACE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getSoapBindingStyle() <em>Soap Binding Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingStyle()
- * @generated
- * @ordered
- */
- protected static final SOAPBindingStyle SOAP_BINDING_STYLE_EDEFAULT = SOAPBindingStyle.DOCUMENT;
-
- /**
- * The cached value of the '{@link #getSoapBindingStyle() <em>Soap Binding Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingStyle()
- * @generated
- * @ordered
- */
- protected SOAPBindingStyle soapBindingStyle = SOAP_BINDING_STYLE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getSoapBindingUse() <em>Soap Binding Use</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingUse()
- * @generated
- * @ordered
- */
- protected static final SOAPBindingUse SOAP_BINDING_USE_EDEFAULT = SOAPBindingUse.LITERAL;
-
- /**
- * The cached value of the '{@link #getSoapBindingUse() <em>Soap Binding Use</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingUse()
- * @generated
- * @ordered
- */
- protected SOAPBindingUse soapBindingUse = SOAP_BINDING_USE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getSoapBindingParameterStyle() <em>Soap Binding Parameter Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingParameterStyle()
- * @generated
- * @ordered
- */
- protected static final SOAPBindingParameterStyle SOAP_BINDING_PARAMETER_STYLE_EDEFAULT = SOAPBindingParameterStyle.WRAPPED;
-
- /**
- * The cached value of the '{@link #getSoapBindingParameterStyle() <em>Soap Binding Parameter Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingParameterStyle()
- * @generated
- * @ordered
- */
- protected SOAPBindingParameterStyle soapBindingParameterStyle = SOAP_BINDING_PARAMETER_STYLE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IServiceEndpointInterfaceImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DomPackage.Literals.ISERVICE_ENDPOINT_INTERFACE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isImplicit() {
- return implicit;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setImplicit(boolean newImplicit) {
- boolean oldImplicit = implicit;
- implicit = newImplicit;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLICIT, oldImplicit, implicit));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<IWebService> getImplementingWebServices() {
- if (implementingWebServices == null)
- {
- implementingWebServices = new EObjectWithInverseResolvingEList<IWebService>(IWebService.class, this, DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES, DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT);
- }
- return implementingWebServices;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<IWebMethod> getWebMethods() {
- if (webMethods == null)
- {
- webMethods = new EObjectContainmentEList<IWebMethod>(IWebMethod.class, this, DomPackage.ISERVICE_ENDPOINT_INTERFACE__WEB_METHODS);
- }
- return webMethods;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getTargetNamespace() {
- return targetNamespace;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTargetNamespace(String newTargetNamespace) {
- String oldTargetNamespace = targetNamespace;
- targetNamespace = newTargetNamespace;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE, oldTargetNamespace, targetNamespace));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SOAPBindingStyle getSoapBindingStyle() {
- return soapBindingStyle;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSoapBindingStyle(SOAPBindingStyle newSoapBindingStyle) {
- SOAPBindingStyle oldSoapBindingStyle = soapBindingStyle;
- soapBindingStyle = newSoapBindingStyle == null ? SOAP_BINDING_STYLE_EDEFAULT : newSoapBindingStyle;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_STYLE, oldSoapBindingStyle, soapBindingStyle));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SOAPBindingUse getSoapBindingUse() {
- return soapBindingUse;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSoapBindingUse(SOAPBindingUse newSoapBindingUse) {
- SOAPBindingUse oldSoapBindingUse = soapBindingUse;
- soapBindingUse = newSoapBindingUse == null ? SOAP_BINDING_USE_EDEFAULT : newSoapBindingUse;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_USE, oldSoapBindingUse, soapBindingUse));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SOAPBindingParameterStyle getSoapBindingParameterStyle() {
- return soapBindingParameterStyle;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSoapBindingParameterStyle(SOAPBindingParameterStyle newSoapBindingParameterStyle) {
- SOAPBindingParameterStyle oldSoapBindingParameterStyle = soapBindingParameterStyle;
- soapBindingParameterStyle = newSoapBindingParameterStyle == null ? SOAP_BINDING_PARAMETER_STYLE_EDEFAULT : newSoapBindingParameterStyle;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_PARAMETER_STYLE, oldSoapBindingParameterStyle, soapBindingParameterStyle));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID)
- {
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES:
- return ((InternalEList<InternalEObject>)(InternalEList<?>)getImplementingWebServices()).basicAdd(otherEnd, msgs);
- }
- return super.eInverseAdd(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID)
- {
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES:
- return ((InternalEList<?>)getImplementingWebServices()).basicRemove(otherEnd, msgs);
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__WEB_METHODS:
- return ((InternalEList<?>)getWebMethods()).basicRemove(otherEnd, 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 DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLICIT:
- return isImplicit();
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES:
- return getImplementingWebServices();
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__WEB_METHODS:
- return getWebMethods();
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE:
- return getTargetNamespace();
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_STYLE:
- return getSoapBindingStyle();
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_USE:
- return getSoapBindingUse();
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_PARAMETER_STYLE:
- return getSoapBindingParameterStyle();
- }
- 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 DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLICIT:
- setImplicit((Boolean)newValue);
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES:
- getImplementingWebServices().clear();
- getImplementingWebServices().addAll((Collection<? extends IWebService>)newValue);
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__WEB_METHODS:
- getWebMethods().clear();
- getWebMethods().addAll((Collection<? extends IWebMethod>)newValue);
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE:
- setTargetNamespace((String)newValue);
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_STYLE:
- setSoapBindingStyle((SOAPBindingStyle)newValue);
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_USE:
- setSoapBindingUse((SOAPBindingUse)newValue);
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_PARAMETER_STYLE:
- setSoapBindingParameterStyle((SOAPBindingParameterStyle)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID)
- {
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLICIT:
- setImplicit(IMPLICIT_EDEFAULT);
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES:
- getImplementingWebServices().clear();
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__WEB_METHODS:
- getWebMethods().clear();
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE:
- setTargetNamespace(TARGET_NAMESPACE_EDEFAULT);
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_STYLE:
- setSoapBindingStyle(SOAP_BINDING_STYLE_EDEFAULT);
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_USE:
- setSoapBindingUse(SOAP_BINDING_USE_EDEFAULT);
- return;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_PARAMETER_STYLE:
- setSoapBindingParameterStyle(SOAP_BINDING_PARAMETER_STYLE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID)
- {
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLICIT:
- return implicit != IMPLICIT_EDEFAULT;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES:
- return implementingWebServices != null && !implementingWebServices.isEmpty();
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__WEB_METHODS:
- return webMethods != null && !webMethods.isEmpty();
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE:
- return TARGET_NAMESPACE_EDEFAULT == null ? targetNamespace != null : !TARGET_NAMESPACE_EDEFAULT.equals(targetNamespace);
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_STYLE:
- return soapBindingStyle != SOAP_BINDING_STYLE_EDEFAULT;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_USE:
- return soapBindingUse != SOAP_BINDING_USE_EDEFAULT;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__SOAP_BINDING_PARAMETER_STYLE:
- return soapBindingParameterStyle != SOAP_BINDING_PARAMETER_STYLE_EDEFAULT;
- }
- 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(" (implicit: "); //$NON-NLS-1$
- result.append(implicit);
- result.append(", targetNamespace: "); //$NON-NLS-1$
- result.append(targetNamespace);
- result.append(", soapBindingStyle: "); //$NON-NLS-1$
- result.append(soapBindingStyle);
- result.append(", soapBindingUse: "); //$NON-NLS-1$
- result.append(soapBindingUse);
- result.append(", soapBindingParameterStyle: "); //$NON-NLS-1$
- result.append(soapBindingParameterStyle);
- result.append(')');
- return result.toString();
- }
-
- @Override
- public EObject eContainer()
- {
- if (super.eContainer()!=null) {
- return super.eContainer();
- }
-
- for (IWebService ws : getImplementingWebServices()) {
- if (ws.eContainer()!=null) {
- return ws.eContainer();
- }
- }
-
- return null;
- }
-
-} //IServiceEndpointInterfaceImpl
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebMethodImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebMethodImpl.java
deleted file mode 100755
index 6bba49a..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebMethodImpl.java
+++ /dev/null
@@ -1,397 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl;
-
-
-
-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.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>IWeb Method</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebMethodImpl#getParameters <em>Parameters</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebMethodImpl#isExcluded <em>Excluded</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebMethodImpl#getSoapBindingStyle <em>Soap Binding Style</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebMethodImpl#getSoapBindingUse <em>Soap Binding Use</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebMethodImpl#getSoapBindingParameterStyle <em>Soap Binding Parameter Style</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IWebMethodImpl extends IJavaWebServiceElementImpl implements IWebMethod {
- /**
- * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getParameters()
- * @generated
- * @ordered
- */
- protected EList<IWebParam> parameters;
-
- /**
- * The default value of the '{@link #isExcluded() <em>Excluded</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isExcluded()
- * @generated
- * @ordered
- */
- protected static final boolean EXCLUDED_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isExcluded() <em>Excluded</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isExcluded()
- * @generated
- * @ordered
- */
- protected boolean excluded = EXCLUDED_EDEFAULT;
-
- /**
- * The default value of the '{@link #getSoapBindingStyle() <em>Soap Binding Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingStyle()
- * @generated
- * @ordered
- */
- protected static final SOAPBindingStyle SOAP_BINDING_STYLE_EDEFAULT = SOAPBindingStyle.DOCUMENT;
-
- /**
- * The cached value of the '{@link #getSoapBindingStyle() <em>Soap Binding Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingStyle()
- * @generated
- * @ordered
- */
- protected SOAPBindingStyle soapBindingStyle = SOAP_BINDING_STYLE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getSoapBindingUse() <em>Soap Binding Use</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingUse()
- * @generated
- * @ordered
- */
- protected static final SOAPBindingUse SOAP_BINDING_USE_EDEFAULT = SOAPBindingUse.LITERAL;
-
- /**
- * The cached value of the '{@link #getSoapBindingUse() <em>Soap Binding Use</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingUse()
- * @generated
- * @ordered
- */
- protected SOAPBindingUse soapBindingUse = SOAP_BINDING_USE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getSoapBindingParameterStyle() <em>Soap Binding Parameter Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingParameterStyle()
- * @generated
- * @ordered
- */
- protected static final SOAPBindingParameterStyle SOAP_BINDING_PARAMETER_STYLE_EDEFAULT = SOAPBindingParameterStyle.WRAPPED;
-
- /**
- * The cached value of the '{@link #getSoapBindingParameterStyle() <em>Soap Binding Parameter Style</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSoapBindingParameterStyle()
- * @generated
- * @ordered
- */
- protected SOAPBindingParameterStyle soapBindingParameterStyle = SOAP_BINDING_PARAMETER_STYLE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IWebMethodImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DomPackage.Literals.IWEB_METHOD;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<IWebParam> getParameters() {
- if (parameters == null)
- {
- parameters = new EObjectContainmentEList<IWebParam>(IWebParam.class, this, DomPackage.IWEB_METHOD__PARAMETERS);
- }
- return parameters;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isExcluded() {
- return excluded;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setExcluded(boolean newExcluded) {
- boolean oldExcluded = excluded;
- excluded = newExcluded;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_METHOD__EXCLUDED, oldExcluded, excluded));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SOAPBindingStyle getSoapBindingStyle() {
- return soapBindingStyle;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSoapBindingStyle(SOAPBindingStyle newSoapBindingStyle) {
- SOAPBindingStyle oldSoapBindingStyle = soapBindingStyle;
- soapBindingStyle = newSoapBindingStyle == null ? SOAP_BINDING_STYLE_EDEFAULT : newSoapBindingStyle;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_METHOD__SOAP_BINDING_STYLE, oldSoapBindingStyle, soapBindingStyle));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SOAPBindingUse getSoapBindingUse() {
- return soapBindingUse;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSoapBindingUse(SOAPBindingUse newSoapBindingUse) {
- SOAPBindingUse oldSoapBindingUse = soapBindingUse;
- soapBindingUse = newSoapBindingUse == null ? SOAP_BINDING_USE_EDEFAULT : newSoapBindingUse;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_METHOD__SOAP_BINDING_USE, oldSoapBindingUse, soapBindingUse));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SOAPBindingParameterStyle getSoapBindingParameterStyle() {
- return soapBindingParameterStyle;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSoapBindingParameterStyle(SOAPBindingParameterStyle newSoapBindingParameterStyle) {
- SOAPBindingParameterStyle oldSoapBindingParameterStyle = soapBindingParameterStyle;
- soapBindingParameterStyle = newSoapBindingParameterStyle == null ? SOAP_BINDING_PARAMETER_STYLE_EDEFAULT : newSoapBindingParameterStyle;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_METHOD__SOAP_BINDING_PARAMETER_STYLE, oldSoapBindingParameterStyle, soapBindingParameterStyle));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID)
- {
- case DomPackage.IWEB_METHOD__PARAMETERS:
- return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, 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 DomPackage.IWEB_METHOD__PARAMETERS:
- return getParameters();
- case DomPackage.IWEB_METHOD__EXCLUDED:
- return isExcluded();
- case DomPackage.IWEB_METHOD__SOAP_BINDING_STYLE:
- return getSoapBindingStyle();
- case DomPackage.IWEB_METHOD__SOAP_BINDING_USE:
- return getSoapBindingUse();
- case DomPackage.IWEB_METHOD__SOAP_BINDING_PARAMETER_STYLE:
- return getSoapBindingParameterStyle();
- }
- 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 DomPackage.IWEB_METHOD__PARAMETERS:
- getParameters().clear();
- getParameters().addAll((Collection<? extends IWebParam>)newValue);
- return;
- case DomPackage.IWEB_METHOD__EXCLUDED:
- setExcluded((Boolean)newValue);
- return;
- case DomPackage.IWEB_METHOD__SOAP_BINDING_STYLE:
- setSoapBindingStyle((SOAPBindingStyle)newValue);
- return;
- case DomPackage.IWEB_METHOD__SOAP_BINDING_USE:
- setSoapBindingUse((SOAPBindingUse)newValue);
- return;
- case DomPackage.IWEB_METHOD__SOAP_BINDING_PARAMETER_STYLE:
- setSoapBindingParameterStyle((SOAPBindingParameterStyle)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID)
- {
- case DomPackage.IWEB_METHOD__PARAMETERS:
- getParameters().clear();
- return;
- case DomPackage.IWEB_METHOD__EXCLUDED:
- setExcluded(EXCLUDED_EDEFAULT);
- return;
- case DomPackage.IWEB_METHOD__SOAP_BINDING_STYLE:
- setSoapBindingStyle(SOAP_BINDING_STYLE_EDEFAULT);
- return;
- case DomPackage.IWEB_METHOD__SOAP_BINDING_USE:
- setSoapBindingUse(SOAP_BINDING_USE_EDEFAULT);
- return;
- case DomPackage.IWEB_METHOD__SOAP_BINDING_PARAMETER_STYLE:
- setSoapBindingParameterStyle(SOAP_BINDING_PARAMETER_STYLE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID)
- {
- case DomPackage.IWEB_METHOD__PARAMETERS:
- return parameters != null && !parameters.isEmpty();
- case DomPackage.IWEB_METHOD__EXCLUDED:
- return excluded != EXCLUDED_EDEFAULT;
- case DomPackage.IWEB_METHOD__SOAP_BINDING_STYLE:
- return soapBindingStyle != SOAP_BINDING_STYLE_EDEFAULT;
- case DomPackage.IWEB_METHOD__SOAP_BINDING_USE:
- return soapBindingUse != SOAP_BINDING_USE_EDEFAULT;
- case DomPackage.IWEB_METHOD__SOAP_BINDING_PARAMETER_STYLE:
- return soapBindingParameterStyle != SOAP_BINDING_PARAMETER_STYLE_EDEFAULT;
- }
- 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(" (excluded: "); //$NON-NLS-1$
- result.append(excluded);
- result.append(", soapBindingStyle: "); //$NON-NLS-1$
- result.append(soapBindingStyle);
- result.append(", soapBindingUse: "); //$NON-NLS-1$
- result.append(soapBindingUse);
- result.append(", soapBindingParameterStyle: "); //$NON-NLS-1$
- result.append(soapBindingParameterStyle);
- result.append(')');
- return result.toString();
- }
-
-} //IWebMethodImpl
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebParamImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebParamImpl.java
deleted file mode 100755
index 61504e9..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebParamImpl.java
+++ /dev/null
@@ -1,389 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl;
-
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>IWeb Param</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebParamImpl#getKind <em>Kind</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebParamImpl#getTypeName <em>Type Name</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebParamImpl#getPartName <em>Part Name</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebParamImpl#getTargetNamespace <em>Target Namespace</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebParamImpl#isHeader <em>Header</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IWebParamImpl extends IJavaWebServiceElementImpl implements IWebParam {
- /**
- * The default value of the '{@link #getKind() <em>Kind</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getKind()
- * @generated
- * @ordered
- */
- protected static final WebParamKind KIND_EDEFAULT = WebParamKind.IN;
-
- /**
- * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getKind()
- * @generated
- * @ordered
- */
- protected WebParamKind kind = KIND_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTypeName() <em>Type Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTypeName()
- * @generated
- * @ordered
- */
- protected static final String TYPE_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTypeName() <em>Type Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTypeName()
- * @generated
- * @ordered
- */
- protected String typeName = TYPE_NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getPartName() <em>Part Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPartName()
- * @generated
- * @ordered
- */
- protected static final String PART_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getPartName() <em>Part Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPartName()
- * @generated
- * @ordered
- */
- protected String partName = PART_NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTargetNamespace() <em>Target Namespace</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTargetNamespace()
- * @generated
- * @ordered
- */
- protected static final String TARGET_NAMESPACE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTargetNamespace() <em>Target Namespace</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTargetNamespace()
- * @generated
- * @ordered
- */
- protected String targetNamespace = TARGET_NAMESPACE_EDEFAULT;
-
- /**
- * The default value of the '{@link #isHeader() <em>Header</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isHeader()
- * @generated
- * @ordered
- */
- protected static final boolean HEADER_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isHeader() <em>Header</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isHeader()
- * @generated
- * @ordered
- */
- protected boolean header = HEADER_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IWebParamImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DomPackage.Literals.IWEB_PARAM;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public WebParamKind getKind() {
- return kind;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setKind(WebParamKind newKind) {
- WebParamKind oldKind = kind;
- kind = newKind == null ? KIND_EDEFAULT : newKind;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_PARAM__KIND, oldKind, kind));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getTypeName() {
- return typeName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTypeName(String newTypeName) {
- String oldTypeName = typeName;
- typeName = newTypeName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_PARAM__TYPE_NAME, oldTypeName, typeName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getPartName() {
- return partName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPartName(String newPartName) {
- String oldPartName = partName;
- partName = newPartName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_PARAM__PART_NAME, oldPartName, partName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getTargetNamespace() {
- return targetNamespace;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTargetNamespace(String newTargetNamespace) {
- String oldTargetNamespace = targetNamespace;
- targetNamespace = newTargetNamespace;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_PARAM__TARGET_NAMESPACE, oldTargetNamespace, targetNamespace));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isHeader() {
- return header;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHeader(boolean newHeader) {
- boolean oldHeader = header;
- header = newHeader;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_PARAM__HEADER, oldHeader, header));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID)
- {
- case DomPackage.IWEB_PARAM__KIND:
- return getKind();
- case DomPackage.IWEB_PARAM__TYPE_NAME:
- return getTypeName();
- case DomPackage.IWEB_PARAM__PART_NAME:
- return getPartName();
- case DomPackage.IWEB_PARAM__TARGET_NAMESPACE:
- return getTargetNamespace();
- case DomPackage.IWEB_PARAM__HEADER:
- return isHeader();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID)
- {
- case DomPackage.IWEB_PARAM__KIND:
- setKind((WebParamKind)newValue);
- return;
- case DomPackage.IWEB_PARAM__TYPE_NAME:
- setTypeName((String)newValue);
- return;
- case DomPackage.IWEB_PARAM__PART_NAME:
- setPartName((String)newValue);
- return;
- case DomPackage.IWEB_PARAM__TARGET_NAMESPACE:
- setTargetNamespace((String)newValue);
- return;
- case DomPackage.IWEB_PARAM__HEADER:
- setHeader((Boolean)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID)
- {
- case DomPackage.IWEB_PARAM__KIND:
- setKind(KIND_EDEFAULT);
- return;
- case DomPackage.IWEB_PARAM__TYPE_NAME:
- setTypeName(TYPE_NAME_EDEFAULT);
- return;
- case DomPackage.IWEB_PARAM__PART_NAME:
- setPartName(PART_NAME_EDEFAULT);
- return;
- case DomPackage.IWEB_PARAM__TARGET_NAMESPACE:
- setTargetNamespace(TARGET_NAMESPACE_EDEFAULT);
- return;
- case DomPackage.IWEB_PARAM__HEADER:
- setHeader(HEADER_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID)
- {
- case DomPackage.IWEB_PARAM__KIND:
- return kind != KIND_EDEFAULT;
- case DomPackage.IWEB_PARAM__TYPE_NAME:
- return TYPE_NAME_EDEFAULT == null ? typeName != null : !TYPE_NAME_EDEFAULT.equals(typeName);
- case DomPackage.IWEB_PARAM__PART_NAME:
- return PART_NAME_EDEFAULT == null ? partName != null : !PART_NAME_EDEFAULT.equals(partName);
- case DomPackage.IWEB_PARAM__TARGET_NAMESPACE:
- return TARGET_NAMESPACE_EDEFAULT == null ? targetNamespace != null : !TARGET_NAMESPACE_EDEFAULT.equals(targetNamespace);
- case DomPackage.IWEB_PARAM__HEADER:
- return header != HEADER_EDEFAULT;
- }
- 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(" (kind: "); //$NON-NLS-1$
- result.append(kind);
- result.append(", typeName: "); //$NON-NLS-1$
- result.append(typeName);
- result.append(", partName: "); //$NON-NLS-1$
- result.append(partName);
- result.append(", targetNamespace: "); //$NON-NLS-1$
- result.append(targetNamespace);
- result.append(", header: "); //$NON-NLS-1$
- result.append(header);
- result.append(')');
- return result.toString();
- }
-
-} //IWebParamImpl
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebServiceImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebServiceImpl.java
deleted file mode 100755
index 4e845e1..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebServiceImpl.java
+++ /dev/null
@@ -1,396 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl;
-
-
-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.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>IWeb Service</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceImpl#getServiceEndpoint <em>Service Endpoint</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceImpl#getTargetNamespace <em>Target Namespace</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceImpl#getPortName <em>Port Name</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceImpl#getWsdlLocation <em>Wsdl Location</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IWebServiceImpl extends IJavaWebServiceElementImpl implements IWebService {
- /**
- * The cached value of the '{@link #getServiceEndpoint() <em>Service Endpoint</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getServiceEndpoint()
- * @generated
- * @ordered
- */
- protected IServiceEndpointInterface serviceEndpoint;
-
- /**
- * The default value of the '{@link #getTargetNamespace() <em>Target Namespace</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTargetNamespace()
- * @generated
- * @ordered
- */
- protected static final String TARGET_NAMESPACE_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getTargetNamespace() <em>Target Namespace</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTargetNamespace()
- * @generated
- * @ordered
- */
- protected String targetNamespace = TARGET_NAMESPACE_EDEFAULT;
- /**
- * The default value of the '{@link #getPortName() <em>Port Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPortName()
- * @generated
- * @ordered
- */
- protected static final String PORT_NAME_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getPortName() <em>Port Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPortName()
- * @generated
- * @ordered
- */
- protected String portName = PORT_NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getWsdlLocation() <em>Wsdl Location</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWsdlLocation()
- * @generated
- * @ordered
- */
- protected static final String WSDL_LOCATION_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getWsdlLocation() <em>Wsdl Location</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWsdlLocation()
- * @generated
- * @ordered
- */
- protected String wsdlLocation = WSDL_LOCATION_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IWebServiceImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DomPackage.Literals.IWEB_SERVICE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IServiceEndpointInterface getServiceEndpoint() {
- if (serviceEndpoint != null && serviceEndpoint.eIsProxy())
- {
- InternalEObject oldServiceEndpoint = (InternalEObject)serviceEndpoint;
- serviceEndpoint = (IServiceEndpointInterface)eResolveProxy(oldServiceEndpoint);
- if (serviceEndpoint != oldServiceEndpoint)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT, oldServiceEndpoint, serviceEndpoint));
- }
- }
- return serviceEndpoint;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IServiceEndpointInterface basicGetServiceEndpoint() {
- return serviceEndpoint;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetServiceEndpoint(IServiceEndpointInterface newServiceEndpoint, NotificationChain msgs) {
- IServiceEndpointInterface oldServiceEndpoint = serviceEndpoint;
- serviceEndpoint = newServiceEndpoint;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT, oldServiceEndpoint, newServiceEndpoint);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setServiceEndpoint(IServiceEndpointInterface newServiceEndpoint) {
- if (newServiceEndpoint != serviceEndpoint)
- {
- NotificationChain msgs = null;
- if (serviceEndpoint != null)
- msgs = ((InternalEObject)serviceEndpoint).eInverseRemove(this, DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES, IServiceEndpointInterface.class, msgs);
- if (newServiceEndpoint != null)
- msgs = ((InternalEObject)newServiceEndpoint).eInverseAdd(this, DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES, IServiceEndpointInterface.class, msgs);
- msgs = basicSetServiceEndpoint(newServiceEndpoint, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT, newServiceEndpoint, newServiceEndpoint));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getTargetNamespace() {
- return targetNamespace;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTargetNamespace(String newTargetNamespace) {
- String oldTargetNamespace = targetNamespace;
- targetNamespace = newTargetNamespace;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_SERVICE__TARGET_NAMESPACE, oldTargetNamespace, targetNamespace));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getPortName() {
- return portName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPortName(String newPortName) {
- String oldPortName = portName;
- portName = newPortName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_SERVICE__PORT_NAME, oldPortName, portName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getWsdlLocation() {
- return wsdlLocation;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setWsdlLocation(String newWsdlLocation) {
- String oldWsdlLocation = wsdlLocation;
- wsdlLocation = newWsdlLocation;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_SERVICE__WSDL_LOCATION, oldWsdlLocation, wsdlLocation));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID)
- {
- case DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT:
- if (serviceEndpoint != null)
- msgs = ((InternalEObject)serviceEndpoint).eInverseRemove(this, DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLEMENTING_WEB_SERVICES, IServiceEndpointInterface.class, msgs);
- return basicSetServiceEndpoint((IServiceEndpointInterface)otherEnd, msgs);
- }
- return super.eInverseAdd(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID)
- {
- case DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT:
- return basicSetServiceEndpoint(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 DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT:
- if (resolve) return getServiceEndpoint();
- return basicGetServiceEndpoint();
- case DomPackage.IWEB_SERVICE__TARGET_NAMESPACE:
- return getTargetNamespace();
- case DomPackage.IWEB_SERVICE__PORT_NAME:
- return getPortName();
- case DomPackage.IWEB_SERVICE__WSDL_LOCATION:
- return getWsdlLocation();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID)
- {
- case DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT:
- setServiceEndpoint((IServiceEndpointInterface)newValue);
- return;
- case DomPackage.IWEB_SERVICE__TARGET_NAMESPACE:
- setTargetNamespace((String)newValue);
- return;
- case DomPackage.IWEB_SERVICE__PORT_NAME:
- setPortName((String)newValue);
- return;
- case DomPackage.IWEB_SERVICE__WSDL_LOCATION:
- setWsdlLocation((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID)
- {
- case DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT:
- setServiceEndpoint((IServiceEndpointInterface)null);
- return;
- case DomPackage.IWEB_SERVICE__TARGET_NAMESPACE:
- setTargetNamespace(TARGET_NAMESPACE_EDEFAULT);
- return;
- case DomPackage.IWEB_SERVICE__PORT_NAME:
- setPortName(PORT_NAME_EDEFAULT);
- return;
- case DomPackage.IWEB_SERVICE__WSDL_LOCATION:
- setWsdlLocation(WSDL_LOCATION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID)
- {
- case DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT:
- return serviceEndpoint != null;
- case DomPackage.IWEB_SERVICE__TARGET_NAMESPACE:
- return TARGET_NAMESPACE_EDEFAULT == null ? targetNamespace != null : !TARGET_NAMESPACE_EDEFAULT.equals(targetNamespace);
- case DomPackage.IWEB_SERVICE__PORT_NAME:
- return PORT_NAME_EDEFAULT == null ? portName != null : !PORT_NAME_EDEFAULT.equals(portName);
- case DomPackage.IWEB_SERVICE__WSDL_LOCATION:
- return WSDL_LOCATION_EDEFAULT == null ? wsdlLocation != null : !WSDL_LOCATION_EDEFAULT.equals(wsdlLocation);
- }
- 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(" (targetNamespace: "); //$NON-NLS-1$
- result.append(targetNamespace);
- result.append(", portName: "); //$NON-NLS-1$
- result.append(portName);
- result.append(", wsdlLocation: "); //$NON-NLS-1$
- result.append(wsdlLocation);
- result.append(')');
- return result.toString();
- }
-
-} //IWebServiceImpl
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebServiceProjectImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebServiceProjectImpl.java
deleted file mode 100755
index 9b13f3e..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebServiceProjectImpl.java
+++ /dev/null
@@ -1,270 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl;
-
-
-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.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>IWeb Service Project</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceProjectImpl#getWebServices <em>Web Services</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceProjectImpl#getServiceEndpointInterfaces <em>Service Endpoint Interfaces</em>}</li>
- * <li>{@link org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl.IWebServiceProjectImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IWebServiceProjectImpl extends EObjectImpl implements IWebServiceProject {
- /**
- * The cached value of the '{@link #getWebServices() <em>Web Services</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWebServices()
- * @generated
- * @ordered
- */
- protected EList<IWebService> webServices;
-
- /**
- * The cached value of the '{@link #getServiceEndpointInterfaces() <em>Service Endpoint Interfaces</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getServiceEndpointInterfaces()
- * @generated
- * @ordered
- */
- protected EList<IServiceEndpointInterface> serviceEndpointInterfaces;
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IWebServiceProjectImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DomPackage.Literals.IWEB_SERVICE_PROJECT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<IWebService> getWebServices() {
- if (webServices == null)
- {
- webServices = new EObjectContainmentEList<IWebService>(IWebService.class, this, DomPackage.IWEB_SERVICE_PROJECT__WEB_SERVICES);
- }
- return webServices;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<IServiceEndpointInterface> getServiceEndpointInterfaces() {
- if (serviceEndpointInterfaces == null)
- {
- serviceEndpointInterfaces = new EObjectContainmentEList<IServiceEndpointInterface>(IServiceEndpointInterface.class, this, DomPackage.IWEB_SERVICE_PROJECT__SERVICE_ENDPOINT_INTERFACES);
- }
- return serviceEndpointInterfaces;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IWEB_SERVICE_PROJECT__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID)
- {
- case DomPackage.IWEB_SERVICE_PROJECT__WEB_SERVICES:
- return ((InternalEList<?>)getWebServices()).basicRemove(otherEnd, msgs);
- case DomPackage.IWEB_SERVICE_PROJECT__SERVICE_ENDPOINT_INTERFACES:
- return ((InternalEList<?>)getServiceEndpointInterfaces()).basicRemove(otherEnd, 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 DomPackage.IWEB_SERVICE_PROJECT__WEB_SERVICES:
- return getWebServices();
- case DomPackage.IWEB_SERVICE_PROJECT__SERVICE_ENDPOINT_INTERFACES:
- return getServiceEndpointInterfaces();
- case DomPackage.IWEB_SERVICE_PROJECT__NAME:
- return getName();
- }
- 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 DomPackage.IWEB_SERVICE_PROJECT__WEB_SERVICES:
- getWebServices().clear();
- getWebServices().addAll((Collection<? extends IWebService>)newValue);
- return;
- case DomPackage.IWEB_SERVICE_PROJECT__SERVICE_ENDPOINT_INTERFACES:
- getServiceEndpointInterfaces().clear();
- getServiceEndpointInterfaces().addAll((Collection<? extends IServiceEndpointInterface>)newValue);
- return;
- case DomPackage.IWEB_SERVICE_PROJECT__NAME:
- setName((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID)
- {
- case DomPackage.IWEB_SERVICE_PROJECT__WEB_SERVICES:
- getWebServices().clear();
- return;
- case DomPackage.IWEB_SERVICE_PROJECT__SERVICE_ENDPOINT_INTERFACES:
- getServiceEndpointInterfaces().clear();
- return;
- case DomPackage.IWEB_SERVICE_PROJECT__NAME:
- setName(NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID)
- {
- case DomPackage.IWEB_SERVICE_PROJECT__WEB_SERVICES:
- return webServices != null && !webServices.isEmpty();
- case DomPackage.IWEB_SERVICE_PROJECT__SERVICE_ENDPOINT_INTERFACES:
- return serviceEndpointInterfaces != null && !serviceEndpointInterfaces.isEmpty();
- case DomPackage.IWEB_SERVICE_PROJECT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- }
- 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(" (name: "); //$NON-NLS-1$
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //IWebServiceProjectImpl
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebTypeImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebTypeImpl.java
deleted file mode 100755
index 51c598e..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/impl/IWebTypeImpl.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.impl;
-
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>IWeb Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class IWebTypeImpl extends IJavaWebServiceElementImpl implements IWebType {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IWebTypeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DomPackage.Literals.IWEB_TYPE;
- }
-
-} //IWebTypeImpl
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/JaxWsDomRuntimeMessages.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/JaxWsDomRuntimeMessages.java
deleted file mode 100755
index 840342b..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/JaxWsDomRuntimeMessages.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.plugin;
-
-import org.eclipse.osgi.util.NLS;
-
-public class JaxWsDomRuntimeMessages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.jst.ws.jaxws.dom.runtime.internal.plugin.messages"; //$NON-NLS-1$
-
- public static String WsDomStartupParticipant_Startup_Job_Message;
- public static String WorkspaceCUFinder_LOADING_CANCELED;
- public static String JAXWS_DOM_LOADING;
-
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, JaxWsDomRuntimeMessages.class);
- }
-
- private JaxWsDomRuntimeMessages() {
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/JaxWsDomRuntimePlugin.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/JaxWsDomRuntimePlugin.java
deleted file mode 100755
index a9f8fd8..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/JaxWsDomRuntimePlugin.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.plugin;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class JaxWsDomRuntimePlugin extends Plugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.jst.ws.jaxws.dom.runtime";
-
- // The shared instance
- private static JaxWsDomRuntimePlugin plugin;
-
- /**
- * The constructor
- */
- public JaxWsDomRuntimePlugin() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static JaxWsDomRuntimePlugin getDefault() {
- return plugin;
- }
-
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/messages.properties b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/messages.properties
deleted file mode 100755
index f69de43..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/plugin/messages.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-###############################################################################
-# Copyright (c) 2009 by SAP AG, Walldorf.
-# 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:
-# SAP AG - initial API and implementation
-###############################################################################
-WsDomStartupParticipant_Startup_Job_Message =Loading Web Service DOM...
-WorkspaceCUFinder_LOADING_CANCELED=JAX-WS DOM loading canceled
-JAXWS_DOM_LOADING=Loading DOM for JAX-WS Web Services
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/util/NamedExtensionInfo.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/util/NamedExtensionInfo.java
deleted file mode 100755
index 97ca51f..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/util/NamedExtensionInfo.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.util;
-
-import org.eclipse.jst.ws.jaxws.dom.runtime.INamedExtensionInfo;
-
-/**
- * Implementation class for {@link INamedExtensionInfo}.
- */
-public class NamedExtensionInfo implements INamedExtensionInfo
-{
- private final String id;
-
- private final String name;
-
- protected NamedExtensionInfo(final String pId, final String pLabel)
- {
- this.id = pId;
- this.name = pLabel;
- }
-
- public String getId()
- {
- return id;
- }
-
- public String getName()
- {
- return name;
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/util/XpUtil.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/util/XpUtil.java
deleted file mode 100755
index 46422b1..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/internal/util/XpUtil.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.internal.util;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.jst.ws.jaxws.utils.logging.ILogger;
-import org.eclipse.jst.ws.jaxws.utils.logging.Logger;
-
-
-/**
- * Utility class for working with extendion points.
- */
-public final class XpUtil
-{
- private static final String EXTENSION_NOT_PROPERLY_REGISTERED = "ConsumerType extension not properly registered (error in plugin.xml)"; //$NON-NLS-1$
-
- /** */
- public static final String XP_IMPLEMENTATION_ELEMENT = "implementation"; //$NON-NLS-1$
-
- /** */
- public static final String XP_IMPLEMENTATION_ELEMENT_CLASS_ATTR = "class"; //$NON-NLS-1$
-
- /**
- * Creates and returns a new instance of the executable extension.
- *
- * @param ext
- * @return instance of extention implementation
- */
- public static Object instantiateImplementation(final IExtension ext)
- {
- for (IConfigurationElement el : ext.getConfigurationElements())
- {
- if (el.getName().equals(XP_IMPLEMENTATION_ELEMENT))
- {
- try
- {
- return el.createExecutableExtension(XP_IMPLEMENTATION_ELEMENT_CLASS_ATTR);
- } catch (final CoreException e)
- {
- logger().logError("Unable to create extension", e); //$NON-NLS-1$
- throw new RuntimeException(e);
- }
- }
- }
- logger().logError(EXTENSION_NOT_PROPERLY_REGISTERED);
- throw new RuntimeException(EXTENSION_NOT_PROPERLY_REGISTERED);
- }
-
- private static ILogger logger()
- {
- return new Logger();
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IAnnotationSerializer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IAnnotationSerializer.java
deleted file mode 100755
index ac8eeee..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IAnnotationSerializer.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-import org.eclipse.emf.common.notify.Notification;
-
-/**
- * This interface should be implemented by classes that intend to do serialization for
- * DOM objects.
- *
- * @author Georgi Vachkov
- */
-public interface IAnnotationSerializer
-{
- public void save(final Notification msg);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/ICompilationUnitFinder.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/ICompilationUnitFinder.java
deleted file mode 100755
index 3d6690e..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/ICompilationUnitFinder.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WsDOMLoadCanceledException;
-
-/**
- * Implements a visitor pattern for traversing compilation unit. This interface does not define what set of compilation
- * units will be traveresed. This could be a single java project, the whole workspace or just a given package. The set of
- * traversed compilation units is left up to the implementation. Nevertheless as these compilation units are always contained
- * inside a java project, the </c>ICompilationUnitHandler.handleProject(IJavaProject)</c> has to be called exactly once to
- * notify the handler for each project being processed. The compilation unit handler will be first notified that the processing
- * of given project has began and immediately after this it will be notified for all annotations in this project discovered by
- * the given implementation.
- * @author Hristo Sabev
- *
- */
-public interface ICompilationUnitFinder
-{
- /**
- * Starts the traversal of compilation units
- * @param monitor - the progress monitor to be used for the traversal.
- * @param cuHandler - compilation unit handler to be notified for a given project
- * @throws CoreException - thrown if unexpected problem occurred while traversing annotations
- */
- public void find(IProgressMonitor monitor, ICompilationUnitHandler cuHandler) throws CoreException, WsDOMLoadCanceledException;
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/ICompilationUnitHandler.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/ICompilationUnitHandler.java
deleted file mode 100755
index 93a315c..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/ICompilationUnitHandler.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.IJavaProject;
-
-/**
- * A listener for events isseud by an <c>ICompilationUnitFinder</c> instance during compilation unit traversals
- *
- * @author Hristo Sabev
- *
- */
-public interface ICompilationUnitHandler
-{
- /**
- * called by the <c>{@link ICompilationUnitFinder}</c> instance when it has started to traverse the annotation set. All calls to <c>handle(...)</c>
- * methods is inside a started-finished block.
- */
- public void started();
-
- /**
- * called by the <c>{@link ICompilationUnitFinder}</c> instance when it has finished to traverse the annotation set.
- */
- public void finished();
-
- /**
- * Called when the <c>{@link ICompilationUnitFinder}</c> instance found a compilation unit. This method is awlays called after a call to <c>{@link #handle(JavaProject) handle(JavaProject)}</c>.
- * The reported compilation unit is guaranteed to be found inside the <c>JavaProject</c> reported by the last call to <c>{@link#handle(JavaProject) handle(JavaProject)}</c>.
- * This method will be called exactly once for each compilation unit
- *
- * @param cu -
- * the compilation unit found by the finder
- */
- public void handle(ICompilationUnit cu);
-
- /**
- * Called when the <c>{@link ICompilationUnitFinder}</c> instance found a java project. This method is always called before the <c>{@link #handle(ICompilationUnit)}</c>
- * for any compilation unit found in this project. This method will be called exactly once for each found project.
- *
- * @param jprj -
- * the java project found by the finder
- */
- public void handle(IJavaProject jprj);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IModelElementSynchronizer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IModelElementSynchronizer.java
deleted file mode 100755
index e00fc5f..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IModelElementSynchronizer.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-import org.eclipse.jdt.core.IJavaModel;
-import org.eclipse.jst.ws.jaxws.dom.runtime.DomUtil;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomFactory;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource.ServiceModelData;
-import org.eclipse.jst.ws.jaxws.utils.logging.ILogger;
-
-public interface IModelElementSynchronizer
-{
- public DomUtil util();
- public ServiceModelData serviceData();
- public ILogger logger();
- public IDOM getDomBeingLoaded();
- public DomFactory domFactory();
- public IJavaModel javaModel();
- public JaxWsWorkspaceResource resource();
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IProjectSelector.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IProjectSelector.java
deleted file mode 100755
index b5ad5fd..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/IProjectSelector.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-import org.eclipse.jdt.core.IJavaProject;
-
-/**
- * Specifies what java projects will be traversed by a given <c>ICompilationUnitFinder</c> instance. If any of the registered
- * selectors approved the project i.e. <c>IProjectSelector.approve(IJavaProject)</c> returned true, then this project will
- * be traversed. I.e. the project needs to be rejected by all the selectors in order not to be traversed.
- *
- * An implementation of this interface should reject a project that it has no knowledge about.
- * @author Hristo Sabev
- *
- */
-public interface IProjectSelector
-{
- /**
- * Approves the specified project for traversal
- * @param prj - the project to approve or reject
- * @return - true if the project should be traversed according to this selector, false otherwise.
- */
- public boolean approve(IJavaProject prj);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/JaxWsDefaultsCalculator.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/JaxWsDefaultsCalculator.java
deleted file mode 100755
index db9d77e..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/JaxWsDefaultsCalculator.java
+++ /dev/null
@@ -1,185 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-
-/**
- * Contains utility methods for calculating default values of some attributes/properties in
- * annotations and DOM objects.
- *
- * @author Georgi Vachkov
- */
-public class JaxWsDefaultsCalculator
-{
- private static final String ARG = "arg"; //$NON-NLS-1$
- private static final String RETURN = "return"; //$NON-NLS-1$
- private static final String RESPONSE = "Response"; //$NON-NLS-1$
-
- /**
- * Defines the SOAPBindingStyle. If there is a value for style attribute in <code>sbAnnotation</code> returns that value
- * otherwise returns the default value for this attribute.
- * @param sbAnnotation
- * @return the style
- */
- public SOAPBindingStyle defineSBStyle(final IAnnotation<? extends IJavaElement> sbAnnotation)
- {
- final String value = sbAnnotation!=null ? sbAnnotation.getPropertyValue(SBAnnotationFeatures.STYLE_ATTRIBUTE) : null;
- if (value!=null && SBAnnotationFeatures.SB_STYLE_RPC.endsWith(value.trim())) {
- return SOAPBindingStyle.RPC;
- }
-
- return SOAPBindingStyle.DOCUMENT;
- }
-
- /**
- * Defines the SOAPBindingUse. If there is a value for use attribute in <code>sbAnnotation</code> returns that value
- * otherwise returns the default value for this attribute.
- * @param sbAnnotation
- * @return the style
- */
- public SOAPBindingUse defineSBUse(final IAnnotation<? extends IJavaElement> sbAnnotation) {
- final String value = sbAnnotation!=null ? sbAnnotation.getPropertyValue(SBAnnotationFeatures.USE_ATTRIBUTE) : null;
- if(value!=null && SBAnnotationFeatures.SB_USE_ENCODED.endsWith(value.trim())) {
- return SOAPBindingUse.ENCODED;
- }
-
- return SOAPBindingUse.LITERAL;
- }
-
- /**
- * Defines the SOAPBindingUse. If there is a value for parameterStyle attribute in <code>sbAnnotation</code>
- * returns that value otherwise returns the default value for this attribute.
- * @param sbAnnotation
- * @return the style
- */
- public SOAPBindingParameterStyle defineSBParameterStyle(final IAnnotation<? extends IJavaElement> sbAnnotation)
- {
- final String value = sbAnnotation!=null ? sbAnnotation.getPropertyValue(SBAnnotationFeatures.PARAMETER_STYLE_ATTRIBUTE) : null;
- if (value!=null && SBAnnotationFeatures.SB_PARAMETER_STYLE_BARE.endsWith(value.trim())) {
- return SOAPBindingParameterStyle.BARE;
- }
-
- return SOAPBindingParameterStyle.WRAPPED;
- }
-
- /**
- * Defines the default operation parameter name according to JSR-181 point 4.4 - WebParam name
- * attribute
- * @param webMethod the method holding the parameter
- * @param paramPosition the parameter position in method arguments list starting with 0
- * @return calculated name
- */
- public String calcWebParamDefaultName(final IWebMethod webMethod, final int paramPosition)
- {
- if(webMethod.getSoapBindingStyle()==SOAPBindingStyle.DOCUMENT &&
- webMethod.getSoapBindingParameterStyle()==SOAPBindingParameterStyle.BARE)
- {
- return webMethod.getName();
- }
-
- return ARG + paramPosition;
- }
-
- /**
- * Defines the default operation parameter name according to JSR-181 point 4.4 - WebParam name
- * attribute
- * @param webParam
- * @return
- */
- public String calcWebParamDefaultName(final IWebParam webParam)
- {
- final IWebMethod webMethod = (IWebMethod)webParam.eContainer();
- return calcWebParamDefaultName(webMethod, getParamPosition(webMethod, webParam));
- }
-
- /**
- * Calculates the position of <code>param</code> in <code>method</code> signature starting from 0
- * @param webMethod
- * @param param
- * @return the param position
- * @throws IllegalArgumentException in case <code>webMethod</code> does not contain <code>param</code>
- */
- protected int getParamPosition(final IWebMethod webMethod, final IWebParam param)
- {
- int position = 0;
- for (IWebParam webParam : webMethod.getParameters())
- {
- if (webParam.getImplementation().equals("return")) {//$NON-NLS-1$
- continue;
- }
-
- if (webParam==param) {
- return position;
- }
-
- position++;
- }
-
- throw new IllegalStateException("Parameter[" + param.getImplementation() + "] was not found in method [" + webMethod.getImplementation() + "]");//$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
- }
-
- /**
- * Defines the default operation parameter name according to JSR-181 point 4.4 - WebParam target NS.
- * @param webMethod the method holding the parameter
- * @param webParam
- * @return calculated NS
- */
- public String calcWebParamDefaultTargetNS(final IWebMethod webMethod, final IWebParam webParam)
- {
- if(webMethod.getSoapBindingStyle()==SOAPBindingStyle.DOCUMENT &&
- webMethod.getSoapBindingParameterStyle()==SOAPBindingParameterStyle.WRAPPED &&
- !webParam.isHeader())
- {
- return "";//$NON-NLS-1$
- }
-
- return ((IServiceEndpointInterface)webMethod.eContainer()).getTargetNamespace();
- }
-
- /**
- * @return the default kind for web parameters - returns {@link WebParamKind#IN}
- */
- public WebParamKind getDefaultParamKind() {
- return WebParamKind.IN;
- }
-
- /**
- * @return false because the default value for WebParam(header) is false
- */
- public boolean getDefaultParamInHedaer() {
- return false;
- }
-
- /**
- * Defines the default operation parameter name according to JSR-181 point 4.5 - WebResult name.
- * @param webMethod the method holding the parameter
- * @return calculated name
- */
- public String calcWebResultDefaultName(final IWebMethod webMethod)
- {
- if(webMethod.getSoapBindingStyle()==SOAPBindingStyle.DOCUMENT &&
- webMethod.getSoapBindingParameterStyle()==SOAPBindingParameterStyle.BARE)
- {
- return webMethod.getName() + RESPONSE;
- }
-
- return RETURN;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/JaxWsWorkspaceResource.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/JaxWsWorkspaceResource.java
deleted file mode 100755
index 1095cde..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/JaxWsWorkspaceResource.java
+++ /dev/null
@@ -1,326 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jdt.core.ElementChangedEvent;
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.IElementChangedListener;
-import org.eclipse.jdt.core.IJavaModel;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WsDOMLoadCanceledException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.serializer.SerializerAdapterFactory;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync.InitialModelSynchronizer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync.OnEventModelSynchronizer;
-import org.eclipse.jst.ws.jaxws.utils.annotations.AnnotationFactory;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotationInspector;
-import org.eclipse.jst.ws.jaxws.utils.facets.FacetUtils;
-import org.eclipse.jst.ws.jaxws.utils.facets.IFacetUtils;
-import org.eclipse.jst.ws.jaxws.utils.logging.ILogger;
-import org.eclipse.jst.ws.jaxws.utils.logging.Logger;
-
-/**
- * Represents the resource for JAX-WS web service DOM model. This class is responsible for loading the
- * model. It is capable to use {@link IProgressMonitor} to track progress and cancel requests.
- *
- * @author
- */
-public class JaxWsWorkspaceResource extends NonStreamResource
-{
- private final IJavaModel javaModel;
- private final ServiceModelData serviceData;
- private final OnEventModelSynchronizer modelSynchronizer;
- private final SerializerAdapterFactory serializerFactory;
-
- private IProgressMonitor monitor;
-
- private boolean saveEnabled;
- private boolean loadCnaceled;
-
- /**
- * Constructor
- * @param javaModel
- */
- public JaxWsWorkspaceResource(final IJavaModel javaModel)
- {
- this.javaModel = javaModel;
- serviceData = new ServiceModelData();
- modelSynchronizer = new OnEventModelSynchronizer(this, serviceData);
- saveEnabled = true;
- serializerFactory = new SerializerAdapterFactory(this);
- }
-
- /**
- * Set progress monitor in case the processing progress should be tracked and
- * also in case it is expected that the processing can be canceled
- * @param pm the monitor - can be <code>null</code>
- */
- public void setProgressMonitor(IProgressMonitor pm)
- {
- this.monitor = pm;
- }
-
- /**
- * @return the loaded DOM in case it is successfully loaded. This method will return <code>null</code>
- * in case loading has not been started at all or in case loading has been canceled. To check if the
- * loading has been canceled call isLoadingCanceled().
- */
- public IDOM getDOM()
- {
- if (getContents().size() == 0) {
- return null;
- }
-
- return (IDOM) getContents().get(0);
- }
-
- /**
- * Adds listener for changes to Java elements in order to keep the model in sync
- * with these changes
- */
- public void startSynchronizing()
- {
- JavaCore.addElementChangedListener(modelSynchronizer, ElementChangedEvent.POST_RECONCILE | ElementChangedEvent.POST_CHANGE);
- }
-
- /**
- * Removes listener for changes to Java elements. Keep in mind that after calling
- * this method changes in java elements will not be reflected in DOM model
- */
- public void stopSynchronizing()
- {
- JavaCore.removeElementChangedListener(modelSynchronizer);
- }
-
- /**
- * @return the logger to use when some event needs to be logged
- */
- public ILogger logger()
- {
- return new Logger();
- }
-
- /**
- * @return the java model
- */
- public IJavaModel javaModel()
- {
- return javaModel;
- }
-
- @Override
- protected void doLoad(final Map<?, ?> options) throws IOException
- {
- loadCnaceled = false;
- getContents().clear();
-
- final IWorkspaceRunnable runnable = new IWorkspaceRunnable()
- {
- public void run(final IProgressMonitor subMonitor) throws CoreException
- {
- try
- {
- new InitialModelSynchronizer(JaxWsWorkspaceResource.this, serviceData).load(options, subMonitor);
- }
- catch (WsDOMLoadCanceledException e) {
- loadCnaceled = true;
- logger().logError("JAX WS Web Services DOM loading has been canceled by the user, some JAX WS Web Services functionalities won't be available", e); //$NON-NLS-1$
- }
- }
- };
-
- try {
- javaModel().getWorkspace().run(runnable, monitor);
- }
- catch (CoreException ce) {
- throw new IOWrappedException(ce);
- }
- }
-
- @Override
- protected void doSave(Map<?, ?> options) throws IOException {
- // no processing needed
- }
-
- protected IElementChangedListener getSynchronizingListener() {
- return modelSynchronizer;
- }
-
- /**
- * Creates compilation unit finder that crawls through javaModel and calls
- * compilation unit handler to process available CU's
- * @param jModel
- * @param projectSelectors
- * @return non <code>null</code> {@link ICompilationUnitFinder} instance
- */
- public ICompilationUnitFinder newCompilationUnitFinder(final IJavaModel jModel, final IProjectSelector[] projectSelectors)
- {
- return new WorkspaceCUFinder(jModel, projectSelectors);
- }
-
- /**
- * Approves that <code>prj</code> is JAX-WS web service enabled
- * @param prj
- * @return <code>true</code> in case this project might contain JAX-WS web services
- */
- public boolean approveProject(final IJavaProject prj)
- {
- final IFacetUtils facetUtils = new FacetUtils();
- try {
- return facetUtils.hasFacetWithVersion(prj.getProject(), FacetUtils.EJB_30_FACET_VERSION, FacetUtils.EJB_30_FACET_ID, true)
- || facetUtils.hasFacetWithVersion(prj.getProject(), FacetUtils.WEB_25_FACET_VERSION, FacetUtils.WEB_25_FACET_ID, true);
- } catch (CoreException ce)
- {
- logger().logError("Unable to read facet on project " + prj.getElementName() + ". Any Web Service elements in this project will not be shown in the navigation tree", ce); //$NON-NLS-1$ //$NON-NLS-2$
- return false;
- }
- }
-
- /**
- * Creates new instance of {@link IAnnotationInspector} for <code>type</code>
- * @param type
- * @return non <code>null</code> inspector
- */
- public IAnnotationInspector newAnnotationInspector(final IType type)
- {
- return AnnotationFactory.createAnnotationInspector(type);
- }
-
- /**
- * @return non empty array of projects selectors responsible for filtering processed projects
- */
- public IProjectSelector[] getProjectSelectors()
- {
- return new IProjectSelector[] { new IProjectSelector()
- {
- public boolean approve(IJavaProject prj)
- {
- return approveProject(prj);
- }
- } };
- }
-
- /**
- * @return the serializer factory used to adapt DOM objects with serializer adapters
- */
- public SerializerAdapterFactory getSerializerFactory() {
- return serializerFactory;
- }
-
- /**
- * @return <code>true</code> if the saving is enabled
- */
- public boolean isSaveEnabled() {
- return saveEnabled;
- }
-
- /**
- * call this method to enable saving of model objects to underlying resources
- */
- synchronized public void enableSaving() {
- this.saveEnabled = true;
- }
-
- /**
- * call this method to disable saving of model objects to underlying resources
- */
- synchronized public void disableSaving() {
- this.saveEnabled = false;
- }
-
- /**
- * @return <code>true</code> in case the load of DOM model has been canceled
- */
- public boolean isLoadCnaceled() {
- return loadCnaceled;
- }
-
- /**
- * Holds model data helpful in model processing
- */
- public class ServiceModelData
- {
- private Map<IWebService, String> ws2sei = new HashMap<IWebService, String>();
-
- private Map<String, Collection<IWebService>> sei2ws = new HashMap<String, Collection<IWebService>>();
-
- private Map<String, Collection<ICompilationUnit>> type2inherited = new HashMap<String, Collection<ICompilationUnit>>();
-
- public void map(IWebService ws, String seiImpl)
- {
- ws2sei.put(ws, seiImpl);
- getImplementingWs(seiImpl).add(ws);
- }
-
- String getSeiImpl(IWebService ws)
- {
- return ws2sei.get(ws);
- }
-
- public Collection<IWebService> getImplementingWs(String seiIml)
- {
- Collection<IWebService> wss = sei2ws.get(seiIml);
- if (wss == null)
- {
- wss = new ArrayList<IWebService>();
- sei2ws.put(seiIml, wss);
- }
- return wss;
- }
-
- public void unmap(IWebService ws)
- {
- final String sei = ws2sei.remove(ws);
- final Collection<IWebService> implementingWebServices = getImplementingWs(sei);
- implementingWebServices.remove(ws);
- if (implementingWebServices.size() == 0)
- {
- sei2ws.remove(sei);
- }
- }
-
- public void recordHierarchy(String fqName, Collection<ICompilationUnit> inheritedTypes)
- {
- type2inherited.put(fqName, inheritedTypes);
- }
-
- /**
- * @param fqName the fully qualified class name
- * @return collection of classes that are super for class <code>fqName</code>
- */
- public Collection<ICompilationUnit> getHierarchy(String fqName)
- {
- return type2inherited.get(fqName);
- }
-
- /**
- * Clears recorder hierarchy for class with FQName <code>fqName</code>
- * @param fqName
- */
- public void clearHierarchy(String fqName)
- {
- type2inherited.remove(fqName);
- }
-
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/Jee5WsDomRuntimeExtension.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/Jee5WsDomRuntimeExtension.java
deleted file mode 100755
index 8f12d2c..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/Jee5WsDomRuntimeExtension.java
+++ /dev/null
@@ -1,135 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jdt.core.IJavaModel;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWsDOMRuntimeExtension;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWsDomLoadListener;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WsDOMLoadCanceledException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.internal.plugin.JaxWsDomRuntimeMessages;
-
-import static org.eclipse.jst.ws.jaxws.utils.ContractChecker.nullCheckParam;
-
-public class Jee5WsDomRuntimeExtension implements IWsDOMRuntimeExtension
-{
- public static final String ID = "org.eclipse.jst.ws.jaxws.dom.jee5";//$NON-NLS-1$
-
- private List<IWsDomLoadListener> listeners = new ArrayList<IWsDomLoadListener>();
- private JaxWsWorkspaceResource workspaceResource;
- private boolean finished;
- private boolean started;
-
- public void createDOM(final IProgressMonitor monitor) throws IOException, WsDOMLoadCanceledException
- {
- Job.getJobManager().beginRule(ResourcesPlugin.getWorkspace().getRoot(), monitor);
- try {
- if (workspaceResource == null || workspaceResource.isLoadCnaceled()) {
- performLoad(monitor);
- }
- } finally {
- Job.getJobManager().endRule(ResourcesPlugin.getWorkspace().getRoot());
- }
- }
-
- private void performLoad(final IProgressMonitor monitor) throws IOException, WsDOMLoadCanceledException
- {
- workspaceResource = createResource();
- workspaceResource.setProgressMonitor(monitor);
- try {
- started();
- workspaceResource.load(null);
- if (workspaceResource.isLoadCnaceled()) {
- throw createCanceledException();
- }
- } finally {
- finished();
- }
-
- workspaceResource.startSynchronizing();
- }
-
- public IDOM getDOM() throws WsDOMLoadCanceledException
- {
- if (workspaceResource == null) {
- return null;
- }
-
- if (workspaceResource.isLoadCnaceled()) {
- throw createCanceledException();
- }
-
- return workspaceResource.getDOM();
- }
-
- public void addLoadListener(IWsDomLoadListener listener)
- {
- nullCheckParam(listener, "listener");//$NON-NLS-1$
-
- synchronized (listeners) {
- listeners.add(listener);
- }
-
- if (started) {
- listener.started();
- }
-
- if (finished) {
- listener.finished();
- }
- }
-
- public void removeLoadListener(IWsDomLoadListener listener)
- {
- nullCheckParam(listener, "listener");//$NON-NLS-1$
-
- synchronized (listeners) {
- listeners.remove(listener);
- }
- }
-
- protected IJavaModel javaModel() {
- return JavaCore.create(ResourcesPlugin.getWorkspace().getRoot());
- }
-
- protected JaxWsWorkspaceResource createResource() {
- return new JaxWsWorkspaceResource(javaModel());
- }
-
- protected void finished()
- {
- finished = true;
- for (IWsDomLoadListener listener : listeners) {
- listener.finished();
- }
- }
-
- protected void started()
- {
- started = true;
- finished = false;
- for (IWsDomLoadListener listener : listeners) {
- listener.started();
- }
- }
-
- private WsDOMLoadCanceledException createCanceledException() {
- return new WsDOMLoadCanceledException("JAX-WS DOM loading canceled", JaxWsDomRuntimeMessages.WorkspaceCUFinder_LOADING_CANCELED); //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/NonStreamResource.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/NonStreamResource.java
deleted file mode 100755
index 8f6a5ae..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/NonStreamResource.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.util.Map;
-import java.util.zip.ZipEntry;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.resource.impl.ResourceImpl;
-
-public abstract class NonStreamResource extends ResourceImpl {
-
- /**
- * Since this Resource is not stream based, this method should never be called.
- * If called it will throw <c>UnsupportedException</c>
- * @param arg0 - ignorred
- */
- @Override
- protected final void doLoad(InputStream inputStream, Map<?,?> options) throws IOException {
- super.doLoad(inputStream, options);
- }
-
- /**
- * Since this Resource is not stream based, this method should never be called.
- * If called it will throw <c>UnsupportedException</c>
- * @param arg0 - ignorred
- */
- @Override
- protected final void doSave(OutputStream arg0, Map<?,?> arg1) throws IOException {
- super.doSave(arg0, arg1);
- }
-
- /**
- * Allwasy throws <c>UnsupportedOperationException</c>. Streams are not supported by this resource.
- * @return nothing. this method allways throws <c>UnsupportedOperationException</c>
- */
- @Override
- protected final boolean isContentZipEntry(ZipEntry arg0) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Since this resource doesn't support streams this method should never be called. Allwasy throws <c>UnsupportedOperationException</c>.
- * @return nothing. this method allways throws <c>UnsupportedOperationException</c>
- */
- @Override
- protected final ZipEntry newContentZipEntry() {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Since this resource doesn't support streams this method should never be called. Allwasy throws <c>UnsupportedOperationException</c>.
- * @return nothing. this method allways throws <c>UnsupportedOperationException</c>
- */
- @Override
- protected final boolean useZip() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public final void load(Map<?,?> options) throws IOException {
-
- if (!isLoaded()) {
- Notification notification = setLoaded(true);
- isLoading = true;
- if (errors != null) {
- errors.clear();
- }
- if (warnings != null) {
- warnings.clear();
- }
- try {
- Map<?,?> mergedOptions = mergeMaps(options, defaultLoadOptions);
- doLoad(mergedOptions);
- } finally {
-
- isLoading = false;
- if (notification != null) {
- eNotify(notification);
- }
- setModified(false);
- }
- }
- }
-
- /**
- * Called to load the resource using no streams.
- *
- * @param options - options supplied by the caller. This metod will ignore any options that it doesn't recognize. The keys and the values can be arbitrary objects.
- * @throws IOException - thrown if error occurred while loading the content of this resource
- */
- abstract protected void doLoad(Map<?,?> options) throws IOException;
-
- @Override
- public final void save(Map<?,?> options) throws IOException {
- if (errors != null)
- {
- errors.clear();
- }
- if (warnings != null)
- {
- warnings.clear();
- }
- Map<?,?> mergedOptions = mergeMaps(options, defaultSaveOptions);
- doSave(mergedOptions);
- setModified(false);
- }
-
- /**
- * Called to save the resource using no streams.
- * @param options - options supplied by the caller. This metod will ignore any options that it doesn't recognize. The keys and the values can be arbitrary objects.
- * @throws IOException - if problem during the saving occurred.
- */
- protected abstract void doSave(Map<?,?> options) throws IOException;
-
-
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/SBAnnotationFeatures.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/SBAnnotationFeatures.java
deleted file mode 100755
index 3a81fb7..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/SBAnnotationFeatures.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-/**
- * Contains SOAPBinding annotation name, attributes and possible values
- *
- * @author Georgi Vachkov
- */
-public class SBAnnotationFeatures
-{
- public static final String SB_ANNOTATION = "javax.jws.soap.SOAPBinding";//$NON-NLS-1$
- public static final String STYLE_ATTRIBUTE = "style";//$NON-NLS-1$
- public static final String USE_ATTRIBUTE = "use";//$NON-NLS-1$
- public static final String PARAMETER_STYLE_ATTRIBUTE = "parameterStyle";//$NON-NLS-1$
-
- public static final String SB_STYLE_DOCUMENT = SB_ANNOTATION + ".Style.DOCUMENT";//$NON-NLS-1$
- public static final String SB_STYLE_RPC = SB_ANNOTATION + ".SOAPBinding.Style.RPC";//$NON-NLS-1$
-
- public static final String SB_USE_LITERAL = SB_ANNOTATION + ".Use.LITERAL";//$NON-NLS-1$
- public static final String SB_USE_ENCODED = SB_ANNOTATION + ".Use.ENCODED";//$NON-NLS-1$
-
- public static final String SB_PARAMETER_STYLE_BARE = SB_ANNOTATION + ".ParameterStyle.BARE";//$NON-NLS-1$
- public static final String SB_PARAMETER_STYLE_WRAPPED = SB_ANNOTATION + ".ParameterStyle.WRAPPED";//$NON-NLS-1$
-
-
- private SBAnnotationFeatures() {
- // no instance of this class allowed
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WMAnnotationFeatures.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WMAnnotationFeatures.java
deleted file mode 100755
index 14989cf..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WMAnnotationFeatures.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-public final class WMAnnotationFeatures
-{
-
- public static final String WM_ANNOTATION = "javax.jws.WebMethod";//$NON-NLS-1$
-
- public static final String WM_NAME_ATTRIBUTE = "operationName";//$NON-NLS-1$
-
- public static final String WM_EXCLUDED_ATTRIBUTE = "exclude";//$NON-NLS-1$
-
- private WMAnnotationFeatures()
- {
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WPAnnotationFeatures.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WPAnnotationFeatures.java
deleted file mode 100755
index 47c32f7..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WPAnnotationFeatures.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-
-/**
- * Class that holds information on javax.jws.WebParam annotation name and attribute names.
- *
- * @author Georgi Vachkov
- */
-final public class WPAnnotationFeatures
-{
- public static final String WP_ANNOTATION = "javax.jws.WebParam";//$NON-NLS-1$
- public static final String NAME_ATTRIBUTE = "name";//$NON-NLS-1$
- public static final String PART_NAME_ATTRIBUTE = "partName";//$NON-NLS-1$
- public static final String TARGET_NAMESPACE_ATTRIBUTE = "targetNamespace";//$NON-NLS-1$
- public static final String MODE_ATTRIBUTE = "mode";//$NON-NLS-1$
- public static final String HEADER_ATTRIBUTE = "header";//$NON-NLS-1$
-
- public static final String WEB_PARAM_MODE = "javax.jws.WebParam.Mode";//$NON-NLS-1$
- public static final String WEB_PARAM_MODE_IN = WEB_PARAM_MODE + ".IN";//$NON-NLS-1$
- public static final String WEB_PARAM_MODE_OUT = WEB_PARAM_MODE + ".OUT";//$NON-NLS-1$
- public static final String WEB_PARAM_MODE_INOUT = WEB_PARAM_MODE + ".INOUT";//$NON-NLS-1$
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WSAnnotationFeatures.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WSAnnotationFeatures.java
deleted file mode 100755
index 09f15f0..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WSAnnotationFeatures.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-final public class WSAnnotationFeatures
-{
- private WSAnnotationFeatures()
- {
- }
- public static final String WS_ANNOTATION = "javax.jws.WebService";//$NON-NLS-1$
- public static final String NAME_ATTRIBUTE = "name";//$NON-NLS-1$
- public static final String ENDPOINT_INTERFACE_ATTRIBUTE = "endpointInterface";//$NON-NLS-1$
- public static final String SERVICE_NAME_ATTRIBUTE = "serviceName";//$NON-NLS-1$
- public static final String WSDL_LOCATION_ATTRIBUTE = "wsdlLocation";//$NON-NLS-1$
- public static final String TARGET_NAMESPACE_ATTRIBUTE = "targetNamespace";//$NON-NLS-1$
- public static final String PORT_NAME_ATTRIBUTE = "portName"; //$NON-NLS-1$
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WorkspaceCUFinder.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WorkspaceCUFinder.java
deleted file mode 100755
index 9dc8f36..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/WorkspaceCUFinder.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.IJavaModel;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WsDOMLoadCanceledException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.internal.plugin.JaxWsDomRuntimeMessages;
-
-public class WorkspaceCUFinder implements ICompilationUnitFinder
-{
- private final IJavaModel javaModel;
- private final IProjectSelector[] selectors;
-
- public WorkspaceCUFinder(IJavaModel javaModel, IProjectSelector[] selectors) {
- if (javaModel == null) {
- throw new NullPointerException("javaModel");//$NON-NLS-1$
- }
- this.javaModel = javaModel;
- if (selectors == null) {
- throw new NullPointerException("selector");//$NON-NLS-1$
- }
- this.selectors = selectors;
- }
-
- public void find(final IProgressMonitor monitor, final ICompilationUnitHandler cuHandler) throws CoreException, WsDOMLoadCanceledException
- {
- cuHandler.started();
- if (monitor != null) {
- monitor.beginTask(JaxWsDomRuntimeMessages.JAXWS_DOM_LOADING, assumeWork());
- }
- try {
- for (IJavaProject prj : javaModel.getJavaProjects())
- {
- if (monitor!=null && monitor.isCanceled()) {
- throw new WsDOMLoadCanceledException("JAX-WS DOM loading canceled", JaxWsDomRuntimeMessages.WorkspaceCUFinder_LOADING_CANCELED); //$NON-NLS-1$
- }
-
- if (approve(prj))
- {
- cuHandler.handle(prj);
- parseProject(prj, monitor, cuHandler);
- }
- }
- cuHandler.finished();
- } finally {
- if (monitor != null) {
- monitor.done();
- }
- }
- }
-
- protected int assumeWork() throws CoreException, WsDOMLoadCanceledException
- {
- final CountingCUHandler countingHandler = new CountingCUHandler();
- for (IJavaProject prj : javaModel.getJavaProjects()) {
- if (approve(prj)) {
- parseProject(prj, new NullProgressMonitor(), countingHandler);
- }
- }
-
- return countingHandler.count;
- }
-
- private void parseProject(final IJavaProject prj, final IProgressMonitor monitor, final ICompilationUnitHandler cuHandler) throws JavaModelException, WsDOMLoadCanceledException
- {
- for (IPackageFragment packageFragment : prj.getPackageFragments())
- {
- if (packageFragment.getKind() != IPackageFragmentRoot.K_SOURCE) {
- continue;
- }
-
- for (ICompilationUnit cu : packageFragment.getCompilationUnits())
- {
- if (monitor!=null && monitor.isCanceled()) {
- throw new WsDOMLoadCanceledException("JAX-WS DOM loading canceled",JaxWsDomRuntimeMessages.WorkspaceCUFinder_LOADING_CANCELED); //$NON-NLS-1$
- }
-
- cuHandler.handle(cu);
-
- if (monitor != null) {
- monitor.worked(1);
- }
- }
- }
- }
-
- private boolean approve(IJavaProject prj) {
- for (IProjectSelector selector : selectors) {
- if (selector.approve(prj)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * This handler counts the compilation units
- *
- * @author Georgi Vachkov
- */
- protected class CountingCUHandler implements ICompilationUnitHandler
- {
- private int count;
-
- public void started() {
- count = 0;
- }
-
- public void handle(ICompilationUnit cu) {
- count++;
- }
-
- public void finished() { /* no processing needed */ }
- public void handle(IJavaProject jprj) { /* no processing needed */ }
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/AnnotationAdapterFactory.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/AnnotationAdapterFactory.java
deleted file mode 100755
index feafaf3..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/AnnotationAdapterFactory.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation.impl.AnnotationAdapter;
-
-/**
- * Factory that adapts DOM objects to {@link IAnnotationAdapter} interface.
- *
- * @author Georgi Vachkov
- */
-public class AnnotationAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * Singleton - use this static instance to adapt objects
- */
- public static final AnnotationAdapterFactory INSTANCE = new AnnotationAdapterFactory();
-
- private AnnotationAdapterFactory() {
- // singleton
- }
-
- @Override
- public boolean isFactoryForType(Object type) {
- return type == IAnnotationAdapter.class;
- }
-
- @Override
- protected Adapter createAdapter(Notifier target)
- {
- return new AnnotationAdapter();
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/IAnnotationAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/IAnnotationAdapter.java
deleted file mode 100755
index df42752..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/IAnnotationAdapter.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation;
-
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-
-/**
- * Adapter that holds location information for the annotations applied on the
- * java artifact/s which is represent by the DOM object adapted to this interface.
- *
- * @author Georgi Vachkov
- */
-public interface IAnnotationAdapter
-{
- /**
- * Provides the {@link IAnnotation} for annotation with <code>annFQName</code>.
- * @param annFQName the fully qualified name of the annotation
- * @return locator instance or <code>null</code> if not existing
- */
- public IAnnotation<? extends IJavaElement> getAnnotation(String annFQName);
-
- /**
- * Adds annotation to the list of used annotations.
- * <code>annotation</code> can be <code>null</code> then the locator for this annotation
- * is removed.
- * @param annFQName the fully qualified name of the annotation
- * @param annotation th annotation instance
- */
- public void addAnnotation(String annFQName, IAnnotation<? extends IJavaElement> annotation);
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/impl/AnnotationAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/impl/AnnotationAdapter.java
deleted file mode 100755
index 9d6fbb8..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/annotation/impl/AnnotationAdapter.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation.IAnnotationAdapter;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-
-import static org.eclipse.jst.ws.jaxws.utils.ContractChecker.nullCheckParam;
-
-/**
- * Implementation of {@link ILocatorAdapter}.
- *
- * @author Georgi Vachkov
- */
-public class AnnotationAdapter extends AdapterImpl implements IAnnotationAdapter
-{
- private final Map<String, IAnnotation<? extends IJavaElement>> annotationLocators;
-
- /**
- * Constructor
- */
- public AnnotationAdapter() {
- annotationLocators = new HashMap<String, IAnnotation<? extends IJavaElement>>();
- }
-
- public IAnnotation<? extends IJavaElement> getAnnotation(final String annotationFQName)
- {
- nullCheckParam(annotationFQName, "annotationFQName");//$NON-NLS-1$
- return annotationLocators.get(annotationFQName);
- }
-
- public void addAnnotation(final String annFQName, final IAnnotation<? extends IJavaElement> annotation)
- {
- nullCheckParam(annFQName, "annFQName");//$NON-NLS-1$
- annotationLocators.put(annFQName, annotation);
- }
-
- @Override
- public boolean isAdapterForType(Object type) {
- return IAnnotationAdapter.class == type;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/MethodPropertyDefaultsAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/MethodPropertyDefaultsAdapter.java
deleted file mode 100755
index f3b74b9..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/MethodPropertyDefaultsAdapter.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.defaults;
-
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyDefaults;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-
-/**
- * Adapter that gives default values for {@link IWebMethod} objects
- *
- * @author Georgi Vachkov
- */
-public class MethodPropertyDefaultsAdapter extends AdapterImpl implements IPropertyDefaults
-{
- @Override
- public boolean isAdapterForType(Object type) {
- return IPropertyDefaults.class == type;
- }
-
- public Object getDefault(final EStructuralFeature feature)
- {
- final IWebMethod webMethod = (IWebMethod)getTarget();
- switch(feature.getFeatureID())
- {
- case DomPackage.IWEB_METHOD__NAME:
- return getMethodName(webMethod);
- }
-
- return webMethod.eGet(feature);
- }
-
- private String getMethodName(final IWebMethod webMethod)
- {
- int pos = webMethod.getImplementation().indexOf('(');
- if (pos > -1) {
- return webMethod.getImplementation().substring(0, pos);
- }
-
- return webMethod.getImplementation();
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/ParameterPropertyDefaultsAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/ParameterPropertyDefaultsAdapter.java
deleted file mode 100755
index cbb9e1a..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/ParameterPropertyDefaultsAdapter.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.defaults;
-
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyDefaults;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsDefaultsCalculator;
-
-/**
- * Class that defines which properties for {@link IWebParam} are editable
- *
- * @author Georgi Vachkov
- */
-public class ParameterPropertyDefaultsAdapter extends AdapterImpl implements IPropertyDefaults
-{
- private final JaxWsDefaultsCalculator defCalc = new JaxWsDefaultsCalculator();
-
- @Override
- public boolean isAdapterForType(Object type) {
- return IPropertyDefaults.class == type;
- }
-
- public Object getDefault(EStructuralFeature feature)
- {
- assert getTarget() instanceof IWebParam;
-
- final IWebParam webParam = (IWebParam)getTarget();
-
- switch(feature.getFeatureID())
- {
- case DomPackage.IWEB_PARAM__NAME:
- return defCalc().calcWebParamDefaultName(webParam);
- case DomPackage.IWEB_PARAM__PART_NAME:
- return defCalc().calcWebParamDefaultName(webParam);
- case DomPackage.IWEB_PARAM__TARGET_NAMESPACE:
- return defCalc().calcWebParamDefaultTargetNS((IWebMethod)webParam.eContainer(), webParam);
- case DomPackage.IWEB_PARAM__HEADER:
- return defCalc().getDefaultParamInHedaer();
- case DomPackage.IWEB_PARAM__KIND:
- return defCalc().getDefaultParamKind();
- }
-
- return webParam.eGet(feature);
- }
-
- protected JaxWsDefaultsCalculator defCalc() {
- return defCalc;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/PropertyDefaultsAdapterFactory.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/PropertyDefaultsAdapterFactory.java
deleted file mode 100755
index c82be5f..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/PropertyDefaultsAdapterFactory.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.defaults;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyDefaults;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyState;
-import org.eclipse.jst.ws.jaxws.dom.runtime.util.DomAdapterFactory;
-
-/**
- * Adapter factory for adapters implementing {@link IPropertyState} interface.
- *
- * @author Georgi Vachkov
- */
-public class PropertyDefaultsAdapterFactory extends DomAdapterFactory
-{
- /**
- * Singleton instance for this adapter factory
- */
- public static final PropertyDefaultsAdapterFactory INSTANCE = new PropertyDefaultsAdapterFactory();
-
- @Override
- public boolean isFactoryForType(Object object) {
- return IPropertyDefaults.class == object;
- }
-
- @Override
- public Adapter createIWebServiceAdapter() {
- return new WsPropertyDefaultsAdapter();
- }
-
- @Override
- public Adapter createIServiceEndpointInterfaceAdapter() {
- return new SeiPropertyDefaultsAdapter();
- }
-
- @Override
- public Adapter createIWebMethodAdapter() {
- return new MethodPropertyDefaultsAdapter();
- }
-
- @Override
- public Adapter createIWebParamAdapter(){
- return new ParameterPropertyDefaultsAdapter();
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/SeiPropertyDefaultsAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/SeiPropertyDefaultsAdapter.java
deleted file mode 100755
index 29cca7a..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/SeiPropertyDefaultsAdapter.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.defaults;
-
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyDefaults;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.utils.JaxWsUtils;
-
-/**
- * Adapter that provides default values for {@link IServiceEndpointInterface} properties
- *
- * @author Georgi Vachkov
- */
-public class SeiPropertyDefaultsAdapter extends AdapterImpl implements IPropertyDefaults
-{
- public Object getDefault(EStructuralFeature feature)
- {
- final IServiceEndpointInterface sei = (IServiceEndpointInterface)getTarget();
-
- switch(feature.getFeatureID())
- {
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__NAME:
- return JaxWsUtils.getDefaultPorttypeName(sei.getImplementation());
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE:
- return JaxWsUtils.composeJaxWsTargetNamespaceByFQName(sei.getImplementation());
- }
-
- return sei.eGet(feature);
- }
-
- @Override
- public boolean isAdapterForType(Object type) {
- return IPropertyDefaults.class == type;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/WsPropertyDefaultsAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/WsPropertyDefaultsAdapter.java
deleted file mode 100755
index 07ac941..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/defaults/WsPropertyDefaultsAdapter.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.defaults;
-
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyDefaults;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.utils.JaxWsUtils;
-
-public class WsPropertyDefaultsAdapter extends AdapterImpl implements IPropertyDefaults
-{
- public Object getDefault(EStructuralFeature feature)
- {
- final IWebService ws = (IWebService)getTarget();
-
- switch(feature.getFeatureID())
- {
- case DomPackage.IWEB_SERVICE__NAME:
- return JaxWsUtils.getDefaultServiceName(ws.getImplementation());
- case DomPackage.IWEB_SERVICE__PORT_NAME:
- return JaxWsUtils.getDefaultPortName(ws.getImplementation());
- case DomPackage.IWEB_SERVICE__TARGET_NAMESPACE:
- return JaxWsUtils.composeJaxWsTargetNamespaceByFQName(ws.getImplementation());
- }
-
- return ws.eGet(feature);
- }
-
- @Override
- public boolean isAdapterForType(Object type) {
- return IPropertyDefaults.class == type;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/AbstractSerializerAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/AbstractSerializerAdapter.java
deleted file mode 100755
index 3016816..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/AbstractSerializerAdapter.java
+++ /dev/null
@@ -1,236 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.serializer;
-
-import java.util.TreeSet;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.DomUtil;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IAnnotationSerializer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsDefaultsCalculator;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource;
-import org.eclipse.jst.ws.jaxws.dom.runtime.util.ParamValueComparator;
-import org.eclipse.jst.ws.jaxws.utils.ContractChecker;
-import org.eclipse.jst.ws.jaxws.utils.annotations.AnnotationFactory;
-import org.eclipse.jst.ws.jaxws.utils.annotations.AnnotationGeneratorException;
-import org.eclipse.jst.ws.jaxws.utils.annotations.AnnotationWriter;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IParamValuePair;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IValue;
-import org.eclipse.jst.ws.jaxws.utils.logging.ILogger;
-import org.eclipse.jst.ws.jaxws.utils.logging.Logger;
-
-/**
- * Base class for DOM adapters that listen to changes in DOM objects and applies it
- * to the underlying java class. Extenders should implement <code>getAnnotation()</code>
- * method to provide the {@link IAnnotation} instance to be saved to java class.
- *
- * @author Georgi Vachkov
- */
-public abstract class AbstractSerializerAdapter extends AdapterImpl implements IAnnotationSerializer
-{
- private final JaxWsWorkspaceResource resource;
- private final DomUtil util = new DomUtil();
- private final JaxWsDefaultsCalculator defCalc = new JaxWsDefaultsCalculator();
-
- /**
- * Constructor
- * @param resource
- * @throws NullPointerException in case <code>resource</code> is <code>null</code>
- */
- public AbstractSerializerAdapter(final JaxWsWorkspaceResource resource)
- {
- ContractChecker.nullCheckParam(resource, "resource");//$NON-NLS-1$
-
- this.resource = resource;
- }
-
- @Override
- public void notifyChanged(final Notification msg)
- {
- if (!resource.isSaveEnabled() || msg.isTouch()) {
- return;
- }
-
- if (msg.getEventType() != Notification.SET && msg.getEventType() != Notification.UNSET) {
- return;
- }
-
- if (checkValue(msg)) {
- save(msg);
- }
- }
-
- /**
- * Default value check - works only for String values, trims the
- * new value checks for <code>null</code> and if it is not null puts the
- * value to the object and returns <code>true</code> otherwise <code>false</code>
- * @param msg
- * @return <code>true</code> in case the value is valid
- */
- protected boolean checkValue(final Notification msg)
- {
- EObject obj = (EObject)getTarget();
- final String newValue = getNewStringValue(msg);
- if (newValue==null) {
- return revertValue(obj, msg);
- }
-
- // this call is needed cause newValue might be trimmed
- putValue(obj, (EStructuralFeature)msg.getFeature(), newValue);
- return true;
- }
-
- public void save(final Notification msg)
- {
- boolean processed = false;
- try {
- final IAnnotation<? extends IJavaElement> annotation = getAnnotation();
- if (annotation == null) {
- return;
- }
-
- if (annotation.getParamValuePairs().size()==0 && !isAnnotationRequired()) {
- getAnnotationWriter().remove(annotation);
- } else {
- getAnnotationWriter().update(annotation);
- }
- processed = true;
- }
- catch (AnnotationGeneratorException e) {
- logger().logError(e.getMessage(), e);
- }
- catch (CoreException e) {
- logger().logError(e.getMessage(), e);
- }
- finally {
- if(!processed) {
- revertValue((EObject)getTarget(), msg);
- }
- }
- }
-
- protected abstract IAnnotation<? extends IJavaElement> getAnnotation() throws JavaModelException;
- protected abstract boolean isAnnotationRequired();
-
- @Override
- public boolean isAdapterForType(Object type)
- {
- return IAnnotationSerializer.class==type;
- }
-
- protected JaxWsWorkspaceResource resource() {
- return resource;
- }
-
- protected DomUtil util() {
- return util;
- }
-
- protected JaxWsDefaultsCalculator defCalc() {
- return defCalc;
- }
-
- protected AnnotationWriter getAnnotationWriter()
- {
- return AnnotationWriter.getInstance();
- }
-
- protected IParamValuePair createParamValue(String param, String value)
- {
- final IValue iValue = AnnotationFactory.createStringValue(value);
- return AnnotationFactory.createParamValuePairValue(param, iValue);
- }
-
- protected IParamValuePair createParamValue(String param, boolean value)
- {
- final IValue iValue = AnnotationFactory.createBooleanValue(value);
- return AnnotationFactory.createParamValuePairValue(param, iValue);
- }
-
- protected IType findType(final EObject object, final String typeFQName) throws JavaModelException
- {
- EObject webProject = object.eContainer();
- while(!(webProject instanceof IWebServiceProject) && webProject!=null) {
- webProject = webProject.eContainer();
- }
-
- if (webProject==null) {
- return null;
- }
-
- final String projectName = ((IWebServiceProject)webProject).getName();
- final IJavaProject javaProject = resource.javaModel().getJavaProject(projectName);
- return javaProject.findType(typeFQName);
- }
-
- /**
- * Reads the new string value from <code>msg</code>.
- * @param msg
- * @return <code>null</code> if the value is empty string or <code>null</code>, otherwise the trimmed string value.
- */
- protected String getNewStringValue(final Notification msg)
- {
- final String newValue = (msg.getNewStringValue() == null) ? null : msg.getNewStringValue().trim();
- if (newValue != null && newValue.length() > 0) {
- return newValue;
- }
-
- return null;
- }
-
- /**
- * Reverts the current value for the changed feature to the old value and returns <code>false</code>
- * @param obj the object to be reverted
- * @param msg the message
- * @return always returns false
- */
- protected boolean revertValue(final EObject obj, final Notification msg)
- {
- putValue(obj, (EStructuralFeature)msg.getFeature(), msg.getOldValue());
- return false;
- }
-
- /**
- * Puts the <code>newValue</code> to the changed feature.
- * @param obj the object to be updated
- * @param msg the notification message
- * @param newValue the new value to be put
- */
- protected void putValue(final EObject obj, final EStructuralFeature feature, final Object newValue)
- {
- try {
- obj.eSetDeliver(false);
- obj.eSet(feature, newValue);
- } finally {
- obj.eSetDeliver(true);
- }
- }
-
- protected TreeSet<IParamValuePair> createParamValueSortedTreeSet()
- {
- return new TreeSet<IParamValuePair>(new ParamValueComparator());
- }
-
- private ILogger logger()
- {
- return new Logger();
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/MethodSerializerAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/MethodSerializerAdapter.java
deleted file mode 100755
index 2875f7f..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/MethodSerializerAdapter.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.serializer;
-
-import java.util.Set;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jdt.core.IMethod;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WMAnnotationFeatures;
-import org.eclipse.jst.ws.jaxws.utils.annotations.AnnotationFactory;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IParamValuePair;
-
-/**
- * Adapter for {@link IWebMethod} serialization. Listens for property change notifications and
- * serializes the new object content to the underlying java class.
- *
- * @author Georgi Vachkov
- */
-public class MethodSerializerAdapter extends AbstractSerializerAdapter
-{
- /**
- * Constructor
- * @param resource the DOM resource
- */
- public MethodSerializerAdapter(JaxWsWorkspaceResource resource) {
- super(resource);
- }
-
- @Override
- protected boolean isAnnotationRequired() {
- return false;
- }
-
- @Override
- protected IAnnotation<? extends IJavaElement> getAnnotation() throws JavaModelException
- {
- assert getTarget() instanceof IWebMethod;
-
- final IWebMethod webMethod = (IWebMethod)getTarget();
- final IServiceEndpointInterface sei = (IServiceEndpointInterface)webMethod.eContainer();
- if (sei == null) {
- return null;
- }
- final IType seiType = findType(sei, sei.getImplementation());
- final IMethod method = util().findMethod(seiType, webMethod);
- if (method==null) {
- throw new IllegalStateException("IMethod for DOM method was not found");//$NON-NLS-1$
- }
-
- return AnnotationFactory.createAnnotation(WMAnnotationFeatures.WM_ANNOTATION, method, defineParamValues(webMethod, method));
- }
-
- private Set<IParamValuePair> defineParamValues(final IWebMethod webMethod, final IMethod method)
- {
- final Set<IParamValuePair> paramValuePairs = createParamValueSortedTreeSet();
- if (webMethod.getName()!=null && !webMethod.getName().equals(method.getElementName())) {
- paramValuePairs.add(createParamValue(WMAnnotationFeatures.WM_NAME_ATTRIBUTE, webMethod.getName()));
- }
-
- if (webMethod.isExcluded()) {
- paramValuePairs.add(createParamValue(WMAnnotationFeatures.WM_EXCLUDED_ATTRIBUTE, true));
- }
-
- return paramValuePairs;
- }
-
- @Override
- protected boolean checkValue(final Notification msg)
- {
- final EStructuralFeature feature = (EStructuralFeature)msg.getFeature();
- if (feature.getFeatureID()!=DomPackage.ISERVICE_ENDPOINT_INTERFACE__NAME) {
- return false;
- }
-
- if (!super.checkValue(msg)) {
- return false;
- }
-
- return true;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/ParameterSerializerAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/ParameterSerializerAdapter.java
deleted file mode 100755
index de7b1a7..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/ParameterSerializerAdapter.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.serializer;
-
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.HEADER_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.NAME_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.PART_NAME_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.TARGET_NAMESPACE_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.WP_ANNOTATION;
-
-import java.util.Set;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jdt.core.IMethod;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation.AnnotationAdapterFactory;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation.IAnnotationAdapter;
-import org.eclipse.jst.ws.jaxws.dom.runtime.util.Jee5DomUtils;
-import org.eclipse.jst.ws.jaxws.utils.annotations.AnnotationFactory;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IParamValuePair;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IValue;
-import org.eclipse.jst.ws.jaxws.utils.logging.Logger;
-
-/**
- * Class that serializes {@link IWebParam} objects to WebParam annotation in underlying java
- * class. Checks the attribute values and omits the defaults.
- *
- * @author Georgi Vachkov
- */
-public class ParameterSerializerAdapter extends AbstractSerializerAdapter
-{
- private final Jee5DomUtils jee5Utils = Jee5DomUtils.getInstance();
-
- /**
- * Constructor
- * @param resource
- */
- public ParameterSerializerAdapter(JaxWsWorkspaceResource resource) {
- super(resource);
- }
-
- @Override
- public void notifyChanged(final Notification msg)
- {
- if (!resource().isSaveEnabled()) {
- return;
- }
-
- final EStructuralFeature feature = (EStructuralFeature)msg.getFeature();
- if (feature.getFeatureID()==DomPackage.ISERVICE_ENDPOINT_INTERFACE__NAME)
- {
- try {
- changePartName(msg);
- }
- catch (JavaModelException e) {
- (new Logger()).logError(e.getMessage(), e);
- }
- }
-
- super.notifyChanged(msg);
- }
-
- private void changePartName(final Notification msg) throws JavaModelException
- {
- final IWebParam webParam = (IWebParam)getTarget();
- if (jee5Utils.isPartNameUsed(webParam))
- {
- final IAnnotationAdapter annAdapter = (IAnnotationAdapter )AnnotationAdapterFactory.INSTANCE.adapt(webParam, IAnnotationAdapter.class);
- final IAnnotation<? extends IJavaElement> ann = annAdapter.getAnnotation(WPAnnotationFeatures.WP_ANNOTATION);
- if (ann!=null && ann.getPropertyValue(WPAnnotationFeatures.PART_NAME_ATTRIBUTE)!=null) {
- return;
- }
- }
-
- if (checkValue(msg)) {
- putValue(webParam, DomPackage.Literals.IWEB_PARAM__PART_NAME, msg.getNewValue());
- }
- }
-
- @Override
- protected boolean isAnnotationRequired() {
- return false;
- }
-
- @Override
- protected IAnnotation<? extends IJavaElement> getAnnotation() throws JavaModelException
- {
- final IWebParam webParam = (IWebParam)getTarget();
- final IWebMethod webMethod = (IWebMethod)webParam.eContainer();
- if (webMethod==null || webMethod.eContainer()==null) {
- return null;
- }
-
- final IType seiType = findType(webMethod, ((IServiceEndpointInterface)webMethod.eContainer()).getImplementation());
- final IMethod method = util().findMethod(seiType, webMethod);
-
- return AnnotationFactory.createAnnotation(WP_ANNOTATION,
- method.getTypeParameter(webParam.getImplementation()),
- defineParamValues(webParam, webMethod));
- }
-
- protected Set<IParamValuePair> defineParamValues(final IWebParam webParam, final IWebMethod webMethod)
- {
- final Set<IParamValuePair> valuePairs = createParamValueSortedTreeSet();
-
- if (webParam.getKind()!=WebParamKind.IN) {
- valuePairs.add(createModeValuePair(webParam));
- }
-
- if (webParam.isHeader()) {
- valuePairs.add(createParamValue(HEADER_ATTRIBUTE, true));
- }
-
- final String defName = defCalc().calcWebParamDefaultName(webParam);
- if (jee5Utils.isNameRequired(webParam) ||
- (!webParam.getName().equals(defName) && jee5Utils.isNameUsed(webParam)))
- {
- valuePairs.add(createParamValue(NAME_ATTRIBUTE, webParam.getName()));
- }
-
- if (jee5Utils.isPartNameUsed(webParam) && !webParam.getPartName().equals(defName)) {
- valuePairs.add(createParamValue(PART_NAME_ATTRIBUTE, webParam.getPartName()));
- }
-
- if (webParam.getTargetNamespace()!=null)
- {
- final String defNs = defCalc().calcWebParamDefaultTargetNS(webMethod, webParam);
- if (webParam.getTargetNamespace().trim().length() != 0 && !webParam.getTargetNamespace().equals(defNs)) {
- valuePairs.add(createParamValue(TARGET_NAMESPACE_ATTRIBUTE, webParam.getTargetNamespace()));
- }
- }
-
- return valuePairs;
- }
-
- protected IParamValuePair createModeValuePair(final IWebParam webParam)
- {
- IValue value = null;
- switch (webParam.getKind())
- {
- case OUT:
- value = AnnotationFactory.createQualifiedNameValue(WPAnnotationFeatures.WEB_PARAM_MODE_OUT);
- break;
- case INOUT:
- value = AnnotationFactory.createQualifiedNameValue(WPAnnotationFeatures.WEB_PARAM_MODE_INOUT);
- break;
- default:
- return null;
- }
-
- return AnnotationFactory.createParamValuePairValue(WPAnnotationFeatures.MODE_ATTRIBUTE, value);
- }
-
- protected boolean hasParamWithSameName(final IWebParam param, final String newName)
- {
- final IWebMethod webMethod = (IWebMethod)param.eContainer();
- for (IWebParam webParam : webMethod.getParameters())
- {
- if(webParam==param) {
- continue;
- }
-
- if(webParam.getName().equals(newName)) {
- return true;
- }
- }
-
- return false;
- }
-
- @Override
- protected boolean checkValue(final Notification msg)
- {
- if(((EStructuralFeature)msg.getFeature()).getFeatureID()==DomPackage.IWEB_PARAM__TARGET_NAMESPACE) {
- return true;
- }
-
- return super.checkValue(msg);
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/SeiSerializerAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/SeiSerializerAdapter.java
deleted file mode 100755
index a3bba49..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/SeiSerializerAdapter.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.serializer;
-
-import static org.eclipse.jst.ws.jaxws.utils.ContractChecker.nullCheckParam;
-
-import java.util.Set;
-
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jdt.core.IJavaModel;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures;
-import org.eclipse.jst.ws.jaxws.utils.JaxWsUtils;
-import org.eclipse.jst.ws.jaxws.utils.annotations.AnnotationFactory;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IParamValuePair;
-
-/**
- * Adapter that on {@link IWebService} object change saves the annotation to
- * the underlying compilation unit. Uses {@link JaxWsWorkspaceResource} to define
- * if save operation is enabled.
- *
- * @author Georgi Vachkov
- */
-public class SeiSerializerAdapter extends AbstractSerializerAdapter
-{
- /**
- * Constructor
- * @param resource
- */
- public SeiSerializerAdapter(JaxWsWorkspaceResource resource) {
- super(resource);
- }
-
- @Override
- protected boolean isAnnotationRequired() {
- return true;
- }
-
- @Override
- protected IAnnotation<? extends IJavaElement> getAnnotation() throws JavaModelException
- {
- assert getTarget() instanceof IServiceEndpointInterface;
-
- return createIAnnotation((IServiceEndpointInterface)getTarget(), resource().javaModel());
- }
-
- protected IAnnotation<? extends IJavaElement> createIAnnotation(final IServiceEndpointInterface sei, final IJavaModel javaModel) throws JavaModelException
- {
- nullCheckParam(sei, "sei");//$NON-NLS-1$
- nullCheckParam(javaModel, "javaModel");//$NON-NLS-1$
-
- if (sei.isImplicit())
- {
- if (sei.getImplementingWebServices().size() == 0) {
- // the implicit SEI has already been removed from the project
- return null;
- }
-
- return new WsSerializerAdapter(resource()).createIAnnotation(sei.getImplementingWebServices().get(0), javaModel);
- }
-
- final IType type = findType(sei, sei.getImplementation());
- if (type == null) {
- // the explicit SEI has already been removed from the project
- return null;
- }
-
- final Set<IParamValuePair> paramValuePairs = createParamValueSortedTreeSet();
-
- if (sei.getName()!=null && !sei.getName().equals(JaxWsUtils.getDefaultPorttypeName(sei.getImplementation()))) {
- paramValuePairs.add(createParamValue(WSAnnotationFeatures.NAME_ATTRIBUTE, sei.getName()));
- }
- if (sei.getTargetNamespace()!=null && !sei.getTargetNamespace().equals(JaxWsUtils.composeJaxWsTargetNamespaceByPackage(type.getPackageFragment().getElementName()))) {
- paramValuePairs.add(createParamValue(WSAnnotationFeatures.TARGET_NAMESPACE_ATTRIBUTE, sei.getTargetNamespace()));
- }
-
- return AnnotationFactory.createAnnotation(WSAnnotationFeatures.WS_ANNOTATION, type, paramValuePairs);
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/SerializerAdapterFactory.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/SerializerAdapterFactory.java
deleted file mode 100755
index 34fbb3c..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/SerializerAdapterFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.serializer;
-
-import static org.eclipse.jst.ws.jaxws.utils.ContractChecker.nullCheckParam;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IAnnotationSerializer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource;
-import org.eclipse.jst.ws.jaxws.dom.runtime.util.DomAdapterFactory;
-/**
- * Factory for serialization adapters. This factory is instantiated on construction by
- * {@link JaxWsWorkspaceResource} and it is recommended that you use the same instance
- * in case you need this factory.
- *
- * @author Georgi Vachkov
- */
-public class SerializerAdapterFactory extends DomAdapterFactory
-{
- private final JaxWsWorkspaceResource resource;
-
- /**
- * Constructor
- * @param resource
- * @throws NullPointerException in case <code>resource</code> is <code>null</code>
- */
- public SerializerAdapterFactory(final JaxWsWorkspaceResource resource)
- {
- nullCheckParam(resource, "resource");//$NON-NLS-1$
- this.resource = resource;
- }
-
- @Override
- public Adapter createIWebServiceAdapter() {
- return new WsSerializerAdapter(resource);
- }
-
- @Override
- public Adapter createIServiceEndpointInterfaceAdapter() {
- return new SeiSerializerAdapter(resource);
- }
-
- @Override
- public Adapter createIWebMethodAdapter() {
- return new MethodSerializerAdapter(resource);
- }
-
- @Override
- public Adapter createIWebParamAdapter() {
- return new ParameterSerializerAdapter(resource);
- }
-
- @Override
- public boolean isFactoryForType(Object type)
- {
- return IAnnotationSerializer.class == type;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/WsSerializerAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/WsSerializerAdapter.java
deleted file mode 100755
index de1d5c1..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/serializer/WsSerializerAdapter.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.serializer;
-
-import java.util.Set;
-
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jdt.core.IJavaModel;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures;
-import org.eclipse.jst.ws.jaxws.utils.JaxWsUtils;
-import org.eclipse.jst.ws.jaxws.utils.annotations.AnnotationFactory;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IParamValuePair;
-
-import static org.eclipse.jst.ws.jaxws.utils.ContractChecker.nullCheckParam;
-
-/**
- * Adapter that on {@link IWebService} object change saves the annotation to
- * the underlying compilation unit. Uses {@link JaxWsWorkspaceResource} to define
- * if save operation is enabled.
- *
- * @author Georgi Vachkov
- */
-public class WsSerializerAdapter extends AbstractSerializerAdapter
-{
- /**
- * Constructor
- * @param resource
- */
- public WsSerializerAdapter(JaxWsWorkspaceResource resource)
- {
- super(resource);
- }
-
- @Override
- protected boolean isAnnotationRequired() {
- return true;
- }
-
- @Override
- protected IAnnotation<? extends IJavaElement> getAnnotation() throws JavaModelException
- {
- assert getTarget() instanceof IWebService;
-
- return createIAnnotation((IWebService)getTarget(), resource().javaModel());
- }
-
- protected IAnnotation<? extends IJavaElement> createIAnnotation(final IWebService ws, final IJavaModel javaModel) throws JavaModelException
- {
- nullCheckParam(ws, "ws");//$NON-NLS-1$
- nullCheckParam(javaModel, "javaModel");//$NON-NLS-1$
-
- final IType type = findType(ws, ws.getImplementation());
- if (type==null) {
- return null;
- }
-
- final Set<IParamValuePair> paramValuePairs = createParamValueSortedTreeSet();
-
- final IServiceEndpointInterface sei = ws.getServiceEndpoint();
- if (sei!=null)
- {
- if (sei.isImplicit())
- {
- String seiName = sei.getName();
- if (!JaxWsUtils.getDefaultPorttypeName(sei.getImplementation()).equals(seiName)) {
- paramValuePairs.add(createParamValue(WSAnnotationFeatures.NAME_ATTRIBUTE, ws.getServiceEndpoint().getName()));
- }
- } else {
- paramValuePairs.add(createParamValue(WSAnnotationFeatures.ENDPOINT_INTERFACE_ATTRIBUTE, ws.getServiceEndpoint().getImplementation()));
- }
- }
-
- if (ws.getName()!=null &&
- !ws.getName().equals(JaxWsUtils.getDefaultServiceName(ws.getImplementation())))
- {
- paramValuePairs.add(createParamValue(WSAnnotationFeatures.SERVICE_NAME_ATTRIBUTE, ws.getName()));
- }
- if (ws.getPortName()!=null &&
- !ws.getPortName().equals(JaxWsUtils.getDefaultPortName(ws.getImplementation())))
- {
- paramValuePairs.add(createParamValue(WSAnnotationFeatures.PORT_NAME_ATTRIBUTE, ws.getPortName()));
- }
- if (ws.getTargetNamespace()!=null &&
- !ws.getTargetNamespace().equals(JaxWsUtils.composeJaxWsTargetNamespaceByPackage(type.getPackageFragment().getElementName())))
- {
- paramValuePairs.add(createParamValue(WSAnnotationFeatures.TARGET_NAMESPACE_ATTRIBUTE, ws.getTargetNamespace()));
- }
- if (ws.getWsdlLocation()!=null) {
- paramValuePairs.add(createParamValue(WSAnnotationFeatures.WSDL_LOCATION_ATTRIBUTE, ws.getWsdlLocation()));
- }
-
- return AnnotationFactory.createAnnotation(WSAnnotationFeatures.WS_ANNOTATION, type, paramValuePairs);
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/MethodPropertyStateAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/MethodPropertyStateAdapter.java
deleted file mode 100755
index 9fa8583..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/MethodPropertyStateAdapter.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.state;
-
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyState;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-
-/**
- * Defines the state of web method properties. In case the method is part of
- * outside-in web service all properties are immutable.
- *
- * @author Georgi Vachkov
- */
-public class MethodPropertyStateAdapter extends AdapterImpl implements IPropertyState
-{
- public boolean isChangeable(EStructuralFeature feature)
- {
- final IWebMethod method = (IWebMethod)getTarget();
- if (isOutideInWs(method)) {
- return false;
- }
-
- switch(feature.getFeatureID())
- {
- case DomPackage.IWEB_METHOD__NAME:
- return true;
- }
-
- return false;
- }
-
- private boolean isOutideInWs(final IWebMethod method)
- {
- final IServiceEndpointInterface sei = (IServiceEndpointInterface)method.eContainer();
- if (sei==null) {
- return false;
- }
-
- for (IWebService webService : sei.getImplementingWebServices()) {
- if (webService.getWsdlLocation()!=null) {
- return true;
- }
- }
-
- return false;
- }
-
- @Override
- public boolean isAdapterForType(Object type) {
- return IPropertyState.class == type;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/ParameterPropertyStateAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/ParameterPropertyStateAdapter.java
deleted file mode 100755
index 202ea73..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/ParameterPropertyStateAdapter.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.state;
-
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.ws.jaxws.dom.runtime.DomUtil;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyState;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse;
-import org.eclipse.jst.ws.jaxws.dom.runtime.util.Jee5DomUtils;
-
-/**
- * Class that defines which properties for {@link IWebParam} are editable
- *
- * @author Georgi Vachkov
- */
-public class ParameterPropertyStateAdapter extends AdapterImpl implements IPropertyState
-{
- public boolean isChangeable(EStructuralFeature feature)
- {
- assert getTarget() instanceof IWebParam;
-
- final IWebParam webParam = (IWebParam)getTarget();
- if (webParam.getImplementation().equals("return")) {//$NON-NLS-1$
- return false;
- }
-
- if (isOutsideInWebService(webParam)) {
- return false;
- }
-
- switch(feature.getFeatureID())
- {
- case DomPackage.IWEB_PARAM__NAME:
- return isNameChangeable(webParam);
- case DomPackage.IWEB_PARAM__PART_NAME:
- return isPartNameChangeable(webParam);
- case DomPackage.IWEB_PARAM__TARGET_NAMESPACE:
- return isTargetNSChangeable(webParam);
- }
-
- return false;
- }
-
- protected boolean isPartNameChangeable(final IWebParam webParam)
- {
- final IWebMethod webMethod = (IWebMethod)webParam.eContainer();
-
- return (webMethod.getSoapBindingStyle()==SOAPBindingStyle.RPC &&
- webMethod.getSoapBindingUse()==SOAPBindingUse.LITERAL &&
- webMethod.getSoapBindingParameterStyle()==SOAPBindingParameterStyle.WRAPPED);
- }
-
- protected boolean isNameChangeable(final IWebParam webParam)
- {
- final IWebMethod webMethod = (IWebMethod)webParam.eContainer();
- if (isDocumentLiteralWrapped(webMethod)) {
- return true;
- }
-
- if (Jee5DomUtils.getInstance().isNameRequired(webParam)) {
- return true;
- }
-
- return webParam.isHeader();
- }
-
- protected boolean isTargetNSChangeable(final IWebParam webParam)
- {
- final IWebMethod webMethod = (IWebMethod)webParam.eContainer();
- if (isDocumentLiteralWrapped(webMethod)) {
- return true;
- }
-
- return webParam.isHeader();
- }
-
- protected boolean isDocumentLiteralWrapped(final IWebMethod webMethod)
- {
- return !(webMethod.getSoapBindingStyle()==SOAPBindingStyle.RPC ||
- webMethod.getSoapBindingUse()==SOAPBindingUse.ENCODED ||
- webMethod.getSoapBindingParameterStyle()==SOAPBindingParameterStyle.BARE);
- }
-
- protected boolean isOutsideInWebService(final IWebParam webParam)
- {
- final IServiceEndpointInterface sei = (IServiceEndpointInterface)webParam.eContainer().eContainer();
- return DomUtil.INSTANCE.isOutsideInWebService(sei);
- }
-
- @Override
- public boolean isAdapterForType(Object type) {
- return IPropertyState.class == type;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/PropertyStateAdapterFactory.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/PropertyStateAdapterFactory.java
deleted file mode 100755
index 75785f7..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/PropertyStateAdapterFactory.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.state;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyState;
-import org.eclipse.jst.ws.jaxws.dom.runtime.util.DomAdapterFactory;
-
-/**
- * Adapter factory for adapters implementing {@link IPropertyState} interface.
- *
- * @author Georgi Vachkov
- */
-public class PropertyStateAdapterFactory extends DomAdapterFactory
-{
- /**
- * Singleton instance for this adapter factory
- */
- public static final PropertyStateAdapterFactory INSTANCE = new PropertyStateAdapterFactory();
-
- @Override
- public boolean isFactoryForType(Object object) {
- return IPropertyState.class == object;
- }
-
- @Override
- public Adapter createIWebServiceAdapter() {
- return new WsPropertyStateAdapter();
- }
-
- @Override
- public Adapter createIServiceEndpointInterfaceAdapter() {
- return new SeiPropertyStateAdapter();
- }
-
- @Override
- public Adapter createIWebMethodAdapter() {
- return new MethodPropertyStateAdapter();
- }
-
- @Override
- public Adapter createIWebParamAdapter(){
- return new ParameterPropertyStateAdapter();
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/SeiPropertyStateAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/SeiPropertyStateAdapter.java
deleted file mode 100755
index 6bcc6c4..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/SeiPropertyStateAdapter.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.state;
-
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyState;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-
-/**
- * {@link IPropertyState} adapter for {@link IServiceEndpointInterface} objects.
- *
- * @author Georgi Vachkov
- */
-public class SeiPropertyStateAdapter extends AdapterImpl implements IPropertyState
-{
- public boolean isChangeable(EStructuralFeature feature)
- {
- if (!(getTarget() instanceof IServiceEndpointInterface)) {
- return false;
- }
-
- final IServiceEndpointInterface sei = (IServiceEndpointInterface)getTarget();
- if (isOutsideInWs(sei)) {
- return false;
- }
-
- switch(feature.getFeatureID())
- {
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__NAME:
- return true;
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE:
- return !sei.isImplicit();
- }
-
- return false;
- }
-
- protected boolean isOutsideInWs(IServiceEndpointInterface sei)
- {
- for (IWebService webService : sei.getImplementingWebServices()) {
- if (webService.getWsdlLocation()!=null) {
- return true;
- }
- }
-
- return false;
- }
-
- @Override
- public boolean isAdapterForType(Object type) {
- return IPropertyState.class == type;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/WsPropertyStateAdapter.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/WsPropertyStateAdapter.java
deleted file mode 100755
index c703eb8..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/state/WsPropertyStateAdapter.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.state;
-
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.ws.jaxws.dom.runtime.IPropertyState;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-
-/**
- * {@link IPropertyState} adapter for {@link IWebService} objects.
- *
- * @author Georgi Vachkov
- */
-public class WsPropertyStateAdapter extends AdapterImpl implements IPropertyState
-{
- public boolean isChangeable(final EStructuralFeature feature)
- {
- if (!(getTarget() instanceof IWebService)) {
- return false;
- }
-
- if (isOutsideInWs((IWebService)getTarget())) {
- return false;
- }
-
- switch(feature.getFeatureID())
- {
- case DomPackage.IWEB_SERVICE__NAME:
- return true;
- case DomPackage.IWEB_SERVICE__PORT_NAME:
- return true;
- case DomPackage.IWEB_SERVICE__TARGET_NAMESPACE:
- return true;
- }
-
- return false;
- }
-
- protected boolean isOutsideInWs(final IWebService ws)
- {
- return ws.getWsdlLocation() != null;
- }
-
- @Override
- public boolean isAdapterForType(Object type) {
- return IPropertyState.class == type;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/AbstractMethodSynchronizer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/AbstractMethodSynchronizer.java
deleted file mode 100755
index 45d3d2b..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/AbstractMethodSynchronizer.java
+++ /dev/null
@@ -1,218 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.SBAnnotationFeatures.SB_ANNOTATION;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WMAnnotationFeatures.WM_ANNOTATION;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WMAnnotationFeatures.WM_EXCLUDED_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WMAnnotationFeatures.WM_NAME_ATTRIBUTE;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-
-import org.eclipse.jdt.core.IMethod;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.ITypeHierarchy;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IAnnotationSerializer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IModelElementSynchronizer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.SBAnnotationFeatures;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotationInspector;
-
-
-public abstract class AbstractMethodSynchronizer extends ElementSynchronizerImpl
-{
- private ParameterSynchronizer parameterSynchronizer = new ParameterSynchronizer(this);
-
- protected interface IMethodVisitor
- {
- void visit(IMethod method, IAnnotationInspector inspector) throws JavaModelException;
- }
-
- public AbstractMethodSynchronizer(IModelElementSynchronizer parent)
- {
- super(parent);
- }
-
- protected abstract void visitExposableMethods(IMethodVisitor visitor, ITypeHierarchy hierarchy, IAnnotationInspector inspector) throws JavaModelException;
-
- public void synchronizeMethods(final IServiceEndpointInterface sei, final IType seiType, final IAnnotationInspector inspector) throws JavaModelException
- {
- final Collection<IWebMethod> mergedMethods = new LinkedList<IWebMethod>();
- final ITypeHierarchy hierarchy = seiType.newSupertypeHierarchy(null);
- final IMethodVisitor visitor = new IMethodVisitor()
- {
- public void visit(IMethod method, IAnnotationInspector inspector) throws JavaModelException
- {
- final IWebMethod wm = obtainInstance(sei, method);
- if (mergedMethods.contains(wm))
- {
- /**
- * check whether this method has been processed in some of the child classes. If so
- * skip it and continue. Only the method in the last child declaring this method needs
- * to be processed because each child is overriding the properties for the every overriden
- * method.
- */
- return;
- }
- mergeMethod(wm, method, inspector);
- mergedMethods.add(wm);
- }
- };
- visitExposableMethods(visitor, hierarchy, inspector);
- removeLeftMethods(sei, mergedMethods);
-
- }
-
- private IWebMethod obtainInstance(IServiceEndpointInterface sei, IMethod method) throws JavaModelException
- {
- for (IWebMethod wm : sei.getWebMethods())
- {
- if (util().calcImplementation(method).equals(wm.getImplementation()))
- {
- return wm;
- }
- }
- final IWebMethod newWebMethod = domFactory().createIWebMethod();
- sei.getWebMethods().add(newWebMethod);
- util().setFeatureValue(newWebMethod, DomPackage.IWEB_METHOD__IMPLEMENTATION, util().calcImplementation(method));
- return newWebMethod;
- }
-
- private void mergeMethod(IWebMethod wm, IMethod m, IAnnotationInspector inspector) throws JavaModelException
- {
- final IAnnotation<IMethod> wmAnnotation = inspector.inspectMethod(m, WM_ANNOTATION);
- final boolean excluded;
- final String name;
- if (wmAnnotation == null)
- {
- excluded = false;
- name = m.getElementName();
- } else
- {
- excluded = wmAnnotation.getPropertyValue(WM_EXCLUDED_ATTRIBUTE) == null ? false : Boolean.parseBoolean(wmAnnotation
- .getPropertyValue(WM_EXCLUDED_ATTRIBUTE));
- name = wmAnnotation.getPropertyValue(WM_NAME_ATTRIBUTE) == null ? m.getElementName() : wmAnnotation.getPropertyValue(WM_NAME_ATTRIBUTE);
- }
- if (!name.equals(wm.getName()))
- {
- util().setFeatureValue(wm, DomPackage.IWEB_METHOD__NAME, name);
- }
- if (excluded != wm.isExcluded())
- {
- util().setFeatureValue(wm, DomPackage.IWEB_METHOD__EXCLUDED, excluded);
- }
- mergeSoapBinding(wm, m, inspector);
- parameterSynchronizer.synchronizeParameters(wm, m, inspector);
-
- resource().getSerializerFactory().adapt(wm, IAnnotationSerializer.class);
- adaptToLocationInterface(wm, WM_ANNOTATION, wmAnnotation);
- }
-
- private void mergeSoapBinding(final IWebMethod webMethod, final IMethod method, final IAnnotationInspector inspector) throws JavaModelException
- {
- final IAnnotation<IMethod> sbAnnotation = inspector.inspectMethod(method, SB_ANNOTATION);
- final IAnnotation<IType> seiSbAnnotation = inspector.inspectType(SB_ANNOTATION);
-
- final SOAPBindingStyle style = defineSBStyle(sbAnnotation, seiSbAnnotation);
- if (webMethod.getSoapBindingStyle() != style) {
- webMethod.setSoapBindingStyle(style);
- }
-
- final SOAPBindingUse use = defineSBUse(sbAnnotation, seiSbAnnotation);
- if (webMethod.getSoapBindingUse() != use) {
- webMethod.setSoapBindingUse(use);
- }
-
- final SOAPBindingParameterStyle paramStyle =defineSBParameterStyle(sbAnnotation, seiSbAnnotation);
- if (webMethod.getSoapBindingParameterStyle() != paramStyle) {
- webMethod.setSoapBindingParameterStyle(paramStyle);
- }
-
- adaptToLocationInterface(webMethod, SB_ANNOTATION, sbAnnotation);
- }
-
- private SOAPBindingStyle defineSBStyle(final IAnnotation<IMethod> methodSBAnnotation, final IAnnotation<IType> seiSbAnnotation)
- {
- final String value = methodSBAnnotation!=null ? methodSBAnnotation.getPropertyValue(SBAnnotationFeatures.STYLE_ATTRIBUTE) : null;
- if(value==null) {
- return defCalc().defineSBStyle(seiSbAnnotation);
- }
-
- if (SBAnnotationFeatures.SB_STYLE_RPC.endsWith(value)) {
- return SOAPBindingStyle.RPC;
- }
-
- if(SBAnnotationFeatures.SB_STYLE_DOCUMENT.endsWith(value)) {
- return SOAPBindingStyle.DOCUMENT;
- }
-
- return defCalc().defineSBStyle(seiSbAnnotation);
- }
-
- private SOAPBindingUse defineSBUse(final IAnnotation<IMethod> methodSBAnnotation, final IAnnotation<IType> seiSbAnnotation)
- {
- final String value = methodSBAnnotation!=null ? methodSBAnnotation.getPropertyValue(SBAnnotationFeatures.USE_ATTRIBUTE) : null;
- if (value==null) {
- return defCalc().defineSBUse(seiSbAnnotation);
- }
-
- if (SBAnnotationFeatures.SB_USE_ENCODED.endsWith(value)) {
- return SOAPBindingUse.ENCODED;
- }
-
- if (SBAnnotationFeatures.SB_USE_LITERAL.endsWith(value)) {
- return SOAPBindingUse.LITERAL;
- }
-
- return defCalc().defineSBUse(seiSbAnnotation);
- }
-
- private SOAPBindingParameterStyle defineSBParameterStyle(final IAnnotation<IMethod> methodSBAnnotation, final IAnnotation<IType> seiSbAnnotation)
- {
- final String value = methodSBAnnotation!=null ? methodSBAnnotation.getPropertyValue(SBAnnotationFeatures.PARAMETER_STYLE_ATTRIBUTE) : null;
- if (value==null) {
- return defCalc().defineSBParameterStyle(seiSbAnnotation);
- }
-
- if (SBAnnotationFeatures.SB_PARAMETER_STYLE_BARE.endsWith(value)) {
- return SOAPBindingParameterStyle.BARE;
- }
-
- if (SBAnnotationFeatures.SB_PARAMETER_STYLE_WRAPPED.endsWith(value)) {
- return SOAPBindingParameterStyle.WRAPPED;
- }
-
- return defCalc().defineSBParameterStyle(seiSbAnnotation);
- }
-
- private void removeLeftMethods(IServiceEndpointInterface sei, Collection<IWebMethod> mergedMethods)
- {
- final Iterator<IWebMethod> iter = sei.getWebMethods().iterator();
- while (iter.hasNext())
- {
- if (!mergedMethods.contains(iter.next()))
- {
- iter.remove();
- }
- }
- }
-
-
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/AbstractModelSynchronizer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/AbstractModelSynchronizer.java
deleted file mode 100755
index ac2333d..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/AbstractModelSynchronizer.java
+++ /dev/null
@@ -1,259 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.WS_ANNOTATION;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.IJavaModel;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.DomUtil;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomFactory;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.ICompilationUnitHandler;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IModelElementSynchronizer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource.ServiceModelData;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotationInspector;
-import org.eclipse.jst.ws.jaxws.utils.logging.ILogger;
-
-public abstract class AbstractModelSynchronizer implements IModelElementSynchronizer
-{
- private final SeiSynchronizer seiLoader;
-
- private final WsSynchronizer wsLoader;
-
- private final JaxWsWorkspaceResource resource;
-
- private IDOM domBeingLoaded;
-
- private final ServiceModelData serviceData;
-
- private final DomUtil util;
-
- public AbstractModelSynchronizer(JaxWsWorkspaceResource resource, ServiceModelData serviceData)
- {
- this.resource = resource;
- this.util = new DomUtil();
- this.serviceData = serviceData;
- this.seiLoader = new SeiSynchronizer(this);
- this.wsLoader = new WsSynchronizer(this);
- }
-
- public DomFactory domFactory()
- {
- return DomFactory.eINSTANCE;
- }
-
- public IDOM getDomBeingLoaded()
- {
- if (domBeingLoaded == null)
- {
- domBeingLoaded = domFactory().createIDOM();
- }
- return domBeingLoaded;
- }
-
- public IJavaModel javaModel()
- {
- return resource.javaModel();
- }
-
- public ILogger logger()
- {
- return resource.logger();
- }
-
- public JaxWsWorkspaceResource resource()
- {
- return resource;
- }
-
- public ServiceModelData serviceData()
- {
- return serviceData;
- }
-
- public DomUtil util()
- {
- return util;
- }
-
- protected void processCompilationUnit(final IWebServiceProject wsProject, final ICompilationUnit cu) throws JavaModelException
- {
- try {
- resource.disableSaving();
-
- if (cu.findPrimaryType() == null || !(cu.findPrimaryType().isInterface() || cu.findPrimaryType().isClass()))
- {
- if (logger().isDebug())
- {
- logger().logDebug("no primary type in compilation unit" + cu.getPath().toOSString());//$NON-NLS-1$
- }
- return;
- }
-
- final IAnnotationInspector inspector = resource().newAnnotationInspector(cu.findPrimaryType());
- final IAnnotation<IType> wsAnnotation = inspector.inspectType(WS_ANNOTATION);
- if (wsAnnotation == null)
- {
- if (logger().isDebug())
- {
- logger().logDebug("no " + WS_ANNOTATION + " annotation found on type " + cu.findPrimaryType().getFullyQualifiedName());//$NON-NLS-1$//$NON-NLS-2$
- }
- return;
- }
-
- recordHierarchy(cu.findPrimaryType());
-
- if (wsAnnotation.getAppliedElement().isInterface())
- {
- // handle class changed to interface
- removeWsModelElements(wsProject, wsAnnotation.getAppliedElement().getFullyQualifiedName(), false);
-
- seiLoader.synchronizeInterface(wsProject, wsAnnotation, inspector);
- } else if (wsAnnotation.getAppliedElement().isClass())
- {
- // handle interface changed to class
- removeSeiModelElements(wsProject, wsAnnotation.getAppliedElement().getFullyQualifiedName(), false, true);
-
- // if the annotation has changed and endpointInterface has been added the existing
- // SEI in the project should be removed
- final IWebService ws = wsLoader.synchronizeWebService(wsProject, wsAnnotation, inspector);
- if (ws!=null && (ws.getServiceEndpoint()==null || !ws.getServiceEndpoint().isImplicit())) {
- removeSeiModelElements(wsProject, ws.getImplementation(), false, false);
- }
- } else
- {
- if (logger().isDebug())
- {
- logger().logDebug("annotation " + WS_ANNOTATION + " is put on type "//$NON-NLS-1$//$NON-NLS-2$
- + wsAnnotation.getAppliedElement().getFullyQualifiedName()
- + "which is neither interface, nor a class. Ignorring!");//$NON-NLS-1$
- }
- }
- } finally {
- resource.enableSaving();
- }
- }
-
- /**
- * Removes web services from the model.
- * @param wsProject
- * @param implBaseName
- */
- protected void removeWsModelElements(final IWebServiceProject wsProject, final String implBaseName, final boolean isForPackage)
- {
- final Iterator<IWebService> wsIter = wsProject.getWebServices().iterator();
- while (wsIter.hasNext())
- {
- final IWebService ws = wsIter.next();
- if (ws.getImplementation().equals(implBaseName) ||
- (isForPackage && ws.getImplementation().startsWith(implBaseName)))
- {
- serviceData().clearHierarchy(ws.getImplementation());
- wsIter.remove();
- if (ws.getServiceEndpoint() != null)
- {
- ws.getServiceEndpoint().getImplementingWebServices().remove(ws);
- }
- serviceData().unmap(ws);
- }
- }
- }
-
- /**
- * Removes SEI's with <code>implBaseName</code> implementation from the model.
- * @param wsProject
- * @param implBaseName
- * @param onlyExplicit if <code>true</code> implicit interfaces are not removed from model, otherwise both are removed.
- */
- protected void removeSeiModelElements(final IWebServiceProject wsProject, final String implBaseName, final boolean isForPackage, final boolean onlyExplicit)
- {
- final Iterator<IServiceEndpointInterface> seiIter = wsProject.getServiceEndpointInterfaces().iterator();
- while (seiIter.hasNext())
- {
- final IServiceEndpointInterface sei = seiIter.next();
- if (sei.getImplementation().equals(implBaseName) ||
- (isForPackage && sei.getImplementation().startsWith(implBaseName)))
- {
- if ((onlyExplicit && sei.isImplicit())) {
- continue;
- }
- serviceData().clearHierarchy(sei.getImplementation());
- sei.getImplementingWebServices().clear();
- seiIter.remove();
- }
- }
- }
-
- void recordHierarchy(IType type) throws JavaModelException
- {
- final Collection<ICompilationUnit> compilationUnits = new LinkedList<ICompilationUnit>();
-
- for (IType superType : type.newSupertypeHierarchy(null).getAllSupertypes(type)) {
- compilationUnits.add(superType.getCompilationUnit());
- }
-
- serviceData().recordHierarchy(type.getFullyQualifiedName(), compilationUnits);
- }
-
-
- protected IWebServiceProject createProject(final IJavaProject jprj)
- {
- final IWebServiceProject thisProject = domFactory().createIWebServiceProject();
- util().setFeatureValue(thisProject, DomPackage.IWEB_SERVICE_PROJECT__NAME, jprj.getElementName());
-
- util().addToCollectionFeature(getDomBeingLoaded(), DomPackage.IDOM__WEB_SERVICE_PROJECTS, thisProject);
- return thisProject;
- }
-
- protected class LoaderCompilationUnitHandler implements ICompilationUnitHandler
- {
- public void started()
- {
- }
-
- public void finished()
- {
- resource().getContents().add(getDomBeingLoaded());
- }
-
- protected IWebServiceProject wsProject;
-
- public void handle(final IJavaProject jprj)
- {
- wsProject = createProject(jprj);
- }
-
- public void handle(final ICompilationUnit cu)
- {
- try
- {
- processCompilationUnit(wsProject, cu);
- } catch (JavaModelException jme)
- {
- logger().logError("Unable to parse the content of compilation unit" + cu.getPath().toOSString(), jme); //$NON-NLS-1$
- }
- }
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/ElementSynchronizerImpl.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/ElementSynchronizerImpl.java
deleted file mode 100755
index 0f81949..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/ElementSynchronizerImpl.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jdt.core.IJavaModel;
-import org.eclipse.jst.ws.jaxws.dom.runtime.DomUtil;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomFactory;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IModelElementSynchronizer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsDefaultsCalculator;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource.ServiceModelData;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation.AnnotationAdapterFactory;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation.IAnnotationAdapter;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.logging.ILogger;
-
-class ElementSynchronizerImpl implements IModelElementSynchronizer
-{
-
- private final IModelElementSynchronizer parent;
- private final DomUtil util;
- private final JaxWsDefaultsCalculator defaultsCalculator;
-
- ElementSynchronizerImpl(IModelElementSynchronizer parent)
- {
- this.parent = parent;
- util = new DomUtil();
- defaultsCalculator = new JaxWsDefaultsCalculator();
- }
-
- public DomUtil util() {
- return util;
- }
-
- public JaxWsDefaultsCalculator defCalc() {
- return defaultsCalculator;
- }
-
- public ServiceModelData serviceData()
- {
- return parent.serviceData();
- }
-
- public ILogger logger()
- {
- return parent.logger();
- }
-
- public IDOM getDomBeingLoaded()
- {
- return parent.getDomBeingLoaded();
- }
-
- public DomFactory domFactory()
- {
- return parent.domFactory();
- }
-
- public IJavaModel javaModel()
- {
- return parent.javaModel();
- }
-
- public JaxWsWorkspaceResource resource()
- {
- return parent.resource();
- }
-
- public void adaptToLocationInterface(final EObject object, final String annFQName, final IAnnotation<? extends IJavaElement> annotation)
- {
- final IAnnotationAdapter locator = (IAnnotationAdapter)AnnotationAdapterFactory.INSTANCE.adapt(object, IAnnotationAdapter.class);
- locator.addAnnotation(annFQName, annotation);
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/InitialModelSynchronizer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/InitialModelSynchronizer.java
deleted file mode 100755
index 4bb01b9..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/InitialModelSynchronizer.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import java.util.Map;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WsDOMLoadCanceledException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource.ServiceModelData;
-
-public class InitialModelSynchronizer extends AbstractModelSynchronizer
-{
- public InitialModelSynchronizer(JaxWsWorkspaceResource resource, ServiceModelData serviceData)
- {
- super(resource, serviceData);
- }
-
- public void load(Map<?,?> options, IProgressMonitor monitor) throws CoreException, WsDOMLoadCanceledException
- {
- try {
- resource().disableSaving();
- resource().newCompilationUnitFinder(resource().javaModel(), resource().getProjectSelectors()).
- find(monitor, new LoaderCompilationUnitHandler());
- } finally {
- resource().enableSaving();
- }
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/OnEventModelSynchronizer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/OnEventModelSynchronizer.java
deleted file mode 100755
index 72ece1e..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/OnEventModelSynchronizer.java
+++ /dev/null
@@ -1,416 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.WS_ANNOTATION;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jdt.core.ElementChangedEvent;
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.IElementChangedListener;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jdt.core.IJavaElementDelta;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WsDOMLoadCanceledException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.ICompilationUnitFinder;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IProjectSelector;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WorkspaceCUFinder;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.JaxWsWorkspaceResource.ServiceModelData;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-
-public class OnEventModelSynchronizer extends AbstractModelSynchronizer implements IElementChangedListener
-{
-
- @Override
- public IDOM getDomBeingLoaded()
- {
- return resource().getDOM();
- }
-
- public OnEventModelSynchronizer(JaxWsWorkspaceResource resource, ServiceModelData serviceData)
- {
- super(resource, serviceData);
- }
-
- public void elementChanged(final ElementChangedEvent event)
- {
- try
- {
- if (logger().isDebug())
- {
- logger().logDebug("ElementChangedEvent has been delivered. Event details: " + event.toString());//$NON-NLS-1$
- }
-
- // no processing if DOM load has been canceled
- if (resource().isLoadCnaceled()) {
- return;
- }
-
- resource().disableSaving();
-
- // handles ElementChangedEvent.POST_RECONCILE - the case when the editor sends reconcile event
- if (event.getType() == ElementChangedEvent.POST_RECONCILE)
- {
- handleReconcileEvent(event);
- }
-
- // handles ElementChangedEvent.POST_CHANGE - the case when the compilation unit has been changed
- if (event.getDelta().getElement() != resource().javaModel())
- {
- return;
- }
-
- assert (event.getDelta().getFlags() & (IJavaElementDelta.F_CHILDREN | IJavaElementDelta.F_CONTENT)) != 0;
- for (IJavaElementDelta child : event.getDelta().getAffectedChildren())
- {
- if (child.getElement() instanceof IJavaProject)
- {
- handleChangedProject(child);
- }
- }
- }
- catch (CoreException ce) {
- logger().logError("Unable to synchronize Web Service model upon java element delta "+ event.getDelta(), ce); //$NON-NLS-1$
- }
- catch (WsDOMLoadCanceledException e) {
- logger().logError("Unable to synchronize Web Service model upon java element delta " + event.getDelta(), e); //$NON-NLS-1$
- }
- finally {
- resource().enableSaving();
- }
- }
-
- protected void handleReconcileEvent(final ElementChangedEvent event) throws JavaModelException
- {
- if(!(event.getDelta().getElement() instanceof ICompilationUnit )) {
- return;
- }
-
- int requiredFlags = IJavaElementDelta.F_CONTENT | IJavaElementDelta.F_CHILDREN;
-
- if ((event.getDelta().getFlags() & requiredFlags) == 0) {
- return;
- }
-
- final ICompilationUnit cu = (ICompilationUnit)event.getDelta().getElement();
- if (!resource().approveProject(cu.getJavaProject())) {
- return;
- }
-
- if (isJavaResource(cu)) {
- handleChangedContentCompilationUnit(cu);
- }
- }
-
- private boolean isJavaResource(ICompilationUnit cu) throws JavaModelException
- {
- IJavaElement javaElement = cu;
- while ((javaElement = javaElement.getParent()) != null)
- {
- if (!javaElement.exists()) {
- return false;
- }
- }
-
- return true;
- }
-
- void handleChangedProject(IJavaElementDelta projectDelta) throws CoreException, WsDOMLoadCanceledException
- {
- assert (projectDelta.getElement() instanceof IJavaProject);
-
- if ((((projectDelta.getFlags() & IJavaElementDelta.F_CLOSED) != 0) || projectDelta.getKind() == IJavaElementDelta.REMOVED)
- && null != util().findProjectByName(getDomBeingLoaded(), projectDelta.getElement().getElementName()))
- {
- //if the project has been closed then it's facet's could not be read. Thus the approve method
- //will always return false. That's why we check if the project has already been in the
- handleClosedProject(projectDelta);
- }
- if (!resource().approveProject((IJavaProject)projectDelta.getElement()))
- {
- return;
- }
- if (((projectDelta.getFlags() & IJavaElementDelta.F_OPENED) != 0) || projectDelta.getKind() == IJavaElementDelta.ADDED)
- {
- handleOpenedProject(projectDelta);
- }
-
- for (IJavaElementDelta childDelta : projectDelta.getAffectedChildren())
- {
- if (!(childDelta.getElement() instanceof IPackageFragmentRoot))
- {
- continue;
- }
- if ((childDelta.getFlags() & IJavaElementDelta.F_ADDED_TO_CLASSPATH) != 0)
- {
- handleClosedProject(projectDelta);
- handleOpenedProject(projectDelta);
- }
- if ((childDelta.getFlags() & IJavaElementDelta.F_REMOVED_FROM_CLASSPATH) != 0)
- {
- handleClosedProject(projectDelta);
- handleOpenedProject(projectDelta);
- }
- if ((childDelta.getFlags() & IJavaElementDelta.F_CHILDREN) != 0)
- {
- recursevilyHandleRemovedPackages(childDelta);
- recursevilyHandleAddedPackages(childDelta);
- recursevilyHandleCompilationUnits(childDelta);
- }
- }
- }
-
- protected void recursevilyHandleAddedPackages(IJavaElementDelta rootDelta) throws JavaModelException
- {
- final IWebServiceProject wsPrj = findProjectByDelta(rootDelta);
- if (wsPrj == null) {
- return;
- }
-
- for (IJavaElementDelta childDelta : rootDelta.getAffectedChildren())
- {
- if (childDelta.getElement() instanceof IPackageFragment && childDelta.getKind() == IJavaElementDelta.ADDED)
- {
- for (ICompilationUnit cu : ((IPackageFragment)childDelta.getElement()).getCompilationUnits())
- {
- processCompilationUnit(wsPrj, cu);
- }
- recursevilyHandleAddedPackages(childDelta);
- }
- }
- }
-
- protected IWebServiceProject findProjectByDelta(IJavaElementDelta rootDelta) {
- return util().findProjectByName(getDomBeingLoaded(), rootDelta.getElement().getJavaProject().getElementName());
- }
-
- private void recursevilyHandleRemovedPackages(IJavaElementDelta rootDelta) throws JavaModelException
- {
-
- for (IJavaElementDelta childDelta : rootDelta.getAffectedChildren())
- {
- if (childDelta.getElement() instanceof IPackageFragment)
- {
- if (childDelta.getKind() == IJavaElementDelta.REMOVED)
- {
- final IWebServiceProject wsPrj = findProjectByDelta(rootDelta);
- if (wsPrj != null) {
- removeModelElements(wsPrj, childDelta.getElement().getElementName(), true);
- }
- } else
- {
- recursevilyHandleRemovedPackages(childDelta);
- }
- }
- }
- }
-
- private void handleOpenedProject(IJavaElementDelta projectDelta) throws CoreException, WsDOMLoadCanceledException
- {
- assert projectDelta.getElement() instanceof IJavaProject;
- final IJavaProject changedProject = (IJavaProject) projectDelta.getElement();
- newProjectCUFinder(changedProject).find(null, new LoaderCompilationUnitHandler());
- }
-
- private void handleClosedProject(IJavaElementDelta projectDelta) throws CoreException
- {
- assert projectDelta.getElement() instanceof IJavaProject;
- final IWebServiceProject wsPrj = util().findProjectByName(getDomBeingLoaded(), projectDelta.getElement().getElementName());
- if (wsPrj==null) {
- return;
- }
-
- for (IServiceEndpointInterface sei : wsPrj.getServiceEndpointInterfaces())
- {
- sei.getImplementingWebServices().clear();
- }
- for (IWebService ws : wsPrj.getWebServices())
- {
- serviceData().unmap(ws);
- }
- getDomBeingLoaded().getWebServiceProjects().remove(wsPrj);
- }
-
- private ICompilationUnitFinder newProjectCUFinder(final IJavaProject prj)
- {
- return new WorkspaceCUFinder(resource().javaModel(), new IProjectSelector[] { new IProjectSelector()
- {
- public boolean approve(IJavaProject toApprove)
- {
- return prj.getElementName().equals(toApprove.getElementName());
- }
- } });
- }
-
- // handles compilation units - skips working copies
- private void recursevilyHandleCompilationUnits(IJavaElementDelta delta)
- {
- if (delta.getElement() instanceof ICompilationUnit)
- {
- final ICompilationUnit cu = (ICompilationUnit) delta.getElement();
- if (util().findProjectByName(getDomBeingLoaded(), cu.getJavaProject().getElementName())==null)
- {
- return;
- }
-
- try
- {
- if (delta.getKind() == IJavaElementDelta.ADDED && (delta.getFlags() & IJavaElementDelta.F_MOVED_FROM) == 0)
- {
- handleAddedCompilationUnit(cu);
- }
- if (delta.getKind() == IJavaElementDelta.REMOVED && (delta.getFlags() & IJavaElementDelta.F_MOVED_TO) == 0)
- {
- handleRemovedCompilationUnit(cu);
- }
- if (delta.getKind() == IJavaElementDelta.REMOVED && (delta.getFlags() & IJavaElementDelta.F_MOVED_TO) != 0)
- {
- handleMovedToCompilationUnit(cu, (ICompilationUnit) delta.getMovedToElement());
- }
- if (delta.getKind() == IJavaElementDelta.CHANGED &&
- ((delta.getFlags() & IJavaElementDelta.F_PRIMARY_RESOURCE) != 0) ||
- ((delta.getFlags() & IJavaElementDelta.F_PRIMARY_WORKING_COPY) != 0))
- {
- handleChangedContentCompilationUnit(cu);
- }
- } catch (JavaModelException jme)
- {
- logger().logError("Unable to parse the content of compilation unit" + delta.getElement(), jme); //$NON-NLS-1$
- }
- } else
- {
- for (IJavaElementDelta childDelta : delta.getAffectedChildren())
- {
- recursevilyHandleCompilationUnits(childDelta);
- }
- }
- }
-
- private void handleChangedContentCompilationUnit(ICompilationUnit cu) throws JavaModelException
- {
- final IType type = cu.findPrimaryType();
- final IAnnotation<IType> annotation = type==null ? null : resource().newAnnotationInspector(type).inspectType(WS_ANNOTATION);
- if (type == null || annotation == null)
- {
- updateSubclassingWSElements(cu);
- handleRemovedCompilationUnit(cu);
- } else
- {
- final IWebServiceProject wsProject = util().findProjectByName(getDomBeingLoaded(), cu.getJavaProject().getElementName());
- assert wsProject != null;
- processCompilationUnit(wsProject, cu);
- }
- }
-
- private void updateSubclassingWSElements(ICompilationUnit cu) throws JavaModelException
- {
- for (IWebServiceProject wsPrj : getDomBeingLoaded().getWebServiceProjects())
- {
- final IJavaProject javaPrj = javaModel().getJavaProject(wsPrj.getName());
- for (IServiceEndpointInterface sei : wsPrj.getServiceEndpointInterfaces())
- {
- if(serviceData().getHierarchy(sei.getImplementation())==null) {
- continue;
- }
- if (serviceData().getHierarchy(sei.getImplementation()).contains(cu))
- {
- processCompilationUnit(wsPrj, javaPrj.findType(sei.getImplementation()).getCompilationUnit());
- }
- }
- for (IWebService ws : wsPrj.getWebServices())
- {
- if(serviceData().getHierarchy(ws.getImplementation())==null) {
- continue;
- }
- if (serviceData().getHierarchy(ws.getImplementation()).contains(cu))
- {
- processCompilationUnit(wsPrj, javaPrj.findType(ws.getImplementation()).getCompilationUnit());
- }
- }
- }
- }
-
- private void handleAddedCompilationUnit(ICompilationUnit addedCU) throws JavaModelException
- {
- final IWebServiceProject wsPrj = util().findProjectByName(getDomBeingLoaded(), addedCU.getJavaProject().getElementName());
- this.processCompilationUnit(wsPrj, addedCU);
- }
-
- void handleMovedToCompilationUnit(ICompilationUnit fromCU, ICompilationUnit toCU) throws JavaModelException
- {
- final IJavaWebServiceElement wsElem = guessContainedWSElement(fromCU);
- if (wsElem == null)
- {
- return;
- }
-
- final boolean fqNameChanged = !toCU.getElementName().equals(fromCU.getElementName())
- || !toCU.getParent().getElementName().equals(fromCU.getParent().getElementName());
- if (fqNameChanged)
- {
- handleRemovedCompilationUnit(fromCU);
- handleAddedCompilationUnit(toCU);
- } else
- // then assume that the project only has changed.
- {
- final IWebServiceProject toPrj = util().findProjectByName(getDomBeingLoaded(), toCU.getJavaProject().getElementName());
- if (wsElem instanceof IWebService)
- {
- toPrj.getWebServices().add((IWebService) wsElem);
- } else
- {
- toPrj.getServiceEndpointInterfaces().add((IServiceEndpointInterface) wsElem);
- }
- }
- }
-
- private void handleRemovedCompilationUnit(ICompilationUnit remCU) throws JavaModelException
- {
- final IWebServiceProject wsPrj = util().findProjectByName(getDomBeingLoaded(), remCU.getJavaProject().getElementName());
- removeModelElements(wsPrj, guessPrimaryTypeName(remCU), false);
- }
-
- private void removeModelElements(IWebServiceProject wsPrj, String implBaseName, boolean isForPackage) throws JavaModelException
- {
- if (wsPrj == null) {
- return;
- }
- removeWsModelElements(wsPrj, implBaseName, isForPackage);
- removeSeiModelElements(wsPrj, implBaseName, isForPackage, false);
- }
-
- private IJavaWebServiceElement guessContainedWSElement(ICompilationUnit cu)
- {
- final IWebServiceProject wsPrj = util().findProjectByName(getDomBeingLoaded(), cu.getJavaProject().getElementName());
- return util().findJavaWebServiceElemByImplName(wsPrj, guessPrimaryTypeName(cu));
- }
-
- protected String guessPrimaryTypeName(ICompilationUnit cu)
- {
- final String parentName = cu.getParent().getElementName();
- final StringBuilder assumedPrimaryTypeName = new StringBuilder();
- if (parentName.length() > 0) {
- assumedPrimaryTypeName .append(parentName).append('.');
- }
- return assumedPrimaryTypeName.append(cu.getElementName()).
- delete(assumedPrimaryTypeName.lastIndexOf(".java"), assumedPrimaryTypeName.length()).toString();//$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/ParameterSynchronizer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/ParameterSynchronizer.java
deleted file mode 100755
index 655903d..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/ParameterSynchronizer.java
+++ /dev/null
@@ -1,244 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.HEADER_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.MODE_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.NAME_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.PART_NAME_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.TARGET_NAMESPACE_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.WP_ANNOTATION;
-
-import java.util.Collection;
-import java.util.LinkedList;
-
-import org.eclipse.jdt.core.IMethod;
-import org.eclipse.jdt.core.ITypeParameter;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jdt.core.Signature;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IAnnotationSerializer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IModelElementSynchronizer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotationInspector;
-
-/**
- * Class that synchronizes the parameters for {@link IWebMethod} object;
- *
- * @author
- */
-public class ParameterSynchronizer extends ElementSynchronizerImpl
-{
- private static final String RETURN_PARAM_NAME = "return";//$NON-NLS-1$
- private static final String HOLDER_CLASS_NAME = "Holder"; //$NON-NLS-1$
- private static final String HOLDER_CLASS_FQNAME = "javax.xml.ws.Holder";//$NON-NLS-1$
-
- public ParameterSynchronizer(IModelElementSynchronizer parent)
- {
- super(parent);
- }
-
- public void synchronizeParameters(IWebMethod wm, IMethod method, IAnnotationInspector inspector) throws JavaModelException
- {
- final Collection<IWebParam> mergedParams = new LinkedList<IWebParam>();
- if (!Signature.SIG_VOID.equals(method.getReturnType()))
- {
- final IWebParam retParam = obtainInstance(wm, RETURN_PARAM_NAME);
- mergeParam(retParam, 0, wm, method, method.getReturnType(), inspector);
- mergedParams.add(retParam);
- }
- final String[] names = method.getParameterNames();
- final String[] typeSignatures = method.getParameterTypes();
- for (int i = 0; i < names.length; i++)
- {
- final IWebParam param = obtainInstance(wm, names[i]);
- mergeParam(param, i, wm, method, typeSignatures[i], inspector);
- mergedParams.add(param);
- }
- wm.getParameters().retainAll(mergedParams);
- }
-
- private void mergeParam(IWebParam webParam, int pos, IWebMethod webMethod, IMethod method, String typeSign, IAnnotationInspector inspector) throws JavaModelException
- {
- final ITypeParameter typeParam = method.getTypeParameter(webParam.getImplementation());
- assert typeParam!= null;
-
- final IAnnotation<ITypeParameter> wpAnnotation = isWebResult(webParam) ? null : inspector.inspectParam(typeParam, WP_ANNOTATION);
-
- if (! typeSign.equals(webParam.getTypeName())) {
- util().setFeatureValue(webParam, DomPackage.IWEB_PARAM__TYPE_NAME, typeSign);
- }
-
- final WebParamKind kind = isWebResult(webParam) ? WebParamKind.OUT : calcKind(wpAnnotation, method, typeSign);
- if (!kind.equals(webParam.getKind())) {
- webParam.setKind(kind);
- }
-
- final boolean isHeader = calcHeader(wpAnnotation);
- if (webParam.isHeader() ^ isHeader) {
- webParam.setHeader(isHeader);
- }
-
- final String name = isWebResult(webParam) ? defCalc().calcWebResultDefaultName(webMethod) : calcName(wpAnnotation, webMethod, pos);
- if (!name.equals(webParam.getName())) {
- webParam.setName(name);
- }
-
- final String partName = calcPartName(wpAnnotation, name);
- if (!partName.equals(webParam.getPartName())) {
- webParam.setPartName(partName);
- }
-
- final String targetNamespace = calcTargetNamespace(wpAnnotation, webMethod, webParam);
- if (!targetNamespace.equals(webParam.getTargetNamespace())) {
- webParam.setTargetNamespace(targetNamespace);
- }
-
- resource().getSerializerFactory().adapt(webParam, IAnnotationSerializer.class);
- adaptToLocationInterface(webParam, WP_ANNOTATION, wpAnnotation);
- }
-
- private boolean isWebResult(final IWebParam param)
- {
- return param.getImplementation().equals(RETURN_PARAM_NAME);
- }
-
- protected String resolveFullyQualifiedName(final IMethod method, final String typeSignature) throws JavaModelException, IllegalArgumentException
- {
- if (Signature.getTypeSignatureKind(typeSignature) == Signature.BASE_TYPE_SIGNATURE)
- {
- return Signature.toString(typeSignature);
- }
-
- final String[][] resolvedTypes = method.getDeclaringType().resolveType(Signature.toString(typeSignature));
- if (resolvedTypes == null)
- {
- return "";//$NON-NLS-1$
- }
- final String pack = resolvedTypes[0][0];
- final String className = resolvedTypes[0][1];
- if (pack != null && pack.length() != 0)
- {
- return pack + "." + className;//$NON-NLS-1$
- } else
- {
- return className;
- }
- }
-
- protected WebParamKind calcKind(final IAnnotation<ITypeParameter> parmAnnotation, final IMethod method, final String typeSignature) throws JavaModelException, IllegalArgumentException
- {
- if (parmAnnotation != null && parmAnnotation.getPropertyValue(MODE_ATTRIBUTE) != null)
- {
- final String mode = parmAnnotation.getPropertyValue(MODE_ATTRIBUTE);
- if (WPAnnotationFeatures.WEB_PARAM_MODE_INOUT.endsWith(mode))
- {
- return WebParamKind.INOUT;
- }
- if (WPAnnotationFeatures.WEB_PARAM_MODE_IN.endsWith(mode))
- {
- return WebParamKind.IN;
- }
- if (WPAnnotationFeatures.WEB_PARAM_MODE_OUT.endsWith(mode))
- {
- return WebParamKind.OUT;
- }
- }
-
- if (isPossiblyHolderClass(typeSignature)) {
- final String typeFQName = resolveFullyQualifiedName(method, typeSignature);
- if (typeFQName.startsWith(HOLDER_CLASS_FQNAME)) {
- return WebParamKind.INOUT;
- }
- }
-
- return WebParamKind.IN;
- }
-
- /**
- * Added due to performance issues CSN 0120061532 0002256925 2009.
- * The idea is that before calling {@link #resolveFullyQualifiedName(IMethod, String)}
- * we check if the class is potentially Holder.
- */
- private boolean isPossiblyHolderClass(final String typeSignature) {
- final String erasuteTypeName = Signature.getSignatureSimpleName(Signature.getTypeErasure(typeSignature));
- if (HOLDER_CLASS_NAME.equals(erasuteTypeName)) {
- return true;
- }
-
- return false;
- }
-
- private String calcName(IAnnotation<ITypeParameter> parmAnnotation, IWebMethod webMethod, int paramPosition)
- {
- if (parmAnnotation != null && parmAnnotation.getPropertyValue(NAME_ATTRIBUTE) != null) {
- return parmAnnotation.getPropertyValue(NAME_ATTRIBUTE);
- }
-
- return defCalc().calcWebParamDefaultName(webMethod, paramPosition);
- }
-
- private String calcPartName(final IAnnotation<ITypeParameter> wpAnnotation, final String name)
- {
- if (wpAnnotation!=null && wpAnnotation.getPropertyValue(PART_NAME_ATTRIBUTE)!=null) {
- return wpAnnotation.getPropertyValue(PART_NAME_ATTRIBUTE);
- }
-
- return name;
- }
-
- private boolean calcHeader(final IAnnotation<ITypeParameter> wpAnnotation)
- {
- if (wpAnnotation!=null && wpAnnotation.getPropertyValue(HEADER_ATTRIBUTE)!=null) {
- return Boolean.parseBoolean(wpAnnotation.getPropertyValue(HEADER_ATTRIBUTE));
- }
-
- return false;
- }
-
- private String calcTargetNamespace(final IAnnotation<ITypeParameter> wpAnnotation, final IWebMethod webMethod, final IWebParam webParam)
- {
- if (wpAnnotation!=null && wpAnnotation.getPropertyValue(TARGET_NAMESPACE_ATTRIBUTE)!=null) {
- return wpAnnotation.getPropertyValue(TARGET_NAMESPACE_ATTRIBUTE);
- }
-
- return defCalc().calcWebParamDefaultTargetNS(webMethod, webParam);
- }
-
- private IWebParam obtainInstance(IWebMethod wm, String impl)
- {
- final IWebParam existing = findWebParamByImplName(wm, impl);
- if (existing != null)
- {
- return existing;
- }
- final IWebParam newParam = domFactory().createIWebParam();
- util().setFeatureValue(newParam, DomPackage.IWEB_PARAM__IMPLEMENTATION, impl);
- wm.getParameters().add(newParam);
- return newParam;
- }
-
- private IWebParam findWebParamByImplName(final IWebMethod wm, final String impl)
- {
- for (IWebParam param : wm.getParameters())
- {
- if (impl.equals(param.getImplementation()))
- {
- return param;
- }
- }
- return null;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiMerger.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiMerger.java
deleted file mode 100755
index a0ce821..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiMerger.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.SBAnnotationFeatures.SB_ANNOTATION;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.NAME_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.TARGET_NAMESPACE_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.WS_ANNOTATION;
-import static org.eclipse.jst.ws.jaxws.utils.ContractChecker.nullCheckParam;
-
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingUse;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IModelElementSynchronizer;
-import org.eclipse.jst.ws.jaxws.utils.JaxWsUtils;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotationInspector;
-
-/**
- * Synchronizer that merges content of {@link IServiceEndpointInterface} with the current content of
- * the class implementing it.
- *
- * @author Georgi Vachkov
- */
-public class SeiMerger extends ElementSynchronizerImpl
-{
- private AbstractMethodSynchronizer methodSynchronizer;
-
- /**
- * Constructor
- * @param parent
- * @param methodSync the synchronizer that takes care for the SEI methods
- */
- public SeiMerger(IModelElementSynchronizer parent, AbstractMethodSynchronizer methodSync)
- {
- super(parent);
- nullCheckParam(methodSync);
- this.methodSynchronizer = methodSync;
- }
-
- protected void merge(IServiceEndpointInterface sei, IAnnotation<IType> wsAnnotation, IAnnotationInspector inspector) throws JavaModelException
- {
- final String seiName = wsAnnotation.getPropertyValue(NAME_ATTRIBUTE) == null ?
- JaxWsUtils.getDefaultPorttypeName(wsAnnotation.getAppliedElement().getFullyQualifiedName()) : wsAnnotation.getPropertyValue(NAME_ATTRIBUTE);
-
- if (!seiName.equals(sei.getName())) {
- util().setFeatureValue(sei, DomPackage.ISERVICE_ENDPOINT_INTERFACE__NAME, seiName);
- }
-
- // add targetNamespace
- final String targetNs = extractTargetNamespace(wsAnnotation);
- if (!targetNs.equals(sei.getTargetNamespace())) {
- util().setFeatureValue(sei, DomPackage.ISERVICE_ENDPOINT_INTERFACE__TARGET_NAMESPACE, targetNs);
- }
-
- mergeSoapBinding(sei, inspector);
- methodSynchronizer.synchronizeMethods(sei, wsAnnotation.getAppliedElement(), inspector);
-
- adaptToLocationInterface(sei, WS_ANNOTATION, wsAnnotation);
- }
-
- private String extractTargetNamespace(final IAnnotation<IType> wsAnnotation)
- {
- // add targetNamespace
- final String targetNs = wsAnnotation.getPropertyValue(TARGET_NAMESPACE_ATTRIBUTE);
- if (targetNs==null) {
- return JaxWsUtils.composeJaxWsTargetNamespaceByPackage(wsAnnotation.getAppliedElement().getPackageFragment().getElementName());
- }
-
- return targetNs;
- }
-
- private void mergeSoapBinding(final IServiceEndpointInterface sei, final IAnnotationInspector inspector) throws JavaModelException
- {
- final IAnnotation<IType> sbAnnotation = inspector.inspectType(SB_ANNOTATION);
-
- final SOAPBindingStyle style = defCalc().defineSBStyle(sbAnnotation);
- if (sei.getSoapBindingStyle() != style) {
- sei.setSoapBindingStyle(style);
- }
-
- final SOAPBindingUse use = defCalc().defineSBUse(sbAnnotation);
- if (sei.getSoapBindingUse() != use) {
- sei.setSoapBindingUse(use);
- }
-
- final SOAPBindingParameterStyle paramStyle = defCalc().defineSBParameterStyle(sbAnnotation);
- if (sei.getSoapBindingParameterStyle() != paramStyle) {
- sei.setSoapBindingParameterStyle(paramStyle);
- }
-
- adaptToLocationInterface(sei, SB_ANNOTATION, sbAnnotation);
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiMethodSynchronizer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiMethodSynchronizer.java
deleted file mode 100755
index c354f58..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiMethodSynchronizer.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import org.eclipse.jdt.core.IMethod;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.ITypeHierarchy;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IModelElementSynchronizer;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotationInspector;
-
-class SeiMethodSynchronizer extends AbstractMethodSynchronizer
-{
-
- public SeiMethodSynchronizer(IModelElementSynchronizer parent)
- {
- super(parent);
- }
-
- @Override
- protected void visitExposableMethods(IMethodVisitor visitor, ITypeHierarchy hierarchy, IAnnotationInspector inspector) throws JavaModelException
- {
- visitRecursively(visitor, hierarchy.getType(), hierarchy, inspector);
- }
-
- private void visitRecursively(IMethodVisitor visitor, IType type, ITypeHierarchy hierarchy, IAnnotationInspector inspector) throws JavaModelException
- {
- for (IMethod method : type.getMethods())
- {
- visitor.visit(method, inspector);
- }
-
- for (IType superIntf : hierarchy.getSuperInterfaces(type))
- {
- visitRecursively(visitor, superIntf, hierarchy, resource().newAnnotationInspector(superIntf));
- }
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiSynchronizer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiSynchronizer.java
deleted file mode 100755
index 98efa72..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/SeiSynchronizer.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IAnnotationSerializer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IModelElementSynchronizer;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotationInspector;
-
-/**
- * Synchronizer for explicit {@link IServiceEndpointInterface} instance. Updates the DOM instance to the current
- * SEI implementation class by reading relevant annotations and
- *
- * @author
- */
-public class SeiSynchronizer extends ElementSynchronizerImpl
-{
- private final SeiMerger seiMerger;
-
- SeiSynchronizer(IModelElementSynchronizer parent)
- {
- super(parent);
- seiMerger = new SeiMerger(this, new SeiMethodSynchronizer(this));
- }
-
- /* IServiceEndpointInterface */
- void synchronizeInterface(IWebServiceProject wsProject, IAnnotation<IType> wsAnnotation, IAnnotationInspector inspector) throws JavaModelException
- {
- final IServiceEndpointInterface sei = obtainInstance(wsProject, wsAnnotation.getAppliedElement().getFullyQualifiedName());
- seiMerger.merge(sei, wsAnnotation, inspector);
- resolveWsRefsToThisSei(sei);
- resource().getSerializerFactory().adapt(sei, IAnnotationSerializer.class);
- }
-
- private IServiceEndpointInterface obtainInstance(IWebServiceProject wsProject, String implName)
- {
- IServiceEndpointInterface sei = null;
- for (IServiceEndpointInterface existing : wsProject.getServiceEndpointInterfaces())
- {
- if (existing.getImplementation().equals(implName)) {
- sei = existing;
- }
- }
-
- if (sei==null)
- {
- sei = domFactory().createIServiceEndpointInterface();
- util().setFeatureValue(sei, DomPackage.IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION, implName);
- wsProject.getServiceEndpointInterfaces().add(sei);
- }
-
- util().setFeatureValue(sei, DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLICIT, false);
-
- return sei;
- }
-
- private void resolveWsRefsToThisSei(IServiceEndpointInterface sei)
- {
- for (IWebService ws : serviceData().getImplementingWs(sei.getImplementation()))
- {
- if (ws.getServiceEndpoint() != sei)
- {
- util().setFeatureValue(ws, DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT, sei);
- }
- }
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/WSMethodSynchronizer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/WSMethodSynchronizer.java
deleted file mode 100755
index 90934ec..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/WSMethodSynchronizer.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WMAnnotationFeatures.WM_ANNOTATION;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.WS_ANNOTATION;
-
-import org.eclipse.jdt.core.IMethod;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.ITypeHierarchy;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jdt.core.dom.Modifier;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IModelElementSynchronizer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WMAnnotationFeatures;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotationInspector;
-
-public class WSMethodSynchronizer extends AbstractMethodSynchronizer
-{
-
- public WSMethodSynchronizer(IModelElementSynchronizer parent)
- {
- super(parent);
- }
-
- @Override
- protected void visitExposableMethods(IMethodVisitor visitor, ITypeHierarchy hierarchy, IAnnotationInspector inspector) throws JavaModelException
- {
- visitRecursively(visitor, hierarchy.getType(), hierarchy, inspector);
- }
-
- private void visitRecursively(IMethodVisitor visitor, IType type, ITypeHierarchy hierarchy, IAnnotationInspector inspector) throws JavaModelException
- {
- if (type == null)
- {
- return;
- }
-
- assert type.isClass();
- final boolean isWebService = inspector.inspectType(WS_ANNOTATION) != null;
- for (IMethod method : type.getMethods())
- {
- if(method.isConstructor())
- {
- // Constructors can never take part in the porttype
- continue;
- }
-
- final IAnnotation<IMethod> wmAnnotation = inspector.inspectMethod(method, WM_ANNOTATION);
- final boolean isExcludedWithAnnotation = wmAnnotation == null ? false : "true".equals(wmAnnotation//$NON-NLS-1$
- .getPropertyValue(WMAnnotationFeatures.WM_EXCLUDED_ATTRIBUTE));
- if (Modifier.isPublic(method.getFlags()) && !isExcludedWithAnnotation && (isWebService || wmAnnotation != null))
- {
- visitor.visit(method, inspector);
- }
- }
-
- final IType superType = hierarchy.getSuperclass(type);
- if (superType!=null) {
- visitRecursively(visitor, superType, hierarchy, resource().newAnnotationInspector(superType));
- }
- }
-
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/WsSynchronizer.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/WsSynchronizer.java
deleted file mode 100755
index 424fe84..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/persistence/sync/WsSynchronizer.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.persistence.sync;
-
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.ENDPOINT_INTERFACE_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.PORT_NAME_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.SERVICE_NAME_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.TARGET_NAMESPACE_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.WSDL_LOCATION_ATTRIBUTE;
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WSAnnotationFeatures.WS_ANNOTATION;
-
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomFactory;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IAnnotationSerializer;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.IModelElementSynchronizer;
-import org.eclipse.jst.ws.jaxws.utils.JaxWsUtils;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotationInspector;
-
-public class WsSynchronizer extends ElementSynchronizerImpl
-{
- private final SeiMerger seiMerger;
-
- public WsSynchronizer(IModelElementSynchronizer parent)
- {
- super(parent);
- this.seiMerger = new SeiMerger(this, new WSMethodSynchronizer(this));
- }
-
- private IWebService obtainInstance(IWebServiceProject wsProject, String implName)
- {
- for (IWebService ws : wsProject.getWebServices())
- {
- if (ws.getImplementation()!= null && ws.getImplementation().equals(implName))
- {
- return ws;
- }
- }
- final IWebService newWs = DomFactory.eINSTANCE.createIWebService();
- util().setFeatureValue(newWs, DomPackage.IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION, implName);
- util().addToCollectionFeature(wsProject, DomPackage.IWEB_SERVICE_PROJECT__WEB_SERVICES, newWs);
-
- return newWs;
- }
-
- public IWebService synchronizeWebService(IWebServiceProject wsProject, IAnnotation<IType> wsAnnotation, IAnnotationInspector inspector) throws JavaModelException
- {
- final IWebService ws = obtainInstance(wsProject, wsAnnotation.getAppliedElement().getFullyQualifiedName());
- mergeWebService(ws, wsProject, wsAnnotation, inspector);
-
- resource().getSerializerFactory().adapt(ws, IAnnotationSerializer.class);
- adaptToLocationInterface(ws, WS_ANNOTATION, wsAnnotation);
-
- return ws;
- }
-
- private void mergeWebService(IWebService toMerge, IWebServiceProject wsProject, IAnnotation<IType> wsAnnotation, IAnnotationInspector inspector) throws JavaModelException
- {
- // add serviceName name
- final String wsName = wsAnnotation.getPropertyValue(SERVICE_NAME_ATTRIBUTE) == null ?
- JaxWsUtils.getDefaultServiceName(wsAnnotation.getAppliedElement().getFullyQualifiedName()) :
- wsAnnotation.getPropertyValue(SERVICE_NAME_ATTRIBUTE);
-
- if (!wsName.equals(toMerge.getName()))
- {
- util().setFeatureValue(toMerge, DomPackage.IWEB_SERVICE__NAME, wsName);
- }
-
- // add targetNamespace
- final String targetNs = extractTargetNamespace(wsAnnotation);
- if (!targetNs.equals(toMerge.getTargetNamespace())) {
- util().setFeatureValue(toMerge, DomPackage.IWEB_SERVICE__TARGET_NAMESPACE, targetNs);
- }
-
- // add portName
- final String portName = wsAnnotation.getPropertyValue(PORT_NAME_ATTRIBUTE)==null ?
- JaxWsUtils.getDefaultPortName(wsAnnotation.getAppliedElement().getFullyQualifiedName()) :
- wsAnnotation.getPropertyValue(PORT_NAME_ATTRIBUTE);
-
- if (!portName.equals(toMerge.getPortName())) {
- toMerge.setPortName(portName);
- }
-
- // add wsdlLocation
- toMerge.setWsdlLocation(wsAnnotation.getPropertyValue(WSDL_LOCATION_ATTRIBUTE));
-
- // add endpointInterface
- final String newSeiImpl = wsAnnotation.getPropertyValue(ENDPOINT_INTERFACE_ATTRIBUTE);
- if (newSeiImpl == null)
- {
- mergeImplicitInterface(obtainImplicitInterfaceInstance(wsProject, toMerge, wsAnnotation), wsAnnotation, inspector);
- } else
- {
- if (toMerge.getServiceEndpoint() == null || !toMerge.getServiceEndpoint().getImplementation().equals(newSeiImpl))
- {
- serviceData().map(toMerge, newSeiImpl);
- resolveInterface(toMerge, wsProject, wsAnnotation.getPropertyValue(ENDPOINT_INTERFACE_ATTRIBUTE));
- }
- }
- }
-
- private IServiceEndpointInterface obtainImplicitInterfaceInstance(IWebServiceProject wsProject, IWebService ws, IAnnotation<IType> wsAnnotation)
- {
- if (ws.getServiceEndpoint() != null && ws.getServiceEndpoint().isImplicit())
- {
- return ws.getServiceEndpoint();
- }
-
- final IServiceEndpointInterface sei = DomFactory.eINSTANCE.createIServiceEndpointInterface();
- util().setFeatureValue(sei, DomPackage.ISERVICE_ENDPOINT_INTERFACE__IMPLICIT, true);
- util().setFeatureValue(sei, DomPackage.IJAVA_WEB_SERVICE_ELEMENT__IMPLEMENTATION, wsAnnotation.getAppliedElement().getFullyQualifiedName());
- util().setFeatureValue(ws, DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT, sei);
-
- wsProject.getServiceEndpointInterfaces().add(sei);
-
- return sei;
- }
-
- private void mergeImplicitInterface(IServiceEndpointInterface sei, IAnnotation<IType> wsAnnotation, IAnnotationInspector inspector) throws JavaModelException
- {
- seiMerger.merge(sei, wsAnnotation, inspector);
- resource().getSerializerFactory().adapt(sei, IAnnotationSerializer.class);
- }
-
- private String extractTargetNamespace(final IAnnotation<IType> wsAnnotation)
- {
- // add targetNamespace
- final String targetNs = wsAnnotation.getPropertyValue(TARGET_NAMESPACE_ATTRIBUTE);
- if (targetNs==null) {
- return JaxWsUtils.composeJaxWsTargetNamespaceByPackage(wsAnnotation.getAppliedElement().getPackageFragment().getElementName());
- }
-
- return targetNs;
- }
-
- private void resolveInterface(IWebService ws, IWebServiceProject preffered, String implementation)
- {
- IServiceEndpointInterface resolved = null;
- for (IWebServiceProject prj : getDomBeingLoaded().getWebServiceProjects())
- {
- for (IServiceEndpointInterface sei : prj.getServiceEndpointInterfaces())
- {
- if (sei.getImplementation().equals(implementation))
- {
- resolved = sei;
- if (preffered.equals(prj))
- {
- break;
- } else
- {
- resolved = sei;
- }
- }
- }
- }
-
- util().setFeatureValue(ws, DomPackage.IWEB_SERVICE__SERVICE_ENDPOINT, resolved);
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/registry/IWsDOMRuntimeInfo.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/registry/IWsDOMRuntimeInfo.java
deleted file mode 100755
index af8cb07..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/registry/IWsDOMRuntimeInfo.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.registry;
-
-import java.util.Map;
-
-import org.eclipse.jst.ws.jaxws.dom.runtime.INamedExtensionInfo;
-
-/**
- * Defines the information structure which should be instantiated upon reading contributors
- * to the Supported Runtime extension point.
- *
- * @author Georgi Hristov I036201
- *
- */
-public interface IWsDOMRuntimeInfo extends INamedExtensionInfo
-{
- /**
- *
- * @return the map of project facets relevant for a particular runtime where the key is
- * the project facet id and the value is the version of the project facet if specified.
- */
- public abstract Map<String, String> getProjectFacets();
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/registry/WsDOMRuntimeRegistry.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/registry/WsDOMRuntimeRegistry.java
deleted file mode 100755
index 52a82fc..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/registry/WsDOMRuntimeRegistry.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.registry;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWsDOMRuntimeExtension;
-import org.eclipse.jst.ws.jaxws.dom.runtime.internal.plugin.JaxWsDomRuntimePlugin;
-import org.eclipse.jst.ws.jaxws.dom.runtime.internal.util.NamedExtensionInfo;
-import org.eclipse.jst.ws.jaxws.utils.logging.ILogger;
-import org.eclipse.jst.ws.jaxws.utils.logging.Logger;
-
-/**
- *
- *
- * @author Georgi Hristov I036201
- *
- */
-public class WsDOMRuntimeRegistry
-{
- private static final class RuntimeInfo extends NamedExtensionInfo implements IWsDOMRuntimeInfo
- {
- private Map<String, String> projectFacets;
-
- RuntimeInfo(final String pId, final String pLabel, final Map<String, String> projectFacets)
- {
- super(pId, pLabel);
-
- this.projectFacets = projectFacets;
- }
-
- public Map<String,String> getProjectFacets()
- {
- return this.projectFacets;
- }
- }
-
- /** The ID of the extension point for a supported runtime */
- private static final String RUNTIME_XP = JaxWsDomRuntimePlugin.PLUGIN_ID + ".domruntimes"; //$NON-NLS-1$
-
- /** Error message displayed when extension point not properly defined */
- public static final String EXTENSION_NOT_PROPERLY_REGISTERED = "Registered runtime extension not properly registered (error in plugin.xml)"; //$NON-NLS-1$
-
- private static final String XP_IMPLEMENTATION_ELEMENT = "implementation"; //$NON-NLS-1$
-
- private static final String XP_PROJECT_FACET_ELEMENT = "project_facet"; //$NON-NLS-1$
-
- private static final String XP_PROJECT_FACET_ID = "id"; //$NON-NLS-1$
-
- private static final String XP_PROJECT_FACET_VERSION = "version"; //$NON-NLS-1$
-
- private static final String XP_IMPLEMENTATION_ELEMENT_CLASS_ATTR = "class"; //$NON-NLS-1$
-
- /**
- * Creates and returns a new instance of the executable extension.
- *
- * @param info the descriptor object built during extension point load
- * @return instance of runtime extension implementation
- */
- public static IWsDOMRuntimeExtension instantiateRuntime(final IWsDOMRuntimeInfo info)
- {
- final IExtension ext = findExtension(info);
-
- if(ext==null)
- {
- logger().logError(EXTENSION_NOT_PROPERLY_REGISTERED);
- return null;
- }
-
- for (IConfigurationElement el : ext.getConfigurationElements())
- {
- if (el.getName().equals(XP_IMPLEMENTATION_ELEMENT))
- {
- try
- {
- //FIXME ClassCastException showing up in the logs in the WTP build
- Object impl = el.createExecutableExtension(XP_IMPLEMENTATION_ELEMENT_CLASS_ATTR);
- if (impl instanceof IWsDOMRuntimeExtension) {
- return (IWsDOMRuntimeExtension) impl;
- } else {
- return null;
- }
-// return (IWsDOMRuntimeExtension) el.createExecutableExtension(XP_IMPLEMENTATION_ELEMENT_CLASS_ATTR);
- }
- catch (final CoreException e)
- {
- logger().logError("Unable to create extension", e); //$NON-NLS-1$
- return null;
-
- }
-// catch (final ClassCastException e)
-// {
-// logger().logError("Implementation class does not implement proper interface", e); //$NON-NLS-1$
-// return null;
-// }
- }
- }
-
- logger().logError(EXTENSION_NOT_PROPERLY_REGISTERED);
- throw new RuntimeException(EXTENSION_NOT_PROPERLY_REGISTERED);
- }
-
- /**
- * Locates the extension point contribution definition for this particular runtime.
- *
- * @param info the descriptor object built during extension point load
- * @return instance of contribution definition
- */
- public static IExtension findExtension(final IWsDOMRuntimeInfo info)
- {
- if(info!=null)
- {
- final IExtension[] exts = Platform.getExtensionRegistry().getExtensionPoint(RUNTIME_XP).getExtensions();
-
- for (int i = 0; i < exts.length; i++)
- {
- if (exts[i].getSimpleIdentifier().equals(info.getId()))
- {
- return exts[i];
- }
- }
- }
-
- return null;
- }
-
- /**
- * Returns the registered runtimes.
- *
- * @return set of information records for the registered runtimes
- */
- public static Collection<IWsDOMRuntimeInfo> getRegisteredRuntimesInfo()
- {
- final IExtension[] exts = Platform.getExtensionRegistry().getExtensionPoint(RUNTIME_XP).getExtensions();
- final Collection<IWsDOMRuntimeInfo> runtimeDescriptors = new ArrayList<IWsDOMRuntimeInfo>(exts.length);
-
- for (int i = 0; i < exts.length; i++)
- {
- HashMap<String,String> projectFacets = new HashMap<String,String>();
-
- for (IConfigurationElement el : exts[i].getConfigurationElements())
- {
- if (el.getName().equals(XP_PROJECT_FACET_ELEMENT))
- {
- projectFacets.put(el.getAttribute(XP_PROJECT_FACET_ID),el.getAttribute(XP_PROJECT_FACET_VERSION));
- }
- }
-
-
- runtimeDescriptors.add(new RuntimeInfo(exts[i].getSimpleIdentifier(), exts[i].getLabel(), projectFacets));
- }
-
- return runtimeDescriptors;
- }
-
- /**
- * Returns the runtime descriptor object corresponding to this runtime id.
- *
- * @param runtimeId the identifier of the runtime
- * @return descriptor object for the needed runtime
- */
- public static IWsDOMRuntimeInfo getRuntimeInfo(final String runtimeId)
- {
- Iterator<IWsDOMRuntimeInfo> registeredRuntime = getRegisteredRuntimesInfo().iterator();
-
- while(registeredRuntime.hasNext())
- {
- IWsDOMRuntimeInfo runtimeInfo = registeredRuntime.next();
-
- if(runtimeInfo.getId().equals(runtimeId))
- {
- return runtimeInfo;
- }
- }
-
- return null;
- }
-
- private static ILogger logger()
- {
- return new Logger();
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/Dom2ResourceMapper.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/Dom2ResourceMapper.java
deleted file mode 100755
index 2ef2526..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/Dom2ResourceMapper.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.util;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.ws.jaxws.dom.runtime.DomUtil;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.utils.ContractChecker;
-
-
-/**
- * Class that takes care for mapping DOM objects to Eclipse resources.
- *
- * @author Georgi Vachkov
- */
-public class Dom2ResourceMapper
-{
- /** the singleton instance */
- public static final Dom2ResourceMapper INSTANCE = new Dom2ResourceMapper();
-
- private DomSwitch<String> implClassFinderSwitch;
-
- /**
- * Singleton Constructor
- */
- private Dom2ResourceMapper() {
- this.implClassFinderSwitch = createImplFinderSwitch();
- }
-
- /**
- * Finds underlying {@link IResource} for this DOM object
- * @param eObject the DOM object
- * @return found resource or <code>null</code>
- * @throws JavaModelException
- */
- public IResource findResource(final EObject eObject) throws JavaModelException
- {
- ContractChecker.nullCheckParam(eObject);
- switch (eObject.eClass().getClassifierID())
- {
- case DomPackage.IWEB_SERVICE:
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE:
- case DomPackage.IWEB_METHOD:
- case DomPackage.IWEB_PARAM:
- final IType type = findType(eObject);
- return type==null ? null : type.getResource();
- case DomPackage.IWEB_SERVICE_PROJECT:
- return findProject((IWebServiceProject)eObject);
- }
-
- return null;
- }
-
- /**
- * Finds IProject instance for the web service project represented by <code>wsProject</code>
- * @param wsProject the project DOM object
- * @return found resource or <code>null</code>
- */
- public IProject findProject(final IWebServiceProject wsProject)
- {
- if (wsProject == null) {
- return null;
- }
-
- return ResourcesPlugin.getWorkspace().getRoot().getProject(wsProject.getName());
- }
-
- /**
- * Finds underlying {@link IType} instance for this <code>eObject</code>
- * @param eObject the DOM object
- * @return the IType containing this <code>eObject</code> or <code>null</code>
- * @throws JavaModelException
- */
- public IType findType(final EObject eObject) throws JavaModelException
- {
- ContractChecker.nullCheckParam(eObject);
-
- final IProject project = findProject(DomUtil.INSTANCE.findWsProject(eObject));
- final IJavaProject javaProject = JavaCore.create(project);
- final String fqName = implClassFinderSwitch.doSwitch(eObject);
- if (javaProject==null || fqName == null) {
- return null;
- }
-
- return javaProject.findType(fqName);
- }
-
- private DomSwitch<String> createImplFinderSwitch()
- {
- return new DomSwitch<String>()
- {
- @Override
- public String caseIWebService(IWebService ws) {
- return ws.getImplementation();
- }
-
- @Override
- public String caseIServiceEndpointInterface(IServiceEndpointInterface sei) {
- return sei == null ? null : sei.getImplementation();
- }
-
- @Override
- public String caseIWebMethod(IWebMethod wm) {
- return wm == null ? null : caseIServiceEndpointInterface((IServiceEndpointInterface) wm.eContainer());
- }
-
- @Override
- public String caseIWebParam(IWebParam wp) {
- return caseIWebMethod((IWebMethod)wp.eContainer());
- }
- };
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/DomAdapterFactory.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/DomAdapterFactory.java
deleted file mode 100755
index 1fb53cd..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/DomAdapterFactory.java
+++ /dev/null
@@ -1,281 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebType;
-
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage
- * @generated
- */
-public class DomAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static DomPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DomAdapterFactory() {
- if (modelPackage == null)
- {
- modelPackage = DomPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DomSwitch<Adapter> modelSwitch =
- new DomSwitch<Adapter>()
- {
- @Override
- public Adapter caseIDOM(IDOM object)
- {
- return createIDOMAdapter();
- }
- @Override
- public Adapter caseIJavaWebServiceElement(IJavaWebServiceElement object)
- {
- return createIJavaWebServiceElementAdapter();
- }
- @Override
- public Adapter caseIServiceEndpointInterface(IServiceEndpointInterface object)
- {
- return createIServiceEndpointInterfaceAdapter();
- }
- @Override
- public Adapter caseIWebMethod(IWebMethod object)
- {
- return createIWebMethodAdapter();
- }
- @Override
- public Adapter caseIWebParam(IWebParam object)
- {
- return createIWebParamAdapter();
- }
- @Override
- public Adapter caseIWebService(IWebService object)
- {
- return createIWebServiceAdapter();
- }
- @Override
- public Adapter caseIWebServiceProject(IWebServiceProject object)
- {
- return createIWebServiceProjectAdapter();
- }
- @Override
- public Adapter caseIWebType(IWebType object)
- {
- return createIWebTypeAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object)
- {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM <em>IDOM</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM
- * @generated
- */
- public Adapter createIDOMAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement <em>IJava Web Service Element</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement
- * @generated
- */
- public Adapter createIJavaWebServiceElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface <em>IService Endpoint Interface</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface
- * @generated
- */
- public Adapter createIServiceEndpointInterfaceAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod <em>IWeb Method</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod
- * @generated
- */
- public Adapter createIWebMethodAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam <em>IWeb Param</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam
- * @generated
- */
- public Adapter createIWebParamAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService <em>IWeb Service</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService
- * @generated
- */
- public Adapter createIWebServiceAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject <em>IWeb Service Project</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject
- * @generated
- */
- public Adapter createIWebServiceProjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebType <em>IWeb Type</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebType
- * @generated
- */
- public Adapter createIWebTypeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
- @Override
- public Adapter adapt(Notifier target, Object type)
- {
- synchronized (target) {
- return super.adapt(target, type);
- }
- }
-
-} //DomAdapterFactory
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/DomSwitch.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/DomSwitch.java
deleted file mode 100755
index 8952148..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/DomSwitch.java
+++ /dev/null
@@ -1,306 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IDOM;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IJavaWebServiceElement;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IServiceEndpointInterface;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebService;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebServiceProject;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebType;
-
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.ws.jaxws.dom.runtime.api.DomPackage
- * @generated
- */
-public class DomSwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static DomPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DomSwitch() {
- if (modelPackage == null)
- {
- modelPackage = DomPackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage)
- {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else
- {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch(eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID)
- {
- case DomPackage.IDOM:
- {
- IDOM idom = (IDOM)theEObject;
- T result = caseIDOM(idom);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomPackage.IJAVA_WEB_SERVICE_ELEMENT:
- {
- IJavaWebServiceElement iJavaWebServiceElement = (IJavaWebServiceElement)theEObject;
- T result = caseIJavaWebServiceElement(iJavaWebServiceElement);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomPackage.ISERVICE_ENDPOINT_INTERFACE:
- {
- IServiceEndpointInterface iServiceEndpointInterface = (IServiceEndpointInterface)theEObject;
- T result = caseIServiceEndpointInterface(iServiceEndpointInterface);
- if (result == null) result = caseIJavaWebServiceElement(iServiceEndpointInterface);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomPackage.IWEB_METHOD:
- {
- IWebMethod iWebMethod = (IWebMethod)theEObject;
- T result = caseIWebMethod(iWebMethod);
- if (result == null) result = caseIJavaWebServiceElement(iWebMethod);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomPackage.IWEB_PARAM:
- {
- IWebParam iWebParam = (IWebParam)theEObject;
- T result = caseIWebParam(iWebParam);
- if (result == null) result = caseIJavaWebServiceElement(iWebParam);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomPackage.IWEB_SERVICE:
- {
- IWebService iWebService = (IWebService)theEObject;
- T result = caseIWebService(iWebService);
- if (result == null) result = caseIJavaWebServiceElement(iWebService);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomPackage.IWEB_SERVICE_PROJECT:
- {
- IWebServiceProject iWebServiceProject = (IWebServiceProject)theEObject;
- T result = caseIWebServiceProject(iWebServiceProject);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomPackage.IWEB_TYPE:
- {
- IWebType iWebType = (IWebType)theEObject;
- T result = caseIWebType(iWebType);
- if (result == null) result = caseIJavaWebServiceElement(iWebType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>IDOM</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>IDOM</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIDOM(IDOM object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>IJava Web Service Element</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>IJava Web Service Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIJavaWebServiceElement(IJavaWebServiceElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>IService Endpoint Interface</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>IService Endpoint Interface</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIServiceEndpointInterface(IServiceEndpointInterface object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>IWeb Method</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>IWeb Method</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIWebMethod(IWebMethod object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>IWeb Param</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>IWeb Param</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIWebParam(IWebParam object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>IWeb Service</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>IWeb Service</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIWebService(IWebService object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>IWeb Service Project</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>IWeb Service Project</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIWebServiceProject(IWebServiceProject object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>IWeb Type</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>IWeb Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIWebType(IWebType object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} //DomSwitch
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/Jee5DomUtils.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/Jee5DomUtils.java
deleted file mode 100755
index 7455d79..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/Jee5DomUtils.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.util;
-
-import static org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures.WP_ANNOTATION;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebMethod;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.IWebParam;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingParameterStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.SOAPBindingStyle;
-import org.eclipse.jst.ws.jaxws.dom.runtime.api.WebParamKind;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.WPAnnotationFeatures;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation.AnnotationAdapterFactory;
-import org.eclipse.jst.ws.jaxws.dom.runtime.persistence.annotation.IAnnotationAdapter;
-import org.eclipse.jst.ws.jaxws.utils.annotations.IAnnotation;
-
-/**
- * Utility for some specification specific logics that are frequently used
- * while dealing with DOM objects.
- *
- * @author Georgi Vachkov
- */
-public class Jee5DomUtils
-{
- /** the singleton instance */
- private static Jee5DomUtils instance;
-
- private Jee5DomUtils() {
- // singleton
- }
-
- /**
- * Method that decides if the attribute 'partName' is used at all according
- * to JSR-181 section 4.4.1 - attribute 'partName' column 'meaning'.
- * @param webParam the webParam to be checked
- * @return <code>true</code> in case partName is used
- */
- public boolean isPartNameUsed(final IWebParam webParam)
- {
- final IWebMethod webMethod = (IWebMethod)webParam.eContainer();
-
- return webMethod.getSoapBindingStyle()==SOAPBindingStyle.RPC ||
- webMethod.getSoapBindingParameterStyle()==SOAPBindingParameterStyle.BARE;
- }
-
- /**
- * Method that decides is the attribute 'name' is used at all
- * according to JSR-181 section 4.4.1 - attribute 'name' column 'meaning'
- * @param webParam
- * @return return <code>true</code> in case name is used
- */
- public boolean isNameUsed(final IWebParam webParam)
- {
- final IWebMethod webMethod = (IWebMethod)webParam.eContainer();
- if( webMethod.getSoapBindingStyle()==SOAPBindingStyle.DOCUMENT || webParam.isHeader() ) {
- return true;
- }
-
- final IAnnotation<? extends IJavaElement> annotation = findAnnotation(webParam, WP_ANNOTATION);
- if (annotation==null) {
- return false;
- }
-
- return annotation.getPropertyValue(WPAnnotationFeatures.PART_NAME_ATTRIBUTE)==null;
- }
-
- /**
- * Helper method to extract annotation with fully qualified name <code>annFQName</code>
- * @param eObject the object to search in
- * @param annFQName the FQ name of searched annotation
- * @return found annotation or <code>null</code>
- */
- public IAnnotation<? extends IJavaElement> findAnnotation(final EObject eObject, final String annFQName)
- {
- final IAnnotationAdapter adapter = (IAnnotationAdapter)AnnotationAdapterFactory.INSTANCE.adapt(eObject, IAnnotationAdapter.class);
- if (adapter!=null) {
- return adapter.getAnnotation(annFQName);
- }
-
- return null;
- }
-
- /**
- * Method that decides if the param name is required to be put in the annotation according
- * to JSR-181 section 4.4.1 - attribute 'name' column 'meaning'.
- * @param webParam
- * @return <code>true</code> if the name attribute should be put on annotation
- */
- public boolean isNameRequired(final IWebParam webParam)
- {
- final IWebMethod webMethod = (IWebMethod)webParam.eContainer();
-
- if (webMethod.getSoapBindingStyle()==SOAPBindingStyle.DOCUMENT &&
- webMethod.getSoapBindingParameterStyle()==SOAPBindingParameterStyle.BARE &&
- (webParam.getKind()==WebParamKind.INOUT || webParam.getKind()==WebParamKind.OUT)) {
- return true;
- }
-
- return false;
- }
-
- /**
- * @return the singleton instance
- */
- public static Jee5DomUtils getInstance()
- {
- if (instance == null) {
- instance = new Jee5DomUtils();
- }
-
- return instance;
- }
-}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/ParamValueComparator.java b/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/ParamValueComparator.java
deleted file mode 100755
index 4e77245..0000000
--- a/bundles/org.eclipse.jst.ws.jaxws.dom.runtime/src/org/eclipse/jst/ws/jaxws/dom/runtime/util/ParamValueComparator.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.ws.jaxws.dom.runtime.util;
-
-import java.util.Comparator;
-import java.util.TreeSet;
-
-import org.eclipse.jst.ws.jaxws.utils.annotations.IParamValuePair;
-
-/**
- * Class that compares {@link IParamValuePair} by property name. Intended to be used when
- * creating a {@link TreeSet} for annotation properties.
- *
- * @author Georgi Vachkov
- */
-public class ParamValueComparator implements Comparator<IParamValuePair>
-{
- public enum Order {Normal, Reversed};
-
- private final Order order;
-
- public ParamValueComparator() {
- order = Order.Normal;
- }
-
- public ParamValueComparator(final Order order) {
- this.order = order;
- }
-
-
- public int compare(IParamValuePair o1, IParamValuePair o2)
- {
- if(order==Order.Normal) {
- return o1.getParam().compareTo(o2.getParam());
- }
-
- return o2.getParam().compareTo(o1.getParam());
- }
-} \ No newline at end of file

Back to the top