diff options
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http')
19 files changed, 0 insertions, 3542 deletions
diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPAddress.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPAddress.java deleted file mode 100644 index e5ab58873..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPAddress.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http; - -import org.eclipse.wst.wsdl.ExtensibilityElement; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Address</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.http.HTTPAddress#getLocationURI <em>Location URI</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage#getHTTPAddress() - * @model - * @generated - */ -public interface HTTPAddress extends ExtensibilityElement, javax.wsdl.extensions.http.HTTPAddress { - /** - * Returns the value of the '<em><b>Location URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Location URI</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Location URI</em>' attribute. - * @see #setLocationURI(String) - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage#getHTTPAddress_LocationURI() - * @model - * @generated - */ - String getLocationURI(); - - /** - * Sets the value of the '{@link org.eclipse.wst.wsdl.binding.http.HTTPAddress#getLocationURI <em>Location URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Location URI</em>' attribute. - * @see #getLocationURI() - * @generated - */ - void setLocationURI(String value); - -} // HTTPAddress diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPBinding.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPBinding.java deleted file mode 100644 index 573254c0a..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPBinding.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http; - -import org.eclipse.wst.wsdl.ExtensibilityElement; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Binding</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.http.HTTPBinding#getVerb <em>Verb</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage#getHTTPBinding() - * @model - * @generated - */ -public interface HTTPBinding extends ExtensibilityElement, javax.wsdl.extensions.http.HTTPBinding { - /** - * Returns the value of the '<em><b>Verb</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Verb</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Verb</em>' attribute. - * @see #setVerb(String) - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage#getHTTPBinding_Verb() - * @model - * @generated - */ - String getVerb(); - - /** - * Sets the value of the '{@link org.eclipse.wst.wsdl.binding.http.HTTPBinding#getVerb <em>Verb</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Verb</em>' attribute. - * @see #getVerb() - * @generated - */ - void setVerb(String value); - -} // HTTPBinding diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPFactory.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPFactory.java deleted file mode 100644 index bd582b172..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPFactory.java +++ /dev/null @@ -1,86 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http; - -import org.eclipse.emf.ecore.EFactory; - -/** - * <!-- begin-user-doc --> - * The <b>Factory</b> for the model. - * It provides a create method for each non-abstract class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage - * @generated - */ -public interface HTTPFactory extends EFactory { - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - HTTPFactory eINSTANCE = new org.eclipse.wst.wsdl.binding.http.internal.impl.HTTPFactoryImpl(); - - /** - * Returns a new object of class '<em>Binding</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Binding</em>'. - * @generated - */ - HTTPBinding createHTTPBinding(); - - /** - * Returns a new object of class '<em>Operation</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Operation</em>'. - * @generated - */ - HTTPOperation createHTTPOperation(); - - /** - * Returns a new object of class '<em>Url Replacement</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Url Replacement</em>'. - * @generated - */ - HTTPUrlReplacement createHTTPUrlReplacement(); - - /** - * Returns a new object of class '<em>Url Encoded</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Url Encoded</em>'. - * @generated - */ - HTTPUrlEncoded createHTTPUrlEncoded(); - - /** - * Returns a new object of class '<em>Address</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Address</em>'. - * @generated - */ - HTTPAddress createHTTPAddress(); - - /** - * Returns the package supported by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - HTTPPackage getHTTPPackage(); - -} //HTTPFactory diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPOperation.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPOperation.java deleted file mode 100644 index 170a9a15b..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPOperation.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http; - -import org.eclipse.wst.wsdl.ExtensibilityElement; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Operation</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.http.HTTPOperation#getLocationURI <em>Location URI</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage#getHTTPOperation() - * @model - * @generated - */ -public interface HTTPOperation extends ExtensibilityElement, javax.wsdl.extensions.http.HTTPOperation { - /** - * Returns the value of the '<em><b>Location URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Location URI</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Location URI</em>' attribute. - * @see #setLocationURI(String) - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage#getHTTPOperation_LocationURI() - * @model - * @generated - */ - String getLocationURI(); - - /** - * Sets the value of the '{@link org.eclipse.wst.wsdl.binding.http.HTTPOperation#getLocationURI <em>Location URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Location URI</em>' attribute. - * @see #getLocationURI() - * @generated - */ - void setLocationURI(String value); - -} // HTTPOperation diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPPackage.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPPackage.java deleted file mode 100644 index 19d659b7b..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPPackage.java +++ /dev/null @@ -1,612 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.wst.wsdl.WSDLPackage; - -/** - * <!-- begin-user-doc --> - * The <b>Package</b> for the model. - * It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.http.HTTPFactory - * @generated - */ -public interface HTTPPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "http"; - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "http://www.ibm.com/wsdl/2003/HTTP"; - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "http"; - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - HTTPPackage eINSTANCE = org.eclipse.wst.wsdl.binding.http.internal.impl.HTTPPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.wst.wsdl.binding.http.impl.HTTPBindingImpl <em>Binding</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPBindingImpl - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPPackageImpl#getHTTPBinding() - * @generated - */ - int HTTP_BINDING = 0; - - /** - * The feature id for the '<em><b>Documentation Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_BINDING__DOCUMENTATION_ELEMENT = WSDLPackage.EXTENSIBILITY_ELEMENT__DOCUMENTATION_ELEMENT; - - /** - * The feature id for the '<em><b>Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_BINDING__ELEMENT = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT; - - /** - * The feature id for the '<em><b>Required</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_BINDING__REQUIRED = WSDLPackage.EXTENSIBILITY_ELEMENT__REQUIRED; - - /** - * The feature id for the '<em><b>Element Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_BINDING__ELEMENT_TYPE = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT_TYPE; - - /** - * The feature id for the '<em><b>Verb</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_BINDING__VERB = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>Binding</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_BINDING_FEATURE_COUNT = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.wst.wsdl.binding.http.impl.HTTPOperationImpl <em>Operation</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPOperationImpl - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPPackageImpl#getHTTPOperation() - * @generated - */ - int HTTP_OPERATION = 1; - - /** - * The feature id for the '<em><b>Documentation Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_OPERATION__DOCUMENTATION_ELEMENT = WSDLPackage.EXTENSIBILITY_ELEMENT__DOCUMENTATION_ELEMENT; - - /** - * The feature id for the '<em><b>Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_OPERATION__ELEMENT = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT; - - /** - * The feature id for the '<em><b>Required</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_OPERATION__REQUIRED = WSDLPackage.EXTENSIBILITY_ELEMENT__REQUIRED; - - /** - * The feature id for the '<em><b>Element Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_OPERATION__ELEMENT_TYPE = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT_TYPE; - - /** - * The feature id for the '<em><b>Location URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_OPERATION__LOCATION_URI = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>Operation</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_OPERATION_FEATURE_COUNT = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.wst.wsdl.binding.http.impl.HTTPUrlReplacementImpl <em>Url Replacement</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPUrlReplacementImpl - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPPackageImpl#getHTTPUrlReplacement() - * @generated - */ - int HTTP_URL_REPLACEMENT = 2; - - /** - * The feature id for the '<em><b>Documentation Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_URL_REPLACEMENT__DOCUMENTATION_ELEMENT = WSDLPackage.EXTENSIBILITY_ELEMENT__DOCUMENTATION_ELEMENT; - - /** - * The feature id for the '<em><b>Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_URL_REPLACEMENT__ELEMENT = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT; - - /** - * The feature id for the '<em><b>Required</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_URL_REPLACEMENT__REQUIRED = WSDLPackage.EXTENSIBILITY_ELEMENT__REQUIRED; - - /** - * The feature id for the '<em><b>Element Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_URL_REPLACEMENT__ELEMENT_TYPE = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT_TYPE; - - /** - * The number of structural features of the the '<em>Url Replacement</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_URL_REPLACEMENT_FEATURE_COUNT = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.wst.wsdl.binding.http.impl.HTTPUrlEncodedImpl <em>Url Encoded</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPUrlEncodedImpl - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPPackageImpl#getHTTPUrlEncoded() - * @generated - */ - int HTTP_URL_ENCODED = 3; - - /** - * The feature id for the '<em><b>Documentation Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_URL_ENCODED__DOCUMENTATION_ELEMENT = WSDLPackage.EXTENSIBILITY_ELEMENT__DOCUMENTATION_ELEMENT; - - /** - * The feature id for the '<em><b>Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_URL_ENCODED__ELEMENT = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT; - - /** - * The feature id for the '<em><b>Required</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_URL_ENCODED__REQUIRED = WSDLPackage.EXTENSIBILITY_ELEMENT__REQUIRED; - - /** - * The feature id for the '<em><b>Element Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_URL_ENCODED__ELEMENT_TYPE = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT_TYPE; - - /** - * The number of structural features of the the '<em>Url Encoded</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_URL_ENCODED_FEATURE_COUNT = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.wst.wsdl.binding.http.impl.HTTPAddressImpl <em>Address</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPAddressImpl - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPPackageImpl#getHTTPAddress() - * @generated - */ - int HTTP_ADDRESS = 4; - - /** - * The feature id for the '<em><b>Documentation Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_ADDRESS__DOCUMENTATION_ELEMENT = WSDLPackage.EXTENSIBILITY_ELEMENT__DOCUMENTATION_ELEMENT; - - /** - * The feature id for the '<em><b>Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_ADDRESS__ELEMENT = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT; - - /** - * The feature id for the '<em><b>Required</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_ADDRESS__REQUIRED = WSDLPackage.EXTENSIBILITY_ELEMENT__REQUIRED; - - /** - * The feature id for the '<em><b>Element Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_ADDRESS__ELEMENT_TYPE = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT_TYPE; - - /** - * The feature id for the '<em><b>Location URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_ADDRESS__LOCATION_URI = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the the '<em>Address</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int HTTP_ADDRESS_FEATURE_COUNT = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 1; - - - /** - * The meta object id for the '{@link javax.wsdl.extensions.http.HTTPAddress <em>IHTTP Address</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.http.HTTPAddress - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPPackageImpl#getIHTTPAddress() - * @generated - */ - int IHTTP_ADDRESS = 5; - - /** - * The number of structural features of the the '<em>IHTTP Address</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IHTTP_ADDRESS_FEATURE_COUNT = 0; - - - /** - * The meta object id for the '{@link javax.wsdl.extensions.http.HTTPBinding <em>IHTTP Binding</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.http.HTTPBinding - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPPackageImpl#getIHTTPBinding() - * @generated - */ - int IHTTP_BINDING = 6; - - /** - * The number of structural features of the the '<em>IHTTP Binding</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IHTTP_BINDING_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link javax.wsdl.extensions.http.HTTPOperation <em>IHTTP Operation</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.http.HTTPOperation - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPPackageImpl#getIHTTPOperation() - * @generated - */ - int IHTTP_OPERATION = 7; - - /** - * The number of structural features of the the '<em>IHTTP Operation</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IHTTP_OPERATION_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link javax.wsdl.extensions.http.HTTPUrlEncoded <em>IHTTP Url Encoded</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.http.HTTPUrlEncoded - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPPackageImpl#getIHTTPUrlEncoded() - * @generated - */ - int IHTTP_URL_ENCODED = 8; - - /** - * The number of structural features of the the '<em>IHTTP Url Encoded</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IHTTP_URL_ENCODED_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link javax.wsdl.extensions.http.HTTPUrlReplacement <em>IHTTP Url Replacement</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.http.HTTPUrlReplacement - * @see org.eclipse.wst.wsdl.binding.http.impl.HTTPPackageImpl#getIHTTPUrlReplacement() - * @generated - */ - int IHTTP_URL_REPLACEMENT = 9; - - /** - * The number of structural features of the the '<em>IHTTP Url Replacement</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IHTTP_URL_REPLACEMENT_FEATURE_COUNT = 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.wst.wsdl.binding.http.HTTPBinding <em>Binding</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Binding</em>'. - * @see org.eclipse.wst.wsdl.binding.http.HTTPBinding - * @generated - */ - EClass getHTTPBinding(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.wst.wsdl.binding.http.HTTPBinding#getVerb <em>Verb</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Verb</em>'. - * @see org.eclipse.wst.wsdl.binding.http.HTTPBinding#getVerb() - * @see #getHTTPBinding() - * @generated - */ - EAttribute getHTTPBinding_Verb(); - - /** - * Returns the meta object for class '{@link org.eclipse.wst.wsdl.binding.http.HTTPOperation <em>Operation</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Operation</em>'. - * @see org.eclipse.wst.wsdl.binding.http.HTTPOperation - * @generated - */ - EClass getHTTPOperation(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.wst.wsdl.binding.http.HTTPOperation#getLocationURI <em>Location URI</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Location URI</em>'. - * @see org.eclipse.wst.wsdl.binding.http.HTTPOperation#getLocationURI() - * @see #getHTTPOperation() - * @generated - */ - EAttribute getHTTPOperation_LocationURI(); - - /** - * Returns the meta object for class '{@link org.eclipse.wst.wsdl.binding.http.HTTPUrlReplacement <em>Url Replacement</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Url Replacement</em>'. - * @see org.eclipse.wst.wsdl.binding.http.HTTPUrlReplacement - * @generated - */ - EClass getHTTPUrlReplacement(); - - /** - * Returns the meta object for class '{@link org.eclipse.wst.wsdl.binding.http.HTTPUrlEncoded <em>Url Encoded</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Url Encoded</em>'. - * @see org.eclipse.wst.wsdl.binding.http.HTTPUrlEncoded - * @generated - */ - EClass getHTTPUrlEncoded(); - - /** - * Returns the meta object for class '{@link org.eclipse.wst.wsdl.binding.http.HTTPAddress <em>Address</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Address</em>'. - * @see org.eclipse.wst.wsdl.binding.http.HTTPAddress - * @generated - */ - EClass getHTTPAddress(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.wst.wsdl.binding.http.HTTPAddress#getLocationURI <em>Location URI</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Location URI</em>'. - * @see org.eclipse.wst.wsdl.binding.http.HTTPAddress#getLocationURI() - * @see #getHTTPAddress() - * @generated - */ - EAttribute getHTTPAddress_LocationURI(); - - /** - * Returns the meta object for class '{@link javax.wsdl.extensions.http.HTTPAddress <em>IHTTP Address</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>IHTTP Address</em>'. - * @see javax.wsdl.extensions.http.HTTPAddress - * @model instanceClass="javax.wsdl.extensions.http.HTTPAddress" - * @generated - */ - EClass getIHTTPAddress(); - - /** - * Returns the meta object for class '{@link javax.wsdl.extensions.http.HTTPBinding <em>IHTTP Binding</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>IHTTP Binding</em>'. - * @see javax.wsdl.extensions.http.HTTPBinding - * @model instanceClass="javax.wsdl.extensions.http.HTTPBinding" - * @generated - */ - EClass getIHTTPBinding(); - - /** - * Returns the meta object for class '{@link javax.wsdl.extensions.http.HTTPOperation <em>IHTTP Operation</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>IHTTP Operation</em>'. - * @see javax.wsdl.extensions.http.HTTPOperation - * @model instanceClass="javax.wsdl.extensions.http.HTTPOperation" - * @generated - */ - EClass getIHTTPOperation(); - - /** - * Returns the meta object for class '{@link javax.wsdl.extensions.http.HTTPUrlEncoded <em>IHTTP Url Encoded</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>IHTTP Url Encoded</em>'. - * @see javax.wsdl.extensions.http.HTTPUrlEncoded - * @model instanceClass="javax.wsdl.extensions.http.HTTPUrlEncoded" - * @generated - */ - EClass getIHTTPUrlEncoded(); - - /** - * Returns the meta object for class '{@link javax.wsdl.extensions.http.HTTPUrlReplacement <em>IHTTP Url Replacement</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>IHTTP Url Replacement</em>'. - * @see javax.wsdl.extensions.http.HTTPUrlReplacement - * @model instanceClass="javax.wsdl.extensions.http.HTTPUrlReplacement" - * @generated - */ - EClass getIHTTPUrlReplacement(); - - /** - * Returns the factory that creates the instances of the model. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the factory that creates the instances of the model. - * @generated - */ - HTTPFactory getHTTPFactory(); - -} //HTTPPackage diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPUrlEncoded.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPUrlEncoded.java deleted file mode 100644 index d06c0085b..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPUrlEncoded.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http; - -import org.eclipse.wst.wsdl.ExtensibilityElement; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Url Encoded</b></em>'. - * <!-- end-user-doc --> - * - * - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage#getHTTPUrlEncoded() - * @model - * @generated - */ -public interface HTTPUrlEncoded extends ExtensibilityElement, javax.wsdl.extensions.http.HTTPUrlEncoded { -} // HTTPUrlEncoded diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPUrlReplacement.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPUrlReplacement.java deleted file mode 100644 index 00d1dde49..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPUrlReplacement.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http; - -import org.eclipse.wst.wsdl.ExtensibilityElement; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Url Replacement</b></em>'. - * <!-- end-user-doc --> - * - * - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage#getHTTPUrlReplacement() - * @model - * @generated - */ -public interface HTTPUrlReplacement extends ExtensibilityElement, javax.wsdl.extensions.http.HTTPUrlReplacement { -} // HTTPUrlReplacement diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/generator/HTTPContentGenerator.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/generator/HTTPContentGenerator.java deleted file mode 100644 index 5435b8bc7..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/generator/HTTPContentGenerator.java +++ /dev/null @@ -1,267 +0,0 @@ -package org.eclipse.wst.wsdl.binding.http.internal.generator; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.wst.wsdl.Binding; -import org.eclipse.wst.wsdl.BindingFault; -import org.eclipse.wst.wsdl.BindingInput; -import org.eclipse.wst.wsdl.BindingOperation; -import org.eclipse.wst.wsdl.BindingOutput; -import org.eclipse.wst.wsdl.ExtensibilityElement; -import org.eclipse.wst.wsdl.Fault; -import org.eclipse.wst.wsdl.Input; -import org.eclipse.wst.wsdl.Operation; -import org.eclipse.wst.wsdl.Output; -import org.eclipse.wst.wsdl.Port; -import org.eclipse.wst.wsdl.PortType; -import org.eclipse.wst.wsdl.binding.http.HTTPAddress; -import org.eclipse.wst.wsdl.binding.http.HTTPBinding; -import org.eclipse.wst.wsdl.binding.http.HTTPFactory; -import org.eclipse.wst.wsdl.binding.http.HTTPOperation; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlEncoded; -import org.eclipse.wst.wsdl.internal.generator.ContentGenerator; -import org.w3c.dom.Element; - -public class HTTPContentGenerator implements ContentGenerator -{ - public static final int VERB_POST = 0; - public static final int VERB_GET = 1; - public static final int VERB_NOT_SET = -1; - - private int verbOption = VERB_NOT_SET; - protected String addressLocation = ContentGenerator.ADDRESS_LOCATION; - - protected final static String[] requiredNamespaces = { "http://schemas.xmlsoap.org/wsdl/mime/", "http://schemas.xmlsoap.org/wsdl/http/" }; - - public void setVerb(int verb) { - verbOption = verb; - } - - public void setAddressLocation(String addressLocation) { - this.addressLocation = addressLocation; - } - - public String[] getRequiredNamespaces() - { - return requiredNamespaces; - } - - public String getPreferredNamespacePrefix(String namespace) - { - if (namespace.equals("http://schemas.xmlsoap.org/wsdl/mime/")) { - return "mime"; - } - else if (namespace.equals("http://schemas.xmlsoap.org/wsdl/http/")) { - return "http"; - } - - return ""; - } - - public void generatePortContent(Port port) - { - // We blow away any existing ExtensibilityElements/content before we generate it - // Is it worth being smarter? Look for matching content first and create those which aren't found???? - List removeList = new ArrayList(port.getEExtensibilityElements()); - removeExtensebilityElements(port.getEExtensibilityElements(), removeList); - - HTTPAddress httpAddress= HTTPFactory.eINSTANCE.createHTTPAddress(); - httpAddress.setLocationURI(addressLocation); - port.addExtensibilityElement(httpAddress); - } - - public void generateBindingContent(Binding binding, PortType portType) - { - // We blow away any existing ExtensibilityElements/content before we generate it - // Is it worth being smarter? Look for matching content first and create those which aren't found???? - List removeList = new ArrayList(binding.getEExtensibilityElements()); - removeExtensebilityElements(binding.getEExtensibilityElements(), removeList); - - HTTPBinding httpBinding = HTTPFactory.eINSTANCE.createHTTPBinding(); - httpBinding.setVerb(getVerbOption(binding) == VERB_POST ? "POST" : "GET"); - - binding.addExtensibilityElement(httpBinding); - } - - public void generateBindingOperationContent(BindingOperation bindingOperation, Operation operation) - { - // We blow away any existing ExtensibilityElements/content before we generate it - // Is it worth being smarter? Look for matching content first and create those which aren't found???? - List removeList = new ArrayList(bindingOperation.getEExtensibilityElements()); - removeExtensebilityElements(bindingOperation.getEExtensibilityElements(), removeList); - - HTTPOperation httpOperation = HTTPFactory.eINSTANCE.createHTTPOperation(); - httpOperation.setLocationURI("/" + operation.getName()); - bindingOperation.addExtensibilityElement(httpOperation); - } - - public void generateBindingInputContent(BindingInput bindingInput, Input input) - { - // We blow away any existing ExtensibilityElements/content before we generate it - // Is it worth being smarter? Look for matching content first and create those which aren't found???? - List removeList = new ArrayList(bindingInput.getEExtensibilityElements()); - - // hack: we're being sneaky here. Set the 'verb' options now. - int option = getVerbOption(bindingInput); - removeExtensebilityElements(bindingInput.getEExtensibilityElements(), removeList); - - if (option == VERB_POST) - { - // TODO: Is there an equivalent HTTP Model Object for this?.... - Element element = createElement(bindingInput.getElement(), "mime", "content"); - element.setAttribute("type", "application/x-www-form-urlencoded"); - } - else - { - HTTPUrlEncoded urlEncoded= HTTPFactory.eINSTANCE.createHTTPUrlEncoded(); - bindingInput.addExtensibilityElement(urlEncoded); - } - } - - public void generateBindingOutputContent(BindingOutput bindingOutput, Output output) - { - // We blow away any existing ExtensibilityElements/content before we generate it - // Is it worth being smarter? Look for matching content first and create those which aren't found???? - List removeList = new ArrayList(bindingOutput.getEExtensibilityElements()); - - // hack: we're being sneaky here. Set the 'verb' options now. - getVerbOption(bindingOutput); - removeExtensebilityElements(bindingOutput.getEExtensibilityElements(), removeList); - - // TODO: Is there an equivalent HTTP Model Object for this?.... - Element bindingOutputElement = bindingOutput.getElement(); - Element element = createElement(bindingOutputElement, "mime", "content"); - element.setAttribute("type", "text/xml"); - } - - public void generateBindingFaultContent(BindingFault bindingFault, Fault fault) - { - //TODO!! - } - - protected Element createElement(Element parentElement, String prefix, String elementName) - { - String name = prefix != null ? (prefix + ":" + elementName) : elementName; - Element result = parentElement.getOwnerDocument().createElement(name); - parentElement.insertBefore(result, parentElement.getFirstChild()); -// parentElement.appendChild(result); - return result; - } - - ///////////////////// - private int getVerbOption(Object genericBindingObject) { - if (verbOption == VERB_NOT_SET && genericBindingObject != null) { - // init() was never called, try to determine the 'verb' based on what we have/know - Binding binding = getBindingObject(genericBindingObject); - - // Try to determine the verb from the Binding Object - if (binding != null) { - List list = binding.getEExtensibilityElements(); - Iterator valuesIt = getExtensibilityElementAttributeValue(list, "verb").iterator(); - - while (valuesIt.hasNext()) { - String verb = (String) valuesIt.next(); - - if (verb.equals("POST")) { - verbOption = VERB_POST; - } - else if (verb.equals("GET")) { - verbOption = VERB_GET; - } - - if (verbOption != VERB_NOT_SET) { - break; - } - } - } - } - - if (verbOption == VERB_NOT_SET) { - verbOption = VERB_GET; - } - - return verbOption; - } - - private List getExtensibilityElementAttributeValue(List eeList, String attributeKey) { - List values = new ArrayList(); - Iterator eeElementsIt = eeList.iterator(); - - while (eeElementsIt.hasNext()) { - ExtensibilityElement eeElement = (ExtensibilityElement) eeElementsIt.next(); - String attributeValue = eeElement.getElement().getAttribute(attributeKey); - if (attributeValue != null && !attributeValue.equals("")) { - values.add(attributeValue); - } - } - - return values; - } - - private Binding getBindingObject(Object genericBindingObject) { - Object parent = genericBindingObject; - - int index = 0; - while (parent != null && index < 5) { - parent = getGenericBindingObjectParent(parent); - if (parent instanceof Binding) { - break; - } - index++; - } - - return (parent instanceof Binding)? (Binding) parent : null; - } - - private List getMessageReferenceBindingObjects(Object genericBindingObject) { - List list = new ArrayList(); - Binding binding = getBindingObject(genericBindingObject); - - if (binding != null) { - Iterator operationsIt = binding.getEBindingOperations().iterator(); - - while (operationsIt.hasNext()) { - BindingOperation op = (BindingOperation) operationsIt.next(); - list.add(op.getEBindingInput()); - list.add(op.getEBindingOutput()); - list.addAll(op.getEBindingFaults()); - } - } - - return list; - } - - private Object getGenericBindingObjectParent(Object genericBindingObject) { - Object parent = null; - - if (genericBindingObject != null) { - if (genericBindingObject instanceof BindingOperation) { - parent = ((BindingOperation) genericBindingObject).getContainer(); - } - else if (genericBindingObject instanceof BindingInput) { - parent = ((BindingInput) genericBindingObject).getContainer(); - } - else if (genericBindingObject instanceof BindingOutput) { - parent = ((BindingOutput) genericBindingObject).getContainer(); - } - else if (genericBindingObject instanceof BindingFault) { - parent = ((BindingFault) genericBindingObject).getContainer(); - } - } - - return parent; - } - - private void removeExtensebilityElements(List originalList, List removeList) { - Iterator removeIt = removeList.iterator(); - while (removeIt.hasNext()) { - originalList.remove(removeIt.next()); - } - } - - public String getProtocol() { - return "HTTP"; - } -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPAddressImpl.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPAddressImpl.java deleted file mode 100644 index 741d45072..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPAddressImpl.java +++ /dev/null @@ -1,251 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.impl; - - -import javax.xml.namespace.QName; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.wst.wsdl.binding.http.HTTPAddress; -import org.eclipse.wst.wsdl.binding.http.HTTPPackage; -import org.eclipse.wst.wsdl.binding.http.internal.util.HTTPConstants; -import org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl; -import org.w3c.dom.Element; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Address</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.http.impl.HTTPAddressImpl#getLocationURI <em>Location URI</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class HTTPAddressImpl extends ExtensibilityElementImpl implements HTTPAddress { - /** - * This class is not intended to be serialized. - * serialVersionUID is assigned with 1L to avoid - * compiler warning messages. - */ - private static final long serialVersionUID = 1L; - - /** - * The default value of the '{@link #getLocationURI() <em>Location URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocationURI() - * @generated - * @ordered - */ - protected static final String LOCATION_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLocationURI() <em>Location URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocationURI() - * @generated - * @ordered - */ - protected String locationURI = LOCATION_URI_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HTTPAddressImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return HTTPPackage.eINSTANCE.getHTTPAddress(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLocationURI() { - return locationURI; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLocationURI(String newLocationURI) { - String oldLocationURI = locationURI; - locationURI = newLocationURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, HTTPPackage.HTTP_ADDRESS__LOCATION_URI, oldLocationURI, locationURI)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_ADDRESS__DOCUMENTATION_ELEMENT: - return getDocumentationElement(); - case HTTPPackage.HTTP_ADDRESS__ELEMENT: - return getElement(); - case HTTPPackage.HTTP_ADDRESS__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case HTTPPackage.HTTP_ADDRESS__ELEMENT_TYPE: - return getElementType(); - case HTTPPackage.HTTP_ADDRESS__LOCATION_URI: - return getLocationURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_ADDRESS__DOCUMENTATION_ELEMENT: - setDocumentationElement((Element)newValue); - return; - case HTTPPackage.HTTP_ADDRESS__ELEMENT: - setElement((Element)newValue); - return; - case HTTPPackage.HTTP_ADDRESS__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case HTTPPackage.HTTP_ADDRESS__ELEMENT_TYPE: - setElementType((QName)newValue); - return; - case HTTPPackage.HTTP_ADDRESS__LOCATION_URI: - setLocationURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_ADDRESS__DOCUMENTATION_ELEMENT: - setDocumentationElement(DOCUMENTATION_ELEMENT_EDEFAULT); - return; - case HTTPPackage.HTTP_ADDRESS__ELEMENT: - setElement(ELEMENT_EDEFAULT); - return; - case HTTPPackage.HTTP_ADDRESS__REQUIRED: - setRequired(REQUIRED_EDEFAULT); - return; - case HTTPPackage.HTTP_ADDRESS__ELEMENT_TYPE: - setElementType(ELEMENT_TYPE_EDEFAULT); - return; - case HTTPPackage.HTTP_ADDRESS__LOCATION_URI: - setLocationURI(LOCATION_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_ADDRESS__DOCUMENTATION_ELEMENT: - return DOCUMENTATION_ELEMENT_EDEFAULT == null ? documentationElement != null : !DOCUMENTATION_ELEMENT_EDEFAULT.equals(documentationElement); - case HTTPPackage.HTTP_ADDRESS__ELEMENT: - return ELEMENT_EDEFAULT == null ? element != null : !ELEMENT_EDEFAULT.equals(element); - case HTTPPackage.HTTP_ADDRESS__REQUIRED: - return required != REQUIRED_EDEFAULT; - case HTTPPackage.HTTP_ADDRESS__ELEMENT_TYPE: - return ELEMENT_TYPE_EDEFAULT == null ? elementType != null : !ELEMENT_TYPE_EDEFAULT.equals(elementType); - case HTTPPackage.HTTP_ADDRESS__LOCATION_URI: - return LOCATION_URI_EDEFAULT == null ? locationURI != null : !LOCATION_URI_EDEFAULT.equals(locationURI); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (locationURI: "); - result.append(locationURI); - result.append(')'); - return result.toString(); - } - - // - // Reconcile methods: DOM -> Model - // - - public void reconcileAttributes(Element changedElement) - { - setLocationURI - (HTTPConstants.getAttribute(changedElement, HTTPConstants.LOCATION_URI_ATTRIBUTE)); - reconcileReferences(false); - } - - // - // For reconciliation: Model -> DOM - // - - protected void changeAttribute(EAttribute eAttribute) - { - if (isReconciling) - return; - - super.changeAttribute(eAttribute); - Element theElement = getElement(); - if (theElement != null) - { - if (eAttribute == null || eAttribute == HTTPPackage.eINSTANCE.getHTTPAddress_LocationURI()) - niceSetAttribute(theElement,HTTPConstants.LOCATION_URI_ATTRIBUTE,getLocationURI()); - } - } - - public QName getElementType() - { - if (elementType == null) - elementType = new QName(HTTPConstants.HTTP_NAMESPACE_URI, HTTPConstants.ADDRESS_ELEMENT_TAG); - return elementType; - } -} //HTTPAddressImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPBindingImpl.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPBindingImpl.java deleted file mode 100644 index beb4bbbcc..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPBindingImpl.java +++ /dev/null @@ -1,252 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.impl; - - -import javax.xml.namespace.QName; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.wst.wsdl.binding.http.HTTPBinding; -import org.eclipse.wst.wsdl.binding.http.HTTPPackage; -import org.eclipse.wst.wsdl.binding.http.internal.util.HTTPConstants; -import org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl; -import org.w3c.dom.Element; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Binding</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.http.impl.HTTPBindingImpl#getVerb <em>Verb</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class HTTPBindingImpl extends ExtensibilityElementImpl implements HTTPBinding { - /** - * This class is not intended to be serialized. - * serialVersionUID is assigned with 1L to avoid - * compiler warning messages. - */ - private static final long serialVersionUID = 1L; - - /** - * The default value of the '{@link #getVerb() <em>Verb</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVerb() - * @generated - * @ordered - */ - protected static final String VERB_EDEFAULT = null; - - /** - * The cached value of the '{@link #getVerb() <em>Verb</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVerb() - * @generated - * @ordered - */ - protected String verb = VERB_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HTTPBindingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return HTTPPackage.eINSTANCE.getHTTPBinding(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getVerb() { - return verb; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setVerb(String newVerb) { - String oldVerb = verb; - verb = newVerb; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, HTTPPackage.HTTP_BINDING__VERB, oldVerb, verb)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_BINDING__DOCUMENTATION_ELEMENT: - return getDocumentationElement(); - case HTTPPackage.HTTP_BINDING__ELEMENT: - return getElement(); - case HTTPPackage.HTTP_BINDING__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case HTTPPackage.HTTP_BINDING__ELEMENT_TYPE: - return getElementType(); - case HTTPPackage.HTTP_BINDING__VERB: - return getVerb(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_BINDING__DOCUMENTATION_ELEMENT: - setDocumentationElement((Element)newValue); - return; - case HTTPPackage.HTTP_BINDING__ELEMENT: - setElement((Element)newValue); - return; - case HTTPPackage.HTTP_BINDING__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case HTTPPackage.HTTP_BINDING__ELEMENT_TYPE: - setElementType((QName)newValue); - return; - case HTTPPackage.HTTP_BINDING__VERB: - setVerb((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_BINDING__DOCUMENTATION_ELEMENT: - setDocumentationElement(DOCUMENTATION_ELEMENT_EDEFAULT); - return; - case HTTPPackage.HTTP_BINDING__ELEMENT: - setElement(ELEMENT_EDEFAULT); - return; - case HTTPPackage.HTTP_BINDING__REQUIRED: - setRequired(REQUIRED_EDEFAULT); - return; - case HTTPPackage.HTTP_BINDING__ELEMENT_TYPE: - setElementType(ELEMENT_TYPE_EDEFAULT); - return; - case HTTPPackage.HTTP_BINDING__VERB: - setVerb(VERB_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_BINDING__DOCUMENTATION_ELEMENT: - return DOCUMENTATION_ELEMENT_EDEFAULT == null ? documentationElement != null : !DOCUMENTATION_ELEMENT_EDEFAULT.equals(documentationElement); - case HTTPPackage.HTTP_BINDING__ELEMENT: - return ELEMENT_EDEFAULT == null ? element != null : !ELEMENT_EDEFAULT.equals(element); - case HTTPPackage.HTTP_BINDING__REQUIRED: - return required != REQUIRED_EDEFAULT; - case HTTPPackage.HTTP_BINDING__ELEMENT_TYPE: - return ELEMENT_TYPE_EDEFAULT == null ? elementType != null : !ELEMENT_TYPE_EDEFAULT.equals(elementType); - case HTTPPackage.HTTP_BINDING__VERB: - return VERB_EDEFAULT == null ? verb != null : !VERB_EDEFAULT.equals(verb); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (verb: "); - result.append(verb); - result.append(')'); - return result.toString(); - } - - // - // Reconcile methods: DOM -> Model - // - - public void reconcileAttributes(Element changedElement) - { - setVerb - (HTTPConstants.getAttribute(changedElement, HTTPConstants.VERB_ATTRIBUTE)); - reconcileReferences(false); - } - - // - // For reconciliation: Model -> DOM - // - - protected void changeAttribute(EAttribute eAttribute) - { - if (isReconciling) - return; - - super.changeAttribute(eAttribute); - Element theElement = getElement(); - if (theElement != null) - { - if (eAttribute == null || eAttribute == HTTPPackage.eINSTANCE.getHTTPBinding_Verb()) - niceSetAttribute(theElement,HTTPConstants.VERB_ATTRIBUTE,getVerb()); - } - } - - public QName getElementType() - { - if (elementType == null) - elementType = new QName(HTTPConstants.HTTP_NAMESPACE_URI, HTTPConstants.BINDING_ELEMENT_TAG); - return elementType; - } - -} //HTTPBindingImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPFactoryImpl.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPFactoryImpl.java deleted file mode 100644 index 9c1e97e9d..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPFactoryImpl.java +++ /dev/null @@ -1,127 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.impl; - - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.wst.wsdl.binding.http.HTTPAddress; -import org.eclipse.wst.wsdl.binding.http.HTTPBinding; -import org.eclipse.wst.wsdl.binding.http.HTTPFactory; -import org.eclipse.wst.wsdl.binding.http.HTTPOperation; -import org.eclipse.wst.wsdl.binding.http.HTTPPackage; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlEncoded; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlReplacement; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class HTTPFactoryImpl extends EFactoryImpl implements HTTPFactory { - /** - * Creates and instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case HTTPPackage.HTTP_BINDING: return createHTTPBinding(); - case HTTPPackage.HTTP_OPERATION: return createHTTPOperation(); - case HTTPPackage.HTTP_URL_REPLACEMENT: return createHTTPUrlReplacement(); - case HTTPPackage.HTTP_URL_ENCODED: return createHTTPUrlEncoded(); - case HTTPPackage.HTTP_ADDRESS: return createHTTPAddress(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPBinding createHTTPBinding() { - HTTPBindingImpl httpBinding = new HTTPBindingImpl(); - return httpBinding; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPOperation createHTTPOperation() { - HTTPOperationImpl httpOperation = new HTTPOperationImpl(); - return httpOperation; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPUrlReplacement createHTTPUrlReplacement() { - HTTPUrlReplacementImpl httpUrlReplacement = new HTTPUrlReplacementImpl(); - return httpUrlReplacement; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPUrlEncoded createHTTPUrlEncoded() { - HTTPUrlEncodedImpl httpUrlEncoded = new HTTPUrlEncodedImpl(); - return httpUrlEncoded; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPAddress createHTTPAddress() { - HTTPAddressImpl httpAddress = new HTTPAddressImpl(); - return httpAddress; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPPackage getHTTPPackage() { - return (HTTPPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static HTTPPackage getPackage() { - return HTTPPackage.eINSTANCE; - } -} //HTTPFactoryImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPOperationImpl.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPOperationImpl.java deleted file mode 100644 index d266baa69..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPOperationImpl.java +++ /dev/null @@ -1,252 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.impl; - - -import javax.xml.namespace.QName; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.wst.wsdl.binding.http.HTTPOperation; -import org.eclipse.wst.wsdl.binding.http.HTTPPackage; -import org.eclipse.wst.wsdl.binding.http.internal.util.HTTPConstants; -import org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl; -import org.w3c.dom.Element; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Operation</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.http.impl.HTTPOperationImpl#getLocationURI <em>Location URI</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class HTTPOperationImpl extends ExtensibilityElementImpl implements HTTPOperation { - /** - * This class is not intended to be serialized. - * serialVersionUID is assigned with 1L to avoid - * compiler warning messages. - */ - private static final long serialVersionUID = 1L; - - /** - * The default value of the '{@link #getLocationURI() <em>Location URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocationURI() - * @generated - * @ordered - */ - protected static final String LOCATION_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLocationURI() <em>Location URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLocationURI() - * @generated - * @ordered - */ - protected String locationURI = LOCATION_URI_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HTTPOperationImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return HTTPPackage.eINSTANCE.getHTTPOperation(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLocationURI() { - return locationURI; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLocationURI(String newLocationURI) { - String oldLocationURI = locationURI; - locationURI = newLocationURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, HTTPPackage.HTTP_OPERATION__LOCATION_URI, oldLocationURI, locationURI)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_OPERATION__DOCUMENTATION_ELEMENT: - return getDocumentationElement(); - case HTTPPackage.HTTP_OPERATION__ELEMENT: - return getElement(); - case HTTPPackage.HTTP_OPERATION__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case HTTPPackage.HTTP_OPERATION__ELEMENT_TYPE: - return getElementType(); - case HTTPPackage.HTTP_OPERATION__LOCATION_URI: - return getLocationURI(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_OPERATION__DOCUMENTATION_ELEMENT: - setDocumentationElement((Element)newValue); - return; - case HTTPPackage.HTTP_OPERATION__ELEMENT: - setElement((Element)newValue); - return; - case HTTPPackage.HTTP_OPERATION__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case HTTPPackage.HTTP_OPERATION__ELEMENT_TYPE: - setElementType((QName)newValue); - return; - case HTTPPackage.HTTP_OPERATION__LOCATION_URI: - setLocationURI((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_OPERATION__DOCUMENTATION_ELEMENT: - setDocumentationElement(DOCUMENTATION_ELEMENT_EDEFAULT); - return; - case HTTPPackage.HTTP_OPERATION__ELEMENT: - setElement(ELEMENT_EDEFAULT); - return; - case HTTPPackage.HTTP_OPERATION__REQUIRED: - setRequired(REQUIRED_EDEFAULT); - return; - case HTTPPackage.HTTP_OPERATION__ELEMENT_TYPE: - setElementType(ELEMENT_TYPE_EDEFAULT); - return; - case HTTPPackage.HTTP_OPERATION__LOCATION_URI: - setLocationURI(LOCATION_URI_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_OPERATION__DOCUMENTATION_ELEMENT: - return DOCUMENTATION_ELEMENT_EDEFAULT == null ? documentationElement != null : !DOCUMENTATION_ELEMENT_EDEFAULT.equals(documentationElement); - case HTTPPackage.HTTP_OPERATION__ELEMENT: - return ELEMENT_EDEFAULT == null ? element != null : !ELEMENT_EDEFAULT.equals(element); - case HTTPPackage.HTTP_OPERATION__REQUIRED: - return required != REQUIRED_EDEFAULT; - case HTTPPackage.HTTP_OPERATION__ELEMENT_TYPE: - return ELEMENT_TYPE_EDEFAULT == null ? elementType != null : !ELEMENT_TYPE_EDEFAULT.equals(elementType); - case HTTPPackage.HTTP_OPERATION__LOCATION_URI: - return LOCATION_URI_EDEFAULT == null ? locationURI != null : !LOCATION_URI_EDEFAULT.equals(locationURI); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (locationURI: "); - result.append(locationURI); - result.append(')'); - return result.toString(); - } - - // - // Reconcile methods: DOM -> Model - // - - public void reconcileAttributes(Element changedElement) - { - setLocationURI - (HTTPConstants.getAttribute(changedElement, HTTPConstants.LOCATION_URI_ATTRIBUTE)); - reconcileReferences(false); - } - - // - // For reconciliation: Model -> DOM - // - - protected void changeAttribute(EAttribute eAttribute) - { - if (isReconciling) - return; - - super.changeAttribute(eAttribute); - Element theElement = getElement(); - if (theElement != null) - { - if (eAttribute == null || eAttribute == HTTPPackage.eINSTANCE.getHTTPOperation_LocationURI()) - niceSetAttribute(theElement,HTTPConstants.LOCATION_URI_ATTRIBUTE,getLocationURI()); - } - } - - public QName getElementType() - { - if (elementType == null) - elementType = new QName(HTTPConstants.HTTP_NAMESPACE_URI, HTTPConstants.OPERATION_ELEMENT_TAG); - return elementType; - } - -} //HTTPOperationImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPPackageImpl.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPPackageImpl.java deleted file mode 100644 index 4c1adabe5..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPPackageImpl.java +++ /dev/null @@ -1,412 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.wst.wsdl.WSDLPackage; -import org.eclipse.wst.wsdl.binding.http.HTTPAddress; -import org.eclipse.wst.wsdl.binding.http.HTTPBinding; -import org.eclipse.wst.wsdl.binding.http.HTTPFactory; -import org.eclipse.wst.wsdl.binding.http.HTTPOperation; -import org.eclipse.wst.wsdl.binding.http.HTTPPackage; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlEncoded; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlReplacement; -import org.eclipse.wst.wsdl.internal.impl.WSDLPackageImpl; -import org.eclipse.xsd.impl.XSDPackageImpl; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class HTTPPackageImpl extends EPackageImpl implements HTTPPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass httpBindingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass httpOperationEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass httpUrlReplacementEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass httpUrlEncodedEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass httpAddressEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ihttpAddressEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ihttpBindingEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ihttpOperationEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ihttpUrlEncodedEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass ihttpUrlReplacementEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - * <p>Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage#eNS_URI - * @see #init() - * @generated - */ - private HTTPPackageImpl() { - super(eNS_URI, HTTPFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - * <p>Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - * <p>Invocation of this method will not affect any packages that have - * already been initialized. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static HTTPPackage init() { - if (isInited) return (HTTPPackage)EPackage.Registry.INSTANCE.get(HTTPPackage.eNS_URI); - - // Obtain or create and register package. - HTTPPackageImpl theHTTPPackage = (HTTPPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HTTPPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - XSDPackageImpl.init(); - - // Obtain or create and register interdependencies - WSDLPackageImpl theWSDLPackage = (WSDLPackageImpl)(EPackage.Registry.INSTANCE.get(WSDLPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.get(WSDLPackage.eNS_URI) : WSDLPackageImpl.eINSTANCE); - - // Step 1: create meta-model objects - theHTTPPackage.createPackageContents(); - theWSDLPackage.createPackageContents(); - - // Step 2: complete initialization - theHTTPPackage.initializePackageContents(); - theWSDLPackage.initializePackageContents(); - - return theHTTPPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getHTTPBinding() { - return httpBindingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getHTTPBinding_Verb() { - return (EAttribute)httpBindingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getHTTPOperation() { - return httpOperationEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getHTTPOperation_LocationURI() { - return (EAttribute)httpOperationEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getHTTPUrlReplacement() { - return httpUrlReplacementEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getHTTPUrlEncoded() { - return httpUrlEncodedEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getHTTPAddress() { - return httpAddressEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getHTTPAddress_LocationURI() { - return (EAttribute)httpAddressEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIHTTPAddress() { - return ihttpAddressEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIHTTPBinding() { - return ihttpBindingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIHTTPOperation() { - return ihttpOperationEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIHTTPUrlEncoded() { - return ihttpUrlEncodedEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIHTTPUrlReplacement() { - return ihttpUrlReplacementEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPFactory getHTTPFactory() { - return (HTTPFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - httpBindingEClass = createEClass(HTTP_BINDING); - createEAttribute(httpBindingEClass, HTTP_BINDING__VERB); - - httpOperationEClass = createEClass(HTTP_OPERATION); - createEAttribute(httpOperationEClass, HTTP_OPERATION__LOCATION_URI); - - httpUrlReplacementEClass = createEClass(HTTP_URL_REPLACEMENT); - - httpUrlEncodedEClass = createEClass(HTTP_URL_ENCODED); - - httpAddressEClass = createEClass(HTTP_ADDRESS); - createEAttribute(httpAddressEClass, HTTP_ADDRESS__LOCATION_URI); - - ihttpAddressEClass = createEClass(IHTTP_ADDRESS); - - ihttpBindingEClass = createEClass(IHTTP_BINDING); - - ihttpOperationEClass = createEClass(IHTTP_OPERATION); - - ihttpUrlEncodedEClass = createEClass(IHTTP_URL_ENCODED); - - ihttpUrlReplacementEClass = createEClass(IHTTP_URL_REPLACEMENT); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - WSDLPackageImpl theWSDLPackage = (WSDLPackageImpl)EPackage.Registry.INSTANCE.getEPackage(WSDLPackage.eNS_URI); - - // Add supertypes to classes - httpBindingEClass.getESuperTypes().add(theWSDLPackage.getExtensibilityElement()); - httpBindingEClass.getESuperTypes().add(this.getIHTTPBinding()); - httpOperationEClass.getESuperTypes().add(theWSDLPackage.getExtensibilityElement()); - httpOperationEClass.getESuperTypes().add(this.getIHTTPOperation()); - httpUrlReplacementEClass.getESuperTypes().add(theWSDLPackage.getExtensibilityElement()); - httpUrlReplacementEClass.getESuperTypes().add(this.getIHTTPUrlReplacement()); - httpUrlEncodedEClass.getESuperTypes().add(theWSDLPackage.getExtensibilityElement()); - httpUrlEncodedEClass.getESuperTypes().add(this.getIHTTPUrlEncoded()); - httpAddressEClass.getESuperTypes().add(theWSDLPackage.getExtensibilityElement()); - httpAddressEClass.getESuperTypes().add(this.getIHTTPAddress()); - - // Initialize classes and features; add operations and parameters - initEClass(httpBindingEClass, HTTPBinding.class, "HTTPBinding", !IS_ABSTRACT, !IS_INTERFACE); - initEAttribute(getHTTPBinding_Verb(), ecorePackage.getEString(), "verb", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); - - initEClass(httpOperationEClass, HTTPOperation.class, "HTTPOperation", !IS_ABSTRACT, !IS_INTERFACE); - initEAttribute(getHTTPOperation_LocationURI(), ecorePackage.getEString(), "locationURI", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); - - initEClass(httpUrlReplacementEClass, HTTPUrlReplacement.class, "HTTPUrlReplacement", !IS_ABSTRACT, !IS_INTERFACE); - - initEClass(httpUrlEncodedEClass, HTTPUrlEncoded.class, "HTTPUrlEncoded", !IS_ABSTRACT, !IS_INTERFACE); - - initEClass(httpAddressEClass, HTTPAddress.class, "HTTPAddress", !IS_ABSTRACT, !IS_INTERFACE); - initEAttribute(getHTTPAddress_LocationURI(), ecorePackage.getEString(), "locationURI", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); - - initEClass(ihttpAddressEClass, javax.wsdl.extensions.http.HTTPAddress.class, "IHTTPAddress", IS_ABSTRACT, IS_INTERFACE); - - initEClass(ihttpBindingEClass, javax.wsdl.extensions.http.HTTPBinding.class, "IHTTPBinding", IS_ABSTRACT, IS_INTERFACE); - - initEClass(ihttpOperationEClass, javax.wsdl.extensions.http.HTTPOperation.class, "IHTTPOperation", IS_ABSTRACT, IS_INTERFACE); - - initEClass(ihttpUrlEncodedEClass, javax.wsdl.extensions.http.HTTPUrlEncoded.class, "IHTTPUrlEncoded", IS_ABSTRACT, IS_INTERFACE); - - initEClass(ihttpUrlReplacementEClass, javax.wsdl.extensions.http.HTTPUrlReplacement.class, "IHTTPUrlReplacement", IS_ABSTRACT, IS_INTERFACE); - - // Create resource - createResource(eNS_URI); - } -} //HTTPPackageImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPUrlEncodedImpl.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPUrlEncodedImpl.java deleted file mode 100644 index f681e94ce..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPUrlEncodedImpl.java +++ /dev/null @@ -1,150 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.impl; - - -import javax.xml.namespace.QName; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.wst.wsdl.binding.http.HTTPPackage; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlEncoded; -import org.eclipse.wst.wsdl.binding.http.internal.util.HTTPConstants; -import org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl; -import org.w3c.dom.Element; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Url Encoded</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class HTTPUrlEncodedImpl extends ExtensibilityElementImpl implements HTTPUrlEncoded { - /** - * This class is not intended to be serialized. - * serialVersionUID is assigned with 1L to avoid - * compiler warning messages. - */ - private static final long serialVersionUID = 1L; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HTTPUrlEncodedImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return HTTPPackage.eINSTANCE.getHTTPUrlEncoded(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_URL_ENCODED__DOCUMENTATION_ELEMENT: - return getDocumentationElement(); - case HTTPPackage.HTTP_URL_ENCODED__ELEMENT: - return getElement(); - case HTTPPackage.HTTP_URL_ENCODED__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case HTTPPackage.HTTP_URL_ENCODED__ELEMENT_TYPE: - return getElementType(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_URL_ENCODED__DOCUMENTATION_ELEMENT: - setDocumentationElement((Element)newValue); - return; - case HTTPPackage.HTTP_URL_ENCODED__ELEMENT: - setElement((Element)newValue); - return; - case HTTPPackage.HTTP_URL_ENCODED__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case HTTPPackage.HTTP_URL_ENCODED__ELEMENT_TYPE: - setElementType((QName)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_URL_ENCODED__DOCUMENTATION_ELEMENT: - setDocumentationElement(DOCUMENTATION_ELEMENT_EDEFAULT); - return; - case HTTPPackage.HTTP_URL_ENCODED__ELEMENT: - setElement(ELEMENT_EDEFAULT); - return; - case HTTPPackage.HTTP_URL_ENCODED__REQUIRED: - setRequired(REQUIRED_EDEFAULT); - return; - case HTTPPackage.HTTP_URL_ENCODED__ELEMENT_TYPE: - setElementType(ELEMENT_TYPE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_URL_ENCODED__DOCUMENTATION_ELEMENT: - return DOCUMENTATION_ELEMENT_EDEFAULT == null ? documentationElement != null : !DOCUMENTATION_ELEMENT_EDEFAULT.equals(documentationElement); - case HTTPPackage.HTTP_URL_ENCODED__ELEMENT: - return ELEMENT_EDEFAULT == null ? element != null : !ELEMENT_EDEFAULT.equals(element); - case HTTPPackage.HTTP_URL_ENCODED__REQUIRED: - return required != REQUIRED_EDEFAULT; - case HTTPPackage.HTTP_URL_ENCODED__ELEMENT_TYPE: - return ELEMENT_TYPE_EDEFAULT == null ? elementType != null : !ELEMENT_TYPE_EDEFAULT.equals(elementType); - } - return eDynamicIsSet(eFeature); - } - - public QName getElementType() - { - if (elementType == null) - elementType = new QName(HTTPConstants.HTTP_NAMESPACE_URI, HTTPConstants.URL_ENCODED_ELEMENT_TAG); - return elementType; - } - -} //HTTPUrlEncodedImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPUrlReplacementImpl.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPUrlReplacementImpl.java deleted file mode 100644 index d58b4e888..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPUrlReplacementImpl.java +++ /dev/null @@ -1,150 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.impl; - - -import javax.xml.namespace.QName; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.wst.wsdl.binding.http.HTTPPackage; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlReplacement; -import org.eclipse.wst.wsdl.binding.http.internal.util.HTTPConstants; -import org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl; -import org.w3c.dom.Element; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Url Replacement</b></em>'. - * <!-- end-user-doc --> - * <p> - * </p> - * - * @generated - */ -public class HTTPUrlReplacementImpl extends ExtensibilityElementImpl implements HTTPUrlReplacement { - /** - * This class is not intended to be serialized. - * serialVersionUID is assigned with 1L to avoid - * compiler warning messages. - */ - private static final long serialVersionUID = 1L; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HTTPUrlReplacementImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return HTTPPackage.eINSTANCE.getHTTPUrlReplacement(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_URL_REPLACEMENT__DOCUMENTATION_ELEMENT: - return getDocumentationElement(); - case HTTPPackage.HTTP_URL_REPLACEMENT__ELEMENT: - return getElement(); - case HTTPPackage.HTTP_URL_REPLACEMENT__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case HTTPPackage.HTTP_URL_REPLACEMENT__ELEMENT_TYPE: - return getElementType(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_URL_REPLACEMENT__DOCUMENTATION_ELEMENT: - setDocumentationElement((Element)newValue); - return; - case HTTPPackage.HTTP_URL_REPLACEMENT__ELEMENT: - setElement((Element)newValue); - return; - case HTTPPackage.HTTP_URL_REPLACEMENT__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case HTTPPackage.HTTP_URL_REPLACEMENT__ELEMENT_TYPE: - setElementType((QName)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_URL_REPLACEMENT__DOCUMENTATION_ELEMENT: - setDocumentationElement(DOCUMENTATION_ELEMENT_EDEFAULT); - return; - case HTTPPackage.HTTP_URL_REPLACEMENT__ELEMENT: - setElement(ELEMENT_EDEFAULT); - return; - case HTTPPackage.HTTP_URL_REPLACEMENT__REQUIRED: - setRequired(REQUIRED_EDEFAULT); - return; - case HTTPPackage.HTTP_URL_REPLACEMENT__ELEMENT_TYPE: - setElementType(ELEMENT_TYPE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case HTTPPackage.HTTP_URL_REPLACEMENT__DOCUMENTATION_ELEMENT: - return DOCUMENTATION_ELEMENT_EDEFAULT == null ? documentationElement != null : !DOCUMENTATION_ELEMENT_EDEFAULT.equals(documentationElement); - case HTTPPackage.HTTP_URL_REPLACEMENT__ELEMENT: - return ELEMENT_EDEFAULT == null ? element != null : !ELEMENT_EDEFAULT.equals(element); - case HTTPPackage.HTTP_URL_REPLACEMENT__REQUIRED: - return required != REQUIRED_EDEFAULT; - case HTTPPackage.HTTP_URL_REPLACEMENT__ELEMENT_TYPE: - return ELEMENT_TYPE_EDEFAULT == null ? elementType != null : !ELEMENT_TYPE_EDEFAULT.equals(elementType); - } - return eDynamicIsSet(eFeature); - } - - public QName getElementType() - { - if (elementType == null) - elementType = new QName(HTTPConstants.HTTP_NAMESPACE_URI, HTTPConstants.URL_REPLACEMENT_ELEMENT_TAG); - return elementType; - } - -} //HTTPUrlReplacementImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPAdapterFactory.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPAdapterFactory.java deleted file mode 100644 index bf7481a1d..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPAdapterFactory.java +++ /dev/null @@ -1,333 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.util; - -import javax.wsdl.extensions.ExtensibilityElement; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.wst.wsdl.WSDLElement; -import org.eclipse.wst.wsdl.binding.http.HTTPAddress; -import org.eclipse.wst.wsdl.binding.http.HTTPBinding; -import org.eclipse.wst.wsdl.binding.http.HTTPOperation; -import org.eclipse.wst.wsdl.binding.http.HTTPPackage; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlEncoded; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlReplacement; - -/** - * <!-- begin-user-doc --> - * The <b>Adapter Factory</b> for the model. - * It provides an adapter <code>createXXX</code> method for each class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage - * @generated - */ -public class HTTPAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static HTTPPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPAdapterFactory() { - if (modelPackage == null) { - modelPackage = HTTPPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * <!-- begin-user-doc --> - * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. - * <!-- end-user-doc --> - * @return whether this factory is applicable for the type of the object. - * @generated - */ - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HTTPSwitch modelSwitch = - new HTTPSwitch() { - public Object caseHTTPBinding(HTTPBinding object) { - return createHTTPBindingAdapter(); - } - public Object caseHTTPOperation(HTTPOperation object) { - return createHTTPOperationAdapter(); - } - public Object caseHTTPUrlReplacement(HTTPUrlReplacement object) { - return createHTTPUrlReplacementAdapter(); - } - public Object caseHTTPUrlEncoded(HTTPUrlEncoded object) { - return createHTTPUrlEncodedAdapter(); - } - public Object caseHTTPAddress(HTTPAddress object) { - return createHTTPAddressAdapter(); - } - public Object caseIHTTPAddress(javax.wsdl.extensions.http.HTTPAddress object) { - return createIHTTPAddressAdapter(); - } - public Object caseIHTTPBinding(javax.wsdl.extensions.http.HTTPBinding object) { - return createIHTTPBindingAdapter(); - } - public Object caseIHTTPOperation(javax.wsdl.extensions.http.HTTPOperation object) { - return createIHTTPOperationAdapter(); - } - public Object caseIHTTPUrlEncoded(javax.wsdl.extensions.http.HTTPUrlEncoded object) { - return createIHTTPUrlEncodedAdapter(); - } - public Object caseIHTTPUrlReplacement(javax.wsdl.extensions.http.HTTPUrlReplacement object) { - return createIHTTPUrlReplacementAdapter(); - } - public Object caseWSDLElement(WSDLElement object) { - return createWSDLElementAdapter(); - } - public Object caseIExtensibilityElement(ExtensibilityElement object) { - return createIExtensibilityElementAdapter(); - } - public Object caseExtensibilityElement(org.eclipse.wst.wsdl.ExtensibilityElement object) { - return createExtensibilityElementAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param target the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.wst.wsdl.binding.http.HTTPBinding <em>Binding</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.wst.wsdl.binding.http.HTTPBinding - * @generated - */ - public Adapter createHTTPBindingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.wst.wsdl.binding.http.HTTPOperation <em>Operation</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.wst.wsdl.binding.http.HTTPOperation - * @generated - */ - public Adapter createHTTPOperationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.wst.wsdl.binding.http.HTTPUrlReplacement <em>Url Replacement</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.wst.wsdl.binding.http.HTTPUrlReplacement - * @generated - */ - public Adapter createHTTPUrlReplacementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.wst.wsdl.binding.http.HTTPUrlEncoded <em>Url Encoded</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.wst.wsdl.binding.http.HTTPUrlEncoded - * @generated - */ - public Adapter createHTTPUrlEncodedAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.wst.wsdl.binding.http.HTTPAddress <em>Address</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.wst.wsdl.binding.http.HTTPAddress - * @generated - */ - public Adapter createHTTPAddressAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link javax.wsdl.extensions.http.HTTPAddress <em>IHTTP Address</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see javax.wsdl.extensions.http.HTTPAddress - * @generated - */ - public Adapter createIHTTPAddressAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link javax.wsdl.extensions.http.HTTPBinding <em>IHTTP Binding</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see javax.wsdl.extensions.http.HTTPBinding - * @generated - */ - public Adapter createIHTTPBindingAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link javax.wsdl.extensions.http.HTTPOperation <em>IHTTP Operation</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see javax.wsdl.extensions.http.HTTPOperation - * @generated - */ - public Adapter createIHTTPOperationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link javax.wsdl.extensions.http.HTTPUrlEncoded <em>IHTTP Url Encoded</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see javax.wsdl.extensions.http.HTTPUrlEncoded - * @generated - */ - public Adapter createIHTTPUrlEncodedAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link javax.wsdl.extensions.http.HTTPUrlReplacement <em>IHTTP Url Replacement</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see javax.wsdl.extensions.http.HTTPUrlReplacement - * @generated - */ - public Adapter createIHTTPUrlReplacementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.wst.wsdl.WSDLElement <em>Element</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.wst.wsdl.WSDLElement - * @generated - */ - public Adapter createWSDLElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link javax.wsdl.extensions.ExtensibilityElement <em>IExtensibility Element</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see javax.wsdl.extensions.ExtensibilityElement - * @generated - */ - public Adapter createIExtensibilityElementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.wst.wsdl.ExtensibilityElement <em>Extensibility Element</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.wst.wsdl.ExtensibilityElement - * @generated - */ - public Adapter createExtensibilityElementAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //HTTPAdapterFactory diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPConstants.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPConstants.java deleted file mode 100644 index 1b46a1a99..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPConstants.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.util; - -import org.w3c.dom.Element; - -public final class HTTPConstants -{ - public static final String ADDRESS_ELEMENT_TAG = "address"; - public static final String BINDING_ELEMENT_TAG = "binding"; - public static final String OPERATION_ELEMENT_TAG = "operation"; - public static final String URL_ENCODED_ELEMENT_TAG = "urlEncoded"; - public static final String URL_REPLACEMENT_ELEMENT_TAG = "urlReplacement"; - - public static final String HTTP_NAMESPACE_URI = "http://schemas.xmlsoap.org/wsdl/http/"; - - public static final String LOCATION_URI_ATTRIBUTE ="location"; - public static final String VERB_ATTRIBUTE ="verb"; - - public static String getAttribute(Element element, String attributeName) - { - return element.hasAttribute(attributeName) ? element.getAttribute(attributeName) : null; - } -} diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPExtensibilityElementFactory.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPExtensibilityElementFactory.java deleted file mode 100644 index ef962d1ce..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPExtensibilityElementFactory.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.util; - -import org.eclipse.wst.wsdl.ExtensibilityElement; -import org.eclipse.wst.wsdl.WSDLFactory; -import org.eclipse.wst.wsdl.binding.http.HTTPFactory; -import org.eclipse.wst.wsdl.util.ExtensibilityElementFactory; - -public class HTTPExtensibilityElementFactory implements ExtensibilityElementFactory -{ - public ExtensibilityElement createExtensibilityElement(String namespace, String localName) - { - if (HTTPConstants.HTTP_NAMESPACE_URI.equals(namespace)) - { - if (HTTPConstants.ADDRESS_ELEMENT_TAG.equals(localName)) - { - return HTTPFactory.eINSTANCE.createHTTPAddress(); - } - else if (HTTPConstants.BINDING_ELEMENT_TAG.equals(localName)) - { - return HTTPFactory.eINSTANCE.createHTTPBinding(); - } - else if (HTTPConstants.OPERATION_ELEMENT_TAG.equals(localName)) - { - return HTTPFactory.eINSTANCE.createHTTPOperation(); - } - else if (HTTPConstants.URL_ENCODED_ELEMENT_TAG.equals(localName)) - { - return HTTPFactory.eINSTANCE.createHTTPUrlEncoded(); - } - else if (HTTPConstants.URL_REPLACEMENT_ELEMENT_TAG.equals(localName)) - { - return HTTPFactory.eINSTANCE.createHTTPUrlReplacement(); - } - else - { - //System.out.println("Unhandled localName: " + localName); - return WSDLFactory.eINSTANCE.createUnknownExtensibilityElement(); - } - } - else - { - //System.out.println("Unhandled namespace: " + namespace); - return WSDLFactory.eINSTANCE.createUnknownExtensibilityElement(); - } - } -} diff --git a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPSwitch.java b/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPSwitch.java deleted file mode 100644 index 2dd03f2f9..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPSwitch.java +++ /dev/null @@ -1,336 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.binding.http.internal.util; - -import javax.wsdl.extensions.ExtensibilityElement; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.wst.wsdl.WSDLElement; -import org.eclipse.wst.wsdl.binding.http.HTTPAddress; -import org.eclipse.wst.wsdl.binding.http.HTTPBinding; -import org.eclipse.wst.wsdl.binding.http.HTTPOperation; -import org.eclipse.wst.wsdl.binding.http.HTTPPackage; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlEncoded; -import org.eclipse.wst.wsdl.binding.http.HTTPUrlReplacement; - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.http.HTTPPackage - * @generated - */ -public class HTTPSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static HTTPPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HTTPSwitch() { - if (modelPackage == null) { - modelPackage = HTTPPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - EClass theEClass = theEObject.eClass(); - if (theEClass.eContainer() == modelPackage) { - switch (theEClass.getClassifierID()) { - case HTTPPackage.HTTP_BINDING: { - HTTPBinding httpBinding = (HTTPBinding)theEObject; - Object result = caseHTTPBinding(httpBinding); - if (result == null) result = caseExtensibilityElement(httpBinding); - if (result == null) result = caseIHTTPBinding(httpBinding); - if (result == null) result = caseWSDLElement(httpBinding); - if (result == null) result = caseIExtensibilityElement(httpBinding); - if (result == null) result = defaultCase(theEObject); - return result; - } - case HTTPPackage.HTTP_OPERATION: { - HTTPOperation httpOperation = (HTTPOperation)theEObject; - Object result = caseHTTPOperation(httpOperation); - if (result == null) result = caseExtensibilityElement(httpOperation); - if (result == null) result = caseIHTTPOperation(httpOperation); - if (result == null) result = caseWSDLElement(httpOperation); - if (result == null) result = caseIExtensibilityElement(httpOperation); - if (result == null) result = defaultCase(theEObject); - return result; - } - case HTTPPackage.HTTP_URL_REPLACEMENT: { - HTTPUrlReplacement httpUrlReplacement = (HTTPUrlReplacement)theEObject; - Object result = caseHTTPUrlReplacement(httpUrlReplacement); - if (result == null) result = caseExtensibilityElement(httpUrlReplacement); - if (result == null) result = caseIHTTPUrlReplacement(httpUrlReplacement); - if (result == null) result = caseWSDLElement(httpUrlReplacement); - if (result == null) result = caseIExtensibilityElement(httpUrlReplacement); - if (result == null) result = defaultCase(theEObject); - return result; - } - case HTTPPackage.HTTP_URL_ENCODED: { - HTTPUrlEncoded httpUrlEncoded = (HTTPUrlEncoded)theEObject; - Object result = caseHTTPUrlEncoded(httpUrlEncoded); - if (result == null) result = caseExtensibilityElement(httpUrlEncoded); - if (result == null) result = caseIHTTPUrlEncoded(httpUrlEncoded); - if (result == null) result = caseWSDLElement(httpUrlEncoded); - if (result == null) result = caseIExtensibilityElement(httpUrlEncoded); - if (result == null) result = defaultCase(theEObject); - return result; - } - case HTTPPackage.HTTP_ADDRESS: { - HTTPAddress httpAddress = (HTTPAddress)theEObject; - Object result = caseHTTPAddress(httpAddress); - if (result == null) result = caseExtensibilityElement(httpAddress); - if (result == null) result = caseIHTTPAddress(httpAddress); - if (result == null) result = caseWSDLElement(httpAddress); - if (result == null) result = caseIExtensibilityElement(httpAddress); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - return defaultCase(theEObject); - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Binding</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Binding</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseHTTPBinding(HTTPBinding object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Operation</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Operation</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseHTTPOperation(HTTPOperation object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Url Replacement</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Url Replacement</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseHTTPUrlReplacement(HTTPUrlReplacement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Url Encoded</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Url Encoded</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseHTTPUrlEncoded(HTTPUrlEncoded object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Address</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Address</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseHTTPAddress(HTTPAddress object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>IHTTP Address</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>IHTTP Address</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIHTTPAddress(javax.wsdl.extensions.http.HTTPAddress object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>IHTTP Binding</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>IHTTP Binding</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIHTTPBinding(javax.wsdl.extensions.http.HTTPBinding object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>IHTTP Operation</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>IHTTP Operation</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIHTTPOperation(javax.wsdl.extensions.http.HTTPOperation object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>IHTTP Url Encoded</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>IHTTP Url Encoded</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIHTTPUrlEncoded(javax.wsdl.extensions.http.HTTPUrlEncoded object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>IHTTP Url Replacement</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>IHTTP Url Replacement</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIHTTPUrlReplacement(javax.wsdl.extensions.http.HTTPUrlReplacement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Element</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLElement(WSDLElement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>IExtensibility Element</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>IExtensibility Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIExtensibilityElement(ExtensibilityElement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Extensibility Element</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Extensibility Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseExtensibilityElement(org.eclipse.wst.wsdl.ExtensibilityElement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //HTTPSwitch |