diff options
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBindingOperationCommand.java')
-rw-r--r-- | bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBindingOperationCommand.java | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBindingOperationCommand.java b/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBindingOperationCommand.java deleted file mode 100644 index 09a4644d7..000000000 --- a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBindingOperationCommand.java +++ /dev/null @@ -1,104 +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.commands; - -import org.eclipse.wst.wsdl.Binding; -import org.eclipse.wst.wsdl.BindingOperation; -import org.eclipse.wst.wsdl.WSDLElement; -import org.eclipse.wst.wsdl.WSDLFactory; - -public final class AddBindingOperationCommand extends WSDLElementCommand -{ - private Binding binding; - - private String name; - private String bindingInputName = ""; //$NON-NLS-1$ - private String bindingOutputName = ""; //$NON-NLS-1$ - private String bindingFaultName =""; //$NON-NLS-1$ - - private BindingOperation bindingOperation; - - private boolean createBindingInput = false; - private boolean createBindingOutput = false; - private boolean createBindingFault = false; - - public AddBindingOperationCommand(Binding binding,String name) - { - this.binding = binding; - this.name = name; - } - - public AddBindingOperationCommand - (Binding binding, - String name, - boolean createBindingInput, - boolean createBindingOutput, - boolean createBindingFault) - { - this.binding = binding; - this.name = name; - this.createBindingInput = createBindingInput; - this.createBindingOutput = createBindingOutput; - this.createBindingFault = createBindingFault; - } - - public void run() - { - bindingOperation = WSDLFactory.eINSTANCE.createBindingOperation(); - bindingOperation.setName(name); - bindingOperation.setEnclosingDefinition(binding.getEnclosingDefinition()); - binding.addBindingOperation(bindingOperation); - - WSDLElementCommand command = null; - if (createBindingInput) - { - command = new AddBindingInputCommand(bindingOperation,bindingInputName); - command.run(); - } - - if (createBindingOutput) - { - command = new AddBindingOutputCommand(bindingOperation,bindingOutputName); - command.run(); - } - - if (createBindingFault) - { - command = new AddBindingFaultCommand(bindingOperation,bindingFaultName); - command.run(); - } - } - - public WSDLElement getWSDLElement() - { - return bindingOperation; - } - - public void setName(String name) - { - this.name = name; - } - - public void setBindingInputName(String name) - { - this.bindingInputName = name; - } - - public void setBindingOutputName(String name) - { - this.bindingOutputName = name; - } - - public void setBindingFaultName(String name) - { - this.bindingFaultName = name; - } -} |