From bd3c88800f77c30f1c23bed702d10b8c20342d5b Mon Sep 17 00:00:00 2001 From: kchong Date: Thu, 21 Dec 2006 18:09:30 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'v200612211813'. --- .../filter/SoapExtensiblityElementFilter.java | 61 ---------------------- 1 file changed, 61 deletions(-) delete mode 100644 bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/SoapExtensiblityElementFilter.java (limited to 'bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/SoapExtensiblityElementFilter.java') 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; - } -} -- cgit v1.2.3