Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkchong2006-12-21 18:09:30 +0000
committerkchong2006-12-21 18:09:30 +0000
commitbd3c88800f77c30f1c23bed702d10b8c20342d5b (patch)
tree611bf50880b7fcfb1115b71c4c746c26c286d249 /bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/SoapExtensiblityElementFilter.java
parent995db34657fd4578e1c15b1c67ff398d2e6047d6 (diff)
downloadwebtools.webservices-200612211813.tar.gz
webtools.webservices-200612211813.tar.xz
webtools.webservices-200612211813.zip
This commit was manufactured by cvs2svn to create tag 'v200612211813'.v200612211813
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/SoapExtensiblityElementFilter.java')
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/SoapExtensiblityElementFilter.java61
1 files changed, 0 insertions, 61 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/SoapExtensiblityElementFilter.java b/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/SoapExtensiblityElementFilter.java
deleted file mode 100644
index ade3eb727..000000000
--- a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/SoapExtensiblityElementFilter.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.wsdl.ui.internal.filter;
-
-import org.eclipse.wst.wsdl.util.WSDLConstants;
-import org.w3c.dom.Element;
-
-public class SoapExtensiblityElementFilter implements ExtensiblityElementFilter
-{
- public SoapExtensiblityElementFilter()
- {
- }
-
- public boolean isValidContext(Element parentElement, String localName)
- {
- boolean result = true;
-
- String parentElementName = parentElement.getLocalName();
- if (parentElement.getNamespaceURI().equals(WSDLConstants.WSDL_NAMESPACE_URI))
- {
- // here we assume the parent element is the WSDL binding
- // skeleton and that the 'localName' is the SOAP extension element
- //
- if (parentElementName.equals("binding")) //$NON-NLS-1$
- {
- result = localName.equals("binding"); //$NON-NLS-1$
- }
- else if (parentElementName.equals("operation")) //$NON-NLS-1$
- {
- result = localName.equals("operation"); //$NON-NLS-1$
- }
- else if (parentElementName.equals("input") || //$NON-NLS-1$
- parentElementName.equals("output")) //$NON-NLS-1$
- {
- result = localName.equals("body") || //$NON-NLS-1$
- localName.equals("header"); //$NON-NLS-1$
- }
- else if (parentElementName.equals("fault")) //$NON-NLS-1$
- {
- result = localName.equals("fault"); //$NON-NLS-1$
- }
- else if (parentElementName.equals("port")) //$NON-NLS-1$
- {
- result = localName.equals("address"); //$NON-NLS-1$
- }
- else
- {
- result = false;
- }
- }
- return result;
- }
-}

Back to the top