Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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