diff options
Diffstat (limited to 'bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel')
10 files changed, 0 insertions, 490 deletions
diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/BindingElement.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/BindingElement.java deleted file mode 100644 index e7ca18741..000000000 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/BindingElement.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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.jst.ws.internal.consumption.datamodel.wsdlmodel; - -import java.util.Enumeration; -import org.eclipse.wst.ws.internal.datamodel.BasicElement; - - -public class BindingElement extends BasicElement -{ - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - - public static String REL_PORT = "port"; - public static String REL_OPERATIONS = "operations"; - public static String REL_PORT_TYPE = "porttype"; - - public BindingElement (PortElement portElement,String name) - { - super(name,portElement,REL_PORT,PortElement.REL_BINDING); - } - - public Enumeration getPort() - { - return getElements(REL_PORT); - } - - public Enumeration getPortType() - { - return getElements(REL_PORT_TYPE); - } - - public Enumeration getOperations() - { - return getElements(REL_OPERATIONS); - } - - public int getNumberOfOperations() - { - return getNumberOfElements(REL_OPERATIONS); - } -} - diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/DefinitionElement.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/DefinitionElement.java deleted file mode 100644 index 723975828..000000000 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/DefinitionElement.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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.jst.ws.internal.consumption.datamodel.wsdlmodel; - -import java.util.Enumeration; -import org.eclipse.wst.ws.internal.datamodel.BasicElement; - - -public class DefinitionElement extends BasicElement -{ - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - - public static String REL_SERVICES = "services"; - public static String REL_WSDL = "wsdl"; - - public DefinitionElement (WSDLElement wsdlElement,String name) - { - super(name,wsdlElement,REL_WSDL,WSDLElement.REL_DEFINITIONS); - } - - public Enumeration getWSDL() - { - return getElements(REL_WSDL); - } - - public Enumeration getServices() - { - return getElements(REL_SERVICES); - } - - public int getNumberOfServices() - { - return getNumberOfElements(REL_SERVICES); - } -} - diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/MessageElement.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/MessageElement.java deleted file mode 100644 index f0d010cbc..000000000 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/MessageElement.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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.jst.ws.internal.consumption.datamodel.wsdlmodel; - -import java.util.Enumeration; -import org.eclipse.wst.ws.internal.datamodel.BasicElement; - - -public class MessageElement extends BasicElement -{ - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - - public static String REL_OPERATION = "operation"; - public static String REL_PARTS = "parts"; - - public MessageElement (OperationElement operationElement,String name) - { - super(name,operationElement,REL_OPERATION,OperationElement.REL_MESSAGES); - } - - public Enumeration getOperation() - { - return getElements(REL_OPERATION); - } - - public Enumeration getParts() - { - return getElements(REL_PARTS); - } - - public int getNumberOfParts() - { - return getNumberOfElements(REL_PARTS); - } -} - diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/OperationElement.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/OperationElement.java deleted file mode 100644 index 2f501e067..000000000 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/OperationElement.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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.jst.ws.internal.consumption.datamodel.wsdlmodel; - -import java.util.Enumeration; -import org.eclipse.wst.ws.internal.datamodel.BasicElement; - - -public class OperationElement extends BasicElement -{ - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - - public static String REL_BINDING = "binding"; - public static String REL_MESSAGES = "messages"; - - public OperationElement (BindingElement bindingElement,String name) - { - super(name,bindingElement,REL_BINDING,BindingElement.REL_OPERATIONS); - } - - public Enumeration getBinding() - { - return getElements(REL_BINDING); - } - - public Enumeration getMessages() - { - return getElements(REL_MESSAGES); - } - - public int getNumberOfMessages() - { - return getNumberOfElements(REL_MESSAGES); - } -} - diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PartElement.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PartElement.java deleted file mode 100644 index d80ffbb39..000000000 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PartElement.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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.jst.ws.internal.consumption.datamodel.wsdlmodel; - -import java.util.Enumeration; -import org.eclipse.wst.ws.internal.datamodel.BasicElement; - - -public class PartElement extends BasicElement -{ - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - - public static String REL_MESSAGE = "message"; - - public PartElement (MessageElement messageElement,String name) - { - super(name,messageElement,REL_MESSAGE,MessageElement.REL_PARTS); - } - - public Enumeration getMessage() - { - return getElements(REL_MESSAGE); - } - - -} - diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PortElement.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PortElement.java deleted file mode 100644 index 78e2ac4af..000000000 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PortElement.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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.jst.ws.internal.consumption.datamodel.wsdlmodel; - -import java.util.Enumeration; -import org.eclipse.wst.ws.internal.datamodel.BasicElement; - - -public class PortElement extends BasicElement -{ - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - - public static String REL_BINDING = "binding"; - public static String REL_SERVICE = "service"; - - public PortElement (ServiceElement serviceElement,String name) - { - super(name,serviceElement,REL_SERVICE,ServiceElement.REL_PORTS); - } - - public Enumeration getService() - { - return getElements(REL_SERVICE); - } - - public Enumeration getBinding() - { - return getElements(REL_BINDING); - } - -} - diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PortTypeElement.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PortTypeElement.java deleted file mode 100644 index 08f6883f8..000000000 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PortTypeElement.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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.jst.ws.internal.consumption.datamodel.wsdlmodel; - -import java.util.Enumeration; -import org.eclipse.wst.ws.internal.datamodel.BasicElement; - - -public class PortTypeElement extends BasicElement -{ - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - - public static String REL_BINDING = "binding"; - - public PortTypeElement (BindingElement bindingElement,String name) - { - super(name,bindingElement,REL_BINDING,BindingElement.REL_PORT_TYPE); - } - - public Enumeration getBinding() - { - return getElements(REL_BINDING); - } - - -} - diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/ServiceElement.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/ServiceElement.java deleted file mode 100644 index 3302d8968..000000000 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/ServiceElement.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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.jst.ws.internal.consumption.datamodel.wsdlmodel; - -import java.util.Enumeration; -import org.eclipse.wst.ws.internal.datamodel.BasicElement; - - -public class ServiceElement extends BasicElement -{ - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - - public static String REL_PORTS = "ports"; - public static String REL_DEFINITION = "definition"; - - public ServiceElement (DefinitionElement definitionElement,String name) - { - super(name,definitionElement,REL_DEFINITION,DefinitionElement.REL_SERVICES); - } - - public Enumeration getDefinition() - { - return getElements(REL_DEFINITION); - } - - public Enumeration getPorts() - { - return getElements(REL_PORTS); - } - - public int getNumberOfPorts() - { - return getNumberOfElements(REL_PORTS); - } -} - diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/StubbedWSDLModel.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/StubbedWSDLModel.java deleted file mode 100644 index 64611e868..000000000 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/StubbedWSDLModel.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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.jst.ws.internal.consumption.datamodel.wsdlmodel; - -import org.eclipse.wst.ws.internal.datamodel.Model; - -public class StubbedWSDLModel -{ - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - - protected Model fModel; - public StubbedWSDLModel() - { - WSDLElement wsdlElement = new WSDLElement("WSDLFiles"); - fModel = wsdlElement.getModel(); - } - - public Model getWSDLModel() - { - return fModel; - } - - public void buildModel() - { - DefinitionElement def1 = new DefinitionElement((WSDLElement)fModel.getRootElement(),"StockQuote"); - ServiceElement ser1 = new ServiceElement(def1,"getQuote"); - ServiceElement ser2 = new ServiceElement(def1,"setQuote"); - PortElement port1 = new PortElement(ser1,"port1"); - PortElement port2 = new PortElement(ser1,"port2"); - PortElement port3 = new PortElement(ser2,"port1"); - PortElement port4 = new PortElement(ser2,"port2"); - BindingElement bind1 = new BindingElement(port1,"bind1"); - BindingElement bind2 = new BindingElement(port2,"bind1"); - BindingElement bind3 = new BindingElement(port3,"bind1"); - BindingElement bind4 = new BindingElement(port4,"bind1"); - OperationElement op1 = new OperationElement(bind1,"op1"); - new OperationElement(bind2,"op1"); - new OperationElement(bind3,"op1"); - new OperationElement(bind4,"op1"); - MessageElement me1 = new MessageElement(op1,"me1"); - MessageElement me2 = new MessageElement(op1,"me2"); - new PartElement(me1,"pe1"); - new PartElement(me2,"pe2"); - - DefinitionElement def2 = new DefinitionElement((WSDLElement)fModel.getRootElement(),"TempConversion"); - ServiceElement ser3 = new ServiceElement(def2,"getTemp"); - ServiceElement ser4 = new ServiceElement(def2,"setTemp"); - PortElement port5 = new PortElement(ser3,"port1"); - PortElement port6 = new PortElement(ser4,"port1"); - BindingElement bind5 = new BindingElement(port5,"bind1"); - BindingElement bind6 = new BindingElement(port6,"bind1"); - new OperationElement(bind5,"op1"); - new OperationElement(bind6,"op1"); - - } -} - diff --git a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/WSDLElement.java b/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/WSDLElement.java deleted file mode 100644 index a9e89d3bc..000000000 --- a/bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/WSDLElement.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 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.jst.ws.internal.consumption.datamodel.wsdlmodel; - -import java.util.Enumeration; -import org.eclipse.wst.ws.internal.datamodel.BasicElement; -import org.eclipse.wst.ws.internal.datamodel.BasicModel; -import org.eclipse.wst.ws.internal.datamodel.Model; - - -public class WSDLElement extends BasicElement -{ - - // Copyright - public static final String copyright = "(c) Copyright IBM Corporation 2000, 2002."; - - - public static String REL_DEFINITIONS = "definitions"; - - /* - * - **/ - public WSDLElement (String name) - { - this(name,new BasicModel("WSDLModel")); - } - - public WSDLElement (String name, Model model) - { - super(name,model); - model.setRootElement(this); - } - - public Enumeration getDefinitions() - { - return getElements(REL_DEFINITIONS); - } - - public int getNumberOfDefinitions() - { - return getNumberOfElements(REL_DEFINITIONS); - } -} - |