diff options
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst')
16 files changed, 0 insertions, 3687 deletions
diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEContent.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEContent.java deleted file mode 100644 index 91903c0d3..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEContent.java +++ /dev/null @@ -1,109 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime; - - -import org.eclipse.wst.wsdl.ExtensibilityElement; -import org.eclipse.wst.wsdl.Part; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Content</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.MIMEContent#getType <em>Type</em>}</li> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.MIMEContent#getEPart <em>EPart</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPackage#getMIMEContent() - * @model - * @generated - */ -public interface MIMEContent extends ExtensibilityElement, javax.wsdl.extensions.mime.MIMEContent -{ - /** - * Returns the value of the '<em><b>Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Type</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Type</em>' attribute. - * @see #setType(String) - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPackage#getMIMEContent_Type() - * @model - * @generated - */ - String getType(); - - /** - * Sets the value of the '{@link org.eclipse.wst.wsdl.binding.mime.MIMEContent#getType <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Type</em>' attribute. - * @see #getType() - * @generated - */ - void setType(String value); - - /** - * Returns the value of the '<em><b>EPart</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>EPart</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>EPart</em>' reference. - * @see #setEPart(Part) - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPackage#getMIMEContent_EPart() - * @model - * @generated - */ - Part getEPart(); - - /** - * Sets the value of the '{@link org.eclipse.wst.wsdl.binding.mime.MIMEContent#getEPart <em>EPart</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>EPart</em>' reference. - * @see #getEPart() - * @generated - */ - void setEPart(Part value); - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @model - * @generated - */ - void setPart(String part); - - /** - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Part</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @model kind="operation" - * @generated - */ - String getPart(); - -} // MIMEContent diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEFactory.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEFactory.java deleted file mode 100644 index bdc4a81c7..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEFactory.java +++ /dev/null @@ -1,80 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime; - - -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.mime.MIMEPackage - * @generated - */ -public interface MIMEFactory extends EFactory -{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - MIMEFactory eINSTANCE = org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEFactoryImpl.init(); - - /** - * Returns a new object of class '<em>Content</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Content</em>'. - * @generated - */ - MIMEContent createMIMEContent(); - - /** - * Returns a new object of class '<em>Part</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Part</em>'. - * @generated - */ - MIMEPart createMIMEPart(); - - /** - * Returns a new object of class '<em>Multipart Related</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Multipart Related</em>'. - * @generated - */ - MIMEMultipartRelated createMIMEMultipartRelated(); - - /** - * Returns a new object of class '<em>Mime Xml</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Mime Xml</em>'. - * @generated - */ - MIMEMimeXml createMIMEMimeXml(); - - /** - * Returns the package supported by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - MIMEPackage getMIMEPackage(); - -} //MIMEFactory diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEMimeXml.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEMimeXml.java deleted file mode 100644 index 892d8c8b7..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEMimeXml.java +++ /dev/null @@ -1,82 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime; - - -import org.eclipse.wst.wsdl.ExtensibilityElement; -import org.eclipse.wst.wsdl.Part; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Mime Xml</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.MIMEMimeXml#getEPart <em>EPart</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPackage#getMIMEMimeXml() - * @model - * @generated - */ -public interface MIMEMimeXml extends ExtensibilityElement, javax.wsdl.extensions.mime.MIMEMimeXml -{ - /** - * Returns the value of the '<em><b>EPart</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>EPart</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>EPart</em>' reference. - * @see #setEPart(Part) - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPackage#getMIMEMimeXml_EPart() - * @model - * @generated - */ - Part getEPart(); - - /** - * Sets the value of the '{@link org.eclipse.wst.wsdl.binding.mime.MIMEMimeXml#getEPart <em>EPart</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>EPart</em>' reference. - * @see #getEPart() - * @generated - */ - void setEPart(Part value); - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @model - * @generated - */ - void setPart(String part); - - /** - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Part</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @model kind="operation" - * @generated - */ - String getPart(); - -} // MIMEMimeXml diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEMultipartRelated.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEMultipartRelated.java deleted file mode 100644 index 64650b748..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEMultipartRelated.java +++ /dev/null @@ -1,72 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime; - - -import java.util.List; - -import javax.wsdl.extensions.mime.MIMEPart; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.wst.wsdl.ExtensibilityElement; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Multipart Related</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.MIMEMultipartRelated#getEMIMEPart <em>EMIME Part</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPackage#getMIMEMultipartRelated() - * @model - * @generated - */ -public interface MIMEMultipartRelated extends ExtensibilityElement, javax.wsdl.extensions.mime.MIMEMultipartRelated -{ - /** - * Returns the value of the '<em><b>EMIME Part</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.wst.wsdl.binding.mime.MIMEPart}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>EMIME Part</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>EMIME Part</em>' containment reference list. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPackage#getMIMEMultipartRelated_EMIMEPart() - * @model type="org.eclipse.wst.wsdl.binding.mime.MIMEPart" containment="true" - * @generated - */ - EList getEMIMEPart(); - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @model - * @generated - */ - void addMIMEPart(MIMEPart mimePart); - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @model kind="operation" dataType="org.eclipse.wst.wsdl.binding.mime.List" many="false" - * @generated - */ - List getMIMEParts(); - -} // MIMEMultipartRelated diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEPackage.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEPackage.java deleted file mode 100644 index c9372d5f4..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEPackage.java +++ /dev/null @@ -1,727 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime; - - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -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.mime.MIMEFactory - * @model kind="package" - * @generated - */ -public interface MIMEPackage extends EPackage -{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "mime"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "http://www.eclipse.org/wsdl/2003/MIME"; //$NON-NLS-1$ - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "mime"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - MIMEPackage eINSTANCE = org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEContentImpl <em>Content</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEContentImpl - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getMIMEContent() - * @generated - */ - int MIME_CONTENT = 0; - - /** - * The feature id for the '<em><b>Documentation Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_CONTENT__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 MIME_CONTENT__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 MIME_CONTENT__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 MIME_CONTENT__ELEMENT_TYPE = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT_TYPE; - - /** - * The feature id for the '<em><b>Type</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_CONTENT__TYPE = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>EPart</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_CONTENT__EPART = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 1; - - /** - * The number of structural features of the '<em>Content</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_CONTENT_FEATURE_COUNT = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPartImpl <em>Part</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPartImpl - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getMIMEPart() - * @generated - */ - int MIME_PART = 1; - - /** - * The feature id for the '<em><b>Documentation Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_PART__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 MIME_PART__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 MIME_PART__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 MIME_PART__ELEMENT_TYPE = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT_TYPE; - - /** - * The feature id for the '<em><b>EExtensibility Elements</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_PART__EEXTENSIBILITY_ELEMENTS = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Part</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_PART_FEATURE_COUNT = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEMultipartRelatedImpl <em>Multipart Related</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEMultipartRelatedImpl - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getMIMEMultipartRelated() - * @generated - */ - int MIME_MULTIPART_RELATED = 2; - - /** - * The feature id for the '<em><b>Documentation Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_MULTIPART_RELATED__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 MIME_MULTIPART_RELATED__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 MIME_MULTIPART_RELATED__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 MIME_MULTIPART_RELATED__ELEMENT_TYPE = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT_TYPE; - - /** - * The feature id for the '<em><b>EMIME Part</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_MULTIPART_RELATED__EMIME_PART = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Multipart Related</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_MULTIPART_RELATED_FEATURE_COUNT = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEMimeXmlImpl <em>Mime Xml</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEMimeXmlImpl - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getMIMEMimeXml() - * @generated - */ - int MIME_MIME_XML = 3; - - /** - * The feature id for the '<em><b>Documentation Element</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_MIME_XML__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 MIME_MIME_XML__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 MIME_MIME_XML__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 MIME_MIME_XML__ELEMENT_TYPE = WSDLPackage.EXTENSIBILITY_ELEMENT__ELEMENT_TYPE; - - /** - * The feature id for the '<em><b>EPart</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_MIME_XML__EPART = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Mime Xml</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_MIME_XML_FEATURE_COUNT = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link javax.wsdl.extensions.mime.MIMEPart <em>IMIME Part</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.mime.MIMEPart - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getIMIMEPart() - * @generated - */ - int IMIME_PART = 4; - - /** - * The number of structural features of the '<em>IMIME Part</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IMIME_PART_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link javax.wsdl.extensions.mime.MIMEMultipartRelated <em>IMIME Multipart Related</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.mime.MIMEMultipartRelated - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getIMIMEMultipartRelated() - * @generated - */ - int IMIME_MULTIPART_RELATED = 5; - - /** - * The number of structural features of the '<em>IMIME Multipart Related</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IMIME_MULTIPART_RELATED_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link javax.wsdl.extensions.mime.MIMEContent <em>IMIME Content</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.mime.MIMEContent - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getIMIMEContent() - * @generated - */ - int IMIME_CONTENT = 6; - - /** - * The number of structural features of the '<em>IMIME Content</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IMIME_CONTENT_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link javax.wsdl.extensions.mime.MIMEMimeXml <em>IMIME Mime Xml</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.mime.MIMEMimeXml - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getIMIMEMimeXml() - * @generated - */ - int IMIME_MIME_XML = 7; - - /** - * The number of structural features of the '<em>IMIME Mime Xml</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int IMIME_MIME_XML_FEATURE_COUNT = 0; - - /** - * The meta object id for the '<em>List</em>' data type. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see java.util.List - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getList() - * @generated - */ - int LIST = 8; - - /** - * Returns the meta object for class '{@link org.eclipse.wst.wsdl.binding.mime.MIMEContent <em>Content</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Content</em>'. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEContent - * @generated - */ - EClass getMIMEContent(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.wst.wsdl.binding.mime.MIMEContent#getType <em>Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Type</em>'. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEContent#getType() - * @see #getMIMEContent() - * @generated - */ - EAttribute getMIMEContent_Type(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.wst.wsdl.binding.mime.MIMEContent#getEPart <em>EPart</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>EPart</em>'. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEContent#getEPart() - * @see #getMIMEContent() - * @generated - */ - EReference getMIMEContent_EPart(); - - /** - * Returns the meta object for class '{@link org.eclipse.wst.wsdl.binding.mime.MIMEPart <em>Part</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Part</em>'. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPart - * @generated - */ - EClass getMIMEPart(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.wst.wsdl.binding.mime.MIMEPart#getEExtensibilityElements <em>EExtensibility Elements</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>EExtensibility Elements</em>'. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPart#getEExtensibilityElements() - * @see #getMIMEPart() - * @generated - */ - EReference getMIMEPart_EExtensibilityElements(); - - /** - * Returns the meta object for class '{@link org.eclipse.wst.wsdl.binding.mime.MIMEMultipartRelated <em>Multipart Related</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Multipart Related</em>'. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEMultipartRelated - * @generated - */ - EClass getMIMEMultipartRelated(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.wst.wsdl.binding.mime.MIMEMultipartRelated#getEMIMEPart <em>EMIME Part</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>EMIME Part</em>'. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEMultipartRelated#getEMIMEPart() - * @see #getMIMEMultipartRelated() - * @generated - */ - EReference getMIMEMultipartRelated_EMIMEPart(); - - /** - * Returns the meta object for class '{@link org.eclipse.wst.wsdl.binding.mime.MIMEMimeXml <em>Mime Xml</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Mime Xml</em>'. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEMimeXml - * @generated - */ - EClass getMIMEMimeXml(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.wst.wsdl.binding.mime.MIMEMimeXml#getEPart <em>EPart</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>EPart</em>'. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEMimeXml#getEPart() - * @see #getMIMEMimeXml() - * @generated - */ - EReference getMIMEMimeXml_EPart(); - - /** - * Returns the meta object for class '{@link javax.wsdl.extensions.mime.MIMEPart <em>IMIME Part</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>IMIME Part</em>'. - * @see javax.wsdl.extensions.mime.MIMEPart - * @model instanceClass="javax.wsdl.extensions.mime.MIMEPart" - * @generated - */ - EClass getIMIMEPart(); - - /** - * Returns the meta object for class '{@link javax.wsdl.extensions.mime.MIMEMultipartRelated <em>IMIME Multipart Related</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>IMIME Multipart Related</em>'. - * @see javax.wsdl.extensions.mime.MIMEMultipartRelated - * @model instanceClass="javax.wsdl.extensions.mime.MIMEMultipartRelated" - * @generated - */ - EClass getIMIMEMultipartRelated(); - - /** - * Returns the meta object for class '{@link javax.wsdl.extensions.mime.MIMEContent <em>IMIME Content</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>IMIME Content</em>'. - * @see javax.wsdl.extensions.mime.MIMEContent - * @model instanceClass="javax.wsdl.extensions.mime.MIMEContent" - * @generated - */ - EClass getIMIMEContent(); - - /** - * Returns the meta object for class '{@link javax.wsdl.extensions.mime.MIMEMimeXml <em>IMIME Mime Xml</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>IMIME Mime Xml</em>'. - * @see javax.wsdl.extensions.mime.MIMEMimeXml - * @model instanceClass="javax.wsdl.extensions.mime.MIMEMimeXml" - * @generated - */ - EClass getIMIMEMimeXml(); - - /** - * Returns the meta object for data type '{@link java.util.List <em>List</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for data type '<em>List</em>'. - * @see java.util.List - * @model instanceClass="java.util.List" - * @generated - */ - EDataType getList(); - - /** - * 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 - */ - MIMEFactory getMIMEFactory(); - - /** - * <!-- begin-user-doc --> - * Defines literals for the meta objects that 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 --> - * @generated - */ - interface Literals - { - /** - * The meta object literal for the '{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEContentImpl <em>Content</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEContentImpl - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getMIMEContent() - * @generated - */ - EClass MIME_CONTENT = eINSTANCE.getMIMEContent(); - - /** - * The meta object literal for the '<em><b>Type</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute MIME_CONTENT__TYPE = eINSTANCE.getMIMEContent_Type(); - - /** - * The meta object literal for the '<em><b>EPart</b></em>' reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MIME_CONTENT__EPART = eINSTANCE.getMIMEContent_EPart(); - - /** - * The meta object literal for the '{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPartImpl <em>Part</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPartImpl - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getMIMEPart() - * @generated - */ - EClass MIME_PART = eINSTANCE.getMIMEPart(); - - /** - * The meta object literal for the '<em><b>EExtensibility Elements</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MIME_PART__EEXTENSIBILITY_ELEMENTS = eINSTANCE.getMIMEPart_EExtensibilityElements(); - - /** - * The meta object literal for the '{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEMultipartRelatedImpl <em>Multipart Related</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEMultipartRelatedImpl - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getMIMEMultipartRelated() - * @generated - */ - EClass MIME_MULTIPART_RELATED = eINSTANCE.getMIMEMultipartRelated(); - - /** - * The meta object literal for the '<em><b>EMIME Part</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MIME_MULTIPART_RELATED__EMIME_PART = eINSTANCE.getMIMEMultipartRelated_EMIMEPart(); - - /** - * The meta object literal for the '{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEMimeXmlImpl <em>Mime Xml</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEMimeXmlImpl - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getMIMEMimeXml() - * @generated - */ - EClass MIME_MIME_XML = eINSTANCE.getMIMEMimeXml(); - - /** - * The meta object literal for the '<em><b>EPart</b></em>' reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MIME_MIME_XML__EPART = eINSTANCE.getMIMEMimeXml_EPart(); - - /** - * The meta object literal for the '{@link javax.wsdl.extensions.mime.MIMEPart <em>IMIME Part</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.mime.MIMEPart - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getIMIMEPart() - * @generated - */ - EClass IMIME_PART = eINSTANCE.getIMIMEPart(); - - /** - * The meta object literal for the '{@link javax.wsdl.extensions.mime.MIMEMultipartRelated <em>IMIME Multipart Related</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.mime.MIMEMultipartRelated - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getIMIMEMultipartRelated() - * @generated - */ - EClass IMIME_MULTIPART_RELATED = eINSTANCE.getIMIMEMultipartRelated(); - - /** - * The meta object literal for the '{@link javax.wsdl.extensions.mime.MIMEContent <em>IMIME Content</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.mime.MIMEContent - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getIMIMEContent() - * @generated - */ - EClass IMIME_CONTENT = eINSTANCE.getIMIMEContent(); - - /** - * The meta object literal for the '{@link javax.wsdl.extensions.mime.MIMEMimeXml <em>IMIME Mime Xml</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see javax.wsdl.extensions.mime.MIMEMimeXml - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getIMIMEMimeXml() - * @generated - */ - EClass IMIME_MIME_XML = eINSTANCE.getIMIMEMimeXml(); - - /** - * The meta object literal for the '<em>List</em>' data type. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see java.util.List - * @see org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPackageImpl#getList() - * @generated - */ - EDataType LIST = eINSTANCE.getList(); - - } - -} //MIMEPackage diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEPart.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEPart.java deleted file mode 100644 index 4924ab434..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEPart.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime; - - -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.wst.wsdl.ExtensibilityElement; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Part</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.MIMEPart#getEExtensibilityElements <em>EExtensibility Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPackage#getMIMEPart() - * @model superTypes="org.eclipse.wst.wsdl.ExtensibilityElement org.eclipse.wst.wsdl.binding.mime.IMIMEPart" - * @generated - */ -public interface MIMEPart extends ExtensibilityElement, javax.wsdl.extensions.mime.MIMEPart -{ - /** - * Returns the value of the '<em><b>EExtensibility Elements</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.wst.wsdl.ExtensibilityElement}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>EExtensibility Elements</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>EExtensibility Elements</em>' containment reference list. - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPackage#getMIMEPart_EExtensibilityElements() - * @model type="org.eclipse.wst.wsdl.ExtensibilityElement" containment="true" - * @generated - */ - EList getEExtensibilityElements(); - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @model extensibilityElementType="org.eclipse.wst.wsdl.IExtensibilityElement" - * @generated - */ - void addExtensibilityElement(javax.wsdl.extensions.ExtensibilityElement extensibilityElement); - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @model kind="operation" dataType="org.eclipse.wst.wsdl.binding.mime.List" many="false" - * @generated - */ - List getExtensibilityElements(); - -} // MIMEPart diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEContentImpl.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEContentImpl.java deleted file mode 100644 index 7aac3084e..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEContentImpl.java +++ /dev/null @@ -1,319 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime.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.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.wst.wsdl.Part; -import org.eclipse.wst.wsdl.binding.mime.MIMEContent; -import org.eclipse.wst.wsdl.binding.mime.MIMEPackage; -import org.eclipse.wst.wsdl.binding.mime.internal.util.MIMEConstants; -import org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl; -import org.w3c.dom.Element; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Content</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEContentImpl#getType <em>Type</em>}</li> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEContentImpl#getEPart <em>EPart</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MIMEContentImpl extends ExtensibilityElementImpl implements MIMEContent -{ - /** - * 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 #getType() <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected static final String TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getType() <em>Type</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected String type = TYPE_EDEFAULT; - - /** - * The cached value of the '{@link #getEPart() <em>EPart</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEPart() - * @generated - * @ordered - */ - protected Part ePart = null; - - private String part; // TBD - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MIMEContentImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() - { - return MIMEPackage.Literals.MIME_CONTENT; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getType() - { - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setType(String newType) - { - String oldType = type; - type = newType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MIMEPackage.MIME_CONTENT__TYPE, oldType, type)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Part getEPart() - { - if (ePart != null && ePart.eIsProxy()) - { - InternalEObject oldEPart = (InternalEObject)ePart; - ePart = (Part)eResolveProxy(oldEPart); - if (ePart != oldEPart) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, MIMEPackage.MIME_CONTENT__EPART, oldEPart, ePart)); - } - } - return ePart; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Part basicGetEPart() - { - return ePart; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setEPart(Part newEPart) - { - Part oldEPart = ePart; - ePart = newEPart; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MIMEPackage.MIME_CONTENT__EPART, oldEPart, ePart)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - public void setPart(String part) - { - this.part = part; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - public String getPart() - { - return part; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case MIMEPackage.MIME_CONTENT__TYPE: - return getType(); - case MIMEPackage.MIME_CONTENT__EPART: - if (resolve) - return getEPart(); - return basicGetEPart(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case MIMEPackage.MIME_CONTENT__TYPE: - setType((String)newValue); - return; - case MIMEPackage.MIME_CONTENT__EPART: - setEPart((Part)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) - { - switch (featureID) - { - case MIMEPackage.MIME_CONTENT__TYPE: - setType(TYPE_EDEFAULT); - return; - case MIMEPackage.MIME_CONTENT__EPART: - setEPart((Part)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case MIMEPackage.MIME_CONTENT__TYPE: - return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); - case MIMEPackage.MIME_CONTENT__EPART: - return ePart != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (type: "); //$NON-NLS-1$ - result.append(type); - result.append(')'); - return result.toString(); - } - - // - // Reconcile methods: DOM -> Model - // - - public void reconcileAttributes(Element changedElement) - { - setPart(MIMEConstants.getAttribute(changedElement, MIMEConstants.PART_ATTRIBUTE)); - setType(MIMEConstants.getAttribute(changedElement, MIMEConstants.TYPE_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 == MIMEPackage.Literals.MIME_CONTENT__EPART) - niceSetAttribute(theElement, MIMEConstants.PART_ATTRIBUTE, getPart()); - if (eAttribute == null || eAttribute == MIMEPackage.Literals.MIME_CONTENT__TYPE) - niceSetAttribute(theElement, MIMEConstants.TYPE_ATTRIBUTE, getType()); - } - } - - public QName getElementType() - { - if (elementType == null) - elementType = new QName(MIMEConstants.MIME_NAMESPACE_URI, MIMEConstants.CONTENT_ELEMENT_TAG); - return elementType; - } - -} //MIMEContentImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEFactoryImpl.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEFactoryImpl.java deleted file mode 100644 index e51bcad74..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEFactoryImpl.java +++ /dev/null @@ -1,205 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime.internal.impl; - - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.wst.wsdl.binding.mime.*; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class MIMEFactoryImpl extends EFactoryImpl implements MIMEFactory -{ - /** - * Creates the default factory implementation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static MIMEFactory init() - { - try - { - MIMEFactory theMIMEFactory = (MIMEFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/wsdl/2003/MIME"); //$NON-NLS-1$ - if (theMIMEFactory != null) - { - return theMIMEFactory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new MIMEFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MIMEFactoryImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case MIMEPackage.MIME_CONTENT: - return createMIMEContent(); - case MIMEPackage.MIME_PART: - return createMIMEPart(); - case MIMEPackage.MIME_MULTIPART_RELATED: - return createMIMEMultipartRelated(); - case MIMEPackage.MIME_MIME_XML: - return createMIMEMimeXml(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object createFromString(EDataType eDataType, String initialValue) - { - switch (eDataType.getClassifierID()) - { - case MIMEPackage.LIST: - return createListFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertToString(EDataType eDataType, Object instanceValue) - { - switch (eDataType.getClassifierID()) - { - case MIMEPackage.LIST: - return convertListToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MIMEContent createMIMEContent() - { - MIMEContentImpl mimeContent = new MIMEContentImpl(); - return mimeContent; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MIMEPart createMIMEPart() - { - MIMEPartImpl mimePart = new MIMEPartImpl(); - return mimePart; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MIMEMultipartRelated createMIMEMultipartRelated() - { - MIMEMultipartRelatedImpl mimeMultipartRelated = new MIMEMultipartRelatedImpl(); - return mimeMultipartRelated; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MIMEMimeXml createMIMEMimeXml() - { - MIMEMimeXmlImpl mimeMimeXml = new MIMEMimeXmlImpl(); - return mimeMimeXml; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List createListFromString(EDataType eDataType, String initialValue) - { - return (List)super.createFromString(eDataType, initialValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertListToString(EDataType eDataType, Object instanceValue) - { - return super.convertToString(eDataType, instanceValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MIMEPackage getMIMEPackage() - { - return (MIMEPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static MIMEPackage getPackage() - { - return MIMEPackage.eINSTANCE; - } -} //MIMEFactoryImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEMimeXmlImpl.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEMimeXmlImpl.java deleted file mode 100644 index 1df95777a..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEMimeXmlImpl.java +++ /dev/null @@ -1,244 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime.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.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.wst.wsdl.Part; -import org.eclipse.wst.wsdl.binding.mime.MIMEMimeXml; -import org.eclipse.wst.wsdl.binding.mime.MIMEPackage; -import org.eclipse.wst.wsdl.binding.mime.internal.util.MIMEConstants; -import org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl; -import org.w3c.dom.Element; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Mime Xml</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEMimeXmlImpl#getEPart <em>EPart</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MIMEMimeXmlImpl extends ExtensibilityElementImpl implements MIMEMimeXml -{ - /** - * 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 cached value of the '{@link #getEPart() <em>EPart</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEPart() - * @generated - * @ordered - */ - protected Part ePart = null; - - private String part; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MIMEMimeXmlImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() - { - return MIMEPackage.Literals.MIME_MIME_XML; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Part getEPart() - { - if (ePart != null && ePart.eIsProxy()) - { - InternalEObject oldEPart = (InternalEObject)ePart; - ePart = (Part)eResolveProxy(oldEPart); - if (ePart != oldEPart) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, MIMEPackage.MIME_MIME_XML__EPART, oldEPart, ePart)); - } - } - return ePart; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Part basicGetEPart() - { - return ePart; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setEPart(Part newEPart) - { - Part oldEPart = ePart; - ePart = newEPart; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MIMEPackage.MIME_MIME_XML__EPART, oldEPart, ePart)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - public void setPart(String part) - { - this.part = part; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - public String getPart() - { - return part; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case MIMEPackage.MIME_MIME_XML__EPART: - if (resolve) - return getEPart(); - return basicGetEPart(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case MIMEPackage.MIME_MIME_XML__EPART: - setEPart((Part)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) - { - switch (featureID) - { - case MIMEPackage.MIME_MIME_XML__EPART: - setEPart((Part)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case MIMEPackage.MIME_MIME_XML__EPART: - return ePart != null; - } - return super.eIsSet(featureID); - } - - // - // Reconcile methods: DOM -> Model - // - - public void reconcileAttributes(Element changedElement) - { - setPart(MIMEConstants.getAttribute(changedElement, MIMEConstants.PART_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 == MIMEPackage.Literals.MIME_CONTENT__EPART) - niceSetAttribute(theElement, MIMEConstants.PART_ATTRIBUTE, getPart()); - } - } - - public QName getElementType() - { - if (elementType == null) - elementType = new QName(MIMEConstants.MIME_NAMESPACE_URI, MIMEConstants.MIME_XML_ELEMENT_TAG); - return elementType; - } -} //MIMEMimeXmlImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEMultipartRelatedImpl.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEMultipartRelatedImpl.java deleted file mode 100644 index 1854f2d16..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEMultipartRelatedImpl.java +++ /dev/null @@ -1,237 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime.internal.impl; - - -import java.util.Collection; -import java.util.Iterator; -import java.util.List; - -import javax.xml.namespace.QName; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.wst.wsdl.binding.mime.MIMEFactory; -import org.eclipse.wst.wsdl.binding.mime.MIMEMultipartRelated; -import org.eclipse.wst.wsdl.binding.mime.MIMEPackage; -import org.eclipse.wst.wsdl.binding.mime.MIMEPart; -import org.eclipse.wst.wsdl.binding.mime.internal.util.MIMEConstants; -import org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl; -import org.w3c.dom.Element; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Multipart Related</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEMultipartRelatedImpl#getEMIMEPart <em>EMIME Part</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MIMEMultipartRelatedImpl extends ExtensibilityElementImpl implements MIMEMultipartRelated -{ - /** - * 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 cached value of the '{@link #getEMIMEPart() <em>EMIME Part</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEMIMEPart() - * @generated - * @ordered - */ - protected EList eMIMEPart; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MIMEMultipartRelatedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() - { - return MIMEPackage.Literals.MIME_MULTIPART_RELATED; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getEMIMEPart() - { - if (eMIMEPart == null) - { - eMIMEPart = new EObjectContainmentEList(MIMEPart.class, this, MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART); - } - return eMIMEPart; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - public void addMIMEPart(javax.wsdl.extensions.mime.MIMEPart mimePart) - { - getEMIMEPart().add(mimePart); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - public List getMIMEParts() - { - return getEMIMEPart(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART: - return ((InternalEList)getEMIMEPart()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART: - return getEMIMEPart(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART: - getEMIMEPart().clear(); - getEMIMEPart().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) - { - switch (featureID) - { - case MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART: - getEMIMEPart().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART: - return eMIMEPart != null && !eMIMEPart.isEmpty(); - } - return super.eIsSet(featureID); - } - - public void handleUnreconciledElement(Element child, Collection remainingModelObjects) - { - if (MIMEConstants.PART_ELEMENT_TAG.equals(child.getLocalName())) - { - MIMEPart mimePart = MIMEFactory.eINSTANCE.createMIMEPart(); - mimePart.setEnclosingDefinition(getEnclosingDefinition()); - mimePart.setElement(child); - addMIMEPart(mimePart); - } - } - - public QName getElementType() - { - if (elementType == null) - elementType = new QName(MIMEConstants.MIME_NAMESPACE_URI, MIMEConstants.MULTIPART_RELATED_ELEMENT_TAG); - return elementType; - } - - /* (non-Javadoc) - * @see org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl#createElement() - */ - public Element createElement() - { - Element newElement = super.createElement(); - - Iterator iterator = getMIMEParts().iterator(); - while (iterator.hasNext()) - { - Object obj = iterator.next(); - if (obj instanceof MIMEPart) - { - MIMEPart mimePart = (MIMEPart)obj; - Element child = ((MIMEPartImpl)mimePart).createElement(); - newElement.appendChild(child); - } - } - return newElement; - } -} //MIMEMultipartRelatedImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEPackageImpl.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEPackageImpl.java deleted file mode 100644 index 73dae71e0..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEPackageImpl.java +++ /dev/null @@ -1,496 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime.internal.impl; - - -import java.util.List; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EOperation; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.wst.wsdl.WSDLPackage; -import org.eclipse.wst.wsdl.binding.mime.MIMEContent; -import org.eclipse.wst.wsdl.binding.mime.MIMEFactory; -import org.eclipse.wst.wsdl.binding.mime.MIMEMimeXml; -import org.eclipse.wst.wsdl.binding.mime.MIMEMultipartRelated; -import org.eclipse.wst.wsdl.binding.mime.MIMEPackage; -import org.eclipse.wst.wsdl.binding.mime.MIMEPart; -import org.eclipse.xsd.XSDPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class MIMEPackageImpl extends EPackageImpl implements MIMEPackage -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass mimeContentEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass mimePartEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass mimeMultipartRelatedEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass mimeMimeXmlEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass imimePartEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass imimeMultipartRelatedEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass imimeContentEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass imimeMimeXmlEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EDataType listEDataType = 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.mime.MIMEPackage#eNS_URI - * @see #init() - * @generated - */ - private MIMEPackageImpl() - { - super(eNS_URI, MIMEFactory.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 MIMEPackage init() - { - if (isInited) - return (MIMEPackage)EPackage.Registry.INSTANCE.getEPackage(MIMEPackage.eNS_URI); - - // Obtain or create and register package - MIMEPackageImpl theMIMEPackage = (MIMEPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof MIMEPackageImpl - ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new MIMEPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - WSDLPackage.eINSTANCE.eClass(); - XSDPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theMIMEPackage.createPackageContents(); - - // Initialize created meta-data - theMIMEPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theMIMEPackage.freeze(); - - return theMIMEPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMIMEContent() - { - return mimeContentEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getMIMEContent_Type() - { - return (EAttribute)mimeContentEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMIMEContent_EPart() - { - return (EReference)mimeContentEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMIMEPart() - { - return mimePartEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMIMEPart_EExtensibilityElements() - { - return (EReference)mimePartEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMIMEMultipartRelated() - { - return mimeMultipartRelatedEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMIMEMultipartRelated_EMIMEPart() - { - return (EReference)mimeMultipartRelatedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMIMEMimeXml() - { - return mimeMimeXmlEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMIMEMimeXml_EPart() - { - return (EReference)mimeMimeXmlEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIMIMEPart() - { - return imimePartEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIMIMEMultipartRelated() - { - return imimeMultipartRelatedEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIMIMEContent() - { - return imimeContentEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIMIMEMimeXml() - { - return imimeMimeXmlEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EDataType getList() - { - return listEDataType; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MIMEFactory getMIMEFactory() - { - return (MIMEFactory)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 - mimeContentEClass = createEClass(MIME_CONTENT); - createEAttribute(mimeContentEClass, MIME_CONTENT__TYPE); - createEReference(mimeContentEClass, MIME_CONTENT__EPART); - - mimePartEClass = createEClass(MIME_PART); - createEReference(mimePartEClass, MIME_PART__EEXTENSIBILITY_ELEMENTS); - - mimeMultipartRelatedEClass = createEClass(MIME_MULTIPART_RELATED); - createEReference(mimeMultipartRelatedEClass, MIME_MULTIPART_RELATED__EMIME_PART); - - mimeMimeXmlEClass = createEClass(MIME_MIME_XML); - createEReference(mimeMimeXmlEClass, MIME_MIME_XML__EPART); - - imimePartEClass = createEClass(IMIME_PART); - - imimeMultipartRelatedEClass = createEClass(IMIME_MULTIPART_RELATED); - - imimeContentEClass = createEClass(IMIME_CONTENT); - - imimeMimeXmlEClass = createEClass(IMIME_MIME_XML); - - // Create data types - listEDataType = createEDataType(LIST); - } - - /** - * <!-- 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 - WSDLPackage theWSDLPackage = (WSDLPackage)EPackage.Registry.INSTANCE.getEPackage(WSDLPackage.eNS_URI); - - // Add supertypes to classes - mimeContentEClass.getESuperTypes().add(theWSDLPackage.getExtensibilityElement()); - mimeContentEClass.getESuperTypes().add(this.getIMIMEContent()); - mimePartEClass.getESuperTypes().add(theWSDLPackage.getExtensibilityElement()); - mimePartEClass.getESuperTypes().add(this.getIMIMEPart()); - mimeMultipartRelatedEClass.getESuperTypes().add(theWSDLPackage.getExtensibilityElement()); - mimeMultipartRelatedEClass.getESuperTypes().add(this.getIMIMEMultipartRelated()); - mimeMimeXmlEClass.getESuperTypes().add(theWSDLPackage.getExtensibilityElement()); - mimeMimeXmlEClass.getESuperTypes().add(this.getIMIMEMimeXml()); - - // Initialize classes and features; add operations and parameters - initEClass(mimeContentEClass, MIMEContent.class, "MIMEContent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute( - getMIMEContent_Type(), - ecorePackage.getEString(), - "type", null, 0, 1, MIMEContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference( - getMIMEContent_EPart(), - theWSDLPackage.getPart(), - null, - "ePart", null, 0, 1, MIMEContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - EOperation op = addEOperation(mimeContentEClass, null, "setPart"); //$NON-NLS-1$ - addEParameter(op, ecorePackage.getEString(), "part", 0, 1); //$NON-NLS-1$ - - addEOperation(mimeContentEClass, ecorePackage.getEString(), "getPart", 0, 1); //$NON-NLS-1$ - - initEClass(mimePartEClass, MIMEPart.class, "MIMEPart", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference( - getMIMEPart_EExtensibilityElements(), - theWSDLPackage.getExtensibilityElement(), - null, - "eExtensibilityElements", null, 0, -1, MIMEPart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - op = addEOperation(mimePartEClass, null, "addExtensibilityElement"); //$NON-NLS-1$ - addEParameter(op, theWSDLPackage.getIExtensibilityElement(), "extensibilityElement", 0, 1); //$NON-NLS-1$ - - addEOperation(mimePartEClass, this.getList(), "getExtensibilityElements", 0, 1); //$NON-NLS-1$ - - initEClass( - mimeMultipartRelatedEClass, - MIMEMultipartRelated.class, - "MIMEMultipartRelated", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference( - getMIMEMultipartRelated_EMIMEPart(), - this.getMIMEPart(), - null, - "eMIMEPart", null, 0, -1, MIMEMultipartRelated.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - op = addEOperation(mimeMultipartRelatedEClass, null, "addMIMEPart"); //$NON-NLS-1$ - addEParameter(op, this.getIMIMEPart(), "mimePart", 0, 1); //$NON-NLS-1$ - - addEOperation(mimeMultipartRelatedEClass, this.getList(), "getMIMEParts", 0, 1); //$NON-NLS-1$ - - initEClass(mimeMimeXmlEClass, MIMEMimeXml.class, "MIMEMimeXml", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference( - getMIMEMimeXml_EPart(), - theWSDLPackage.getPart(), - null, - "ePart", null, 0, 1, MIMEMimeXml.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - op = addEOperation(mimeMimeXmlEClass, null, "setPart"); //$NON-NLS-1$ - addEParameter(op, ecorePackage.getEString(), "part", 0, 1); //$NON-NLS-1$ - - addEOperation(mimeMimeXmlEClass, ecorePackage.getEString(), "getPart", 0, 1); //$NON-NLS-1$ - - initEClass( - imimePartEClass, - javax.wsdl.extensions.mime.MIMEPart.class, - "IMIMEPart", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass( - imimeMultipartRelatedEClass, - javax.wsdl.extensions.mime.MIMEMultipartRelated.class, - "IMIMEMultipartRelated", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass( - imimeContentEClass, - javax.wsdl.extensions.mime.MIMEContent.class, - "IMIMEContent", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass( - imimeMimeXmlEClass, - javax.wsdl.extensions.mime.MIMEMimeXml.class, - "IMIMEMimeXml", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - // Initialize data types - initEDataType(listEDataType, List.class, "List", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - // Create resource - createResource(eNS_URI); - } -} //MIMEPackageImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEPartImpl.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEPartImpl.java deleted file mode 100644 index 7baafca0b..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEPartImpl.java +++ /dev/null @@ -1,251 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime.internal.impl; - - -import java.util.Collection; -import java.util.Iterator; -import java.util.List; - -import javax.wsdl.extensions.ExtensibilityElement; -import javax.xml.namespace.QName; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.wst.wsdl.WSDLFactory; -import org.eclipse.wst.wsdl.binding.mime.MIMEPackage; -import org.eclipse.wst.wsdl.binding.mime.MIMEPart; -import org.eclipse.wst.wsdl.binding.mime.internal.util.MIMEConstants; -import org.eclipse.wst.wsdl.internal.impl.DefinitionImpl; -import org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl; -import org.eclipse.wst.wsdl.internal.impl.WSDLFactoryImpl; -import org.eclipse.wst.wsdl.util.WSDLConstants; -import org.w3c.dom.Element; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Part</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEPartImpl#getEExtensibilityElements <em>EExtensibility Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MIMEPartImpl extends ExtensibilityElementImpl implements MIMEPart -{ - - /** - * The cached value of the '{@link #getEExtensibilityElements() <em>EExtensibility Elements</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEExtensibilityElements() - * @generated - * @ordered - */ - protected EList eExtensibilityElements; - - /** - * 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 MIMEPartImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() - { - return MIMEPackage.Literals.MIME_PART; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList getEExtensibilityElements() - { - if (eExtensibilityElements == null) - { - eExtensibilityElements = new EObjectContainmentEList(ExtensibilityElement.class, this, MIMEPackage.MIME_PART__EEXTENSIBILITY_ELEMENTS); - } - return eExtensibilityElements; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - public void addExtensibilityElement(ExtensibilityElement extensibilityElement) - { - getExtensibilityElements().add(extensibilityElement); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - public List getExtensibilityElements() - { - return getEExtensibilityElements(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case MIMEPackage.MIME_PART__EEXTENSIBILITY_ELEMENTS: - return ((InternalEList)getEExtensibilityElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case MIMEPackage.MIME_PART__EEXTENSIBILITY_ELEMENTS: - return getEExtensibilityElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case MIMEPackage.MIME_PART__EEXTENSIBILITY_ELEMENTS: - getEExtensibilityElements().clear(); - getEExtensibilityElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) - { - switch (featureID) - { - case MIMEPackage.MIME_PART__EEXTENSIBILITY_ELEMENTS: - getEExtensibilityElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case MIMEPackage.MIME_PART__EEXTENSIBILITY_ELEMENTS: - return eExtensibilityElements != null && !eExtensibilityElements.isEmpty(); - } - return super.eIsSet(featureID); - } - - // - // Reconciliation: DOM -> MODEL - // - public void handleUnreconciledElement(Element child, Collection remainingModelObjects) - { - if (!WSDLConstants.isMatchingNamespace(child.getNamespaceURI(), WSDLConstants.WSDL_NAMESPACE_URI)) - { - org.eclipse.wst.wsdl.ExtensibilityElement extensibilityElement = useExtensionFactories() - ? ((WSDLFactoryImpl)WSDLFactory.eINSTANCE).createExtensibilityElement(getNamespace(child), getLocalName(child)) - : ((WSDLFactoryImpl)WSDLFactory.eINSTANCE).createUnknownExtensibilityElement(); - - extensibilityElement.setEnclosingDefinition(getEnclosingDefinition()); - extensibilityElement.setElement(child); - addExtensibilityElement(extensibilityElement); - } - } - - private boolean useExtensionFactories() - { - // Use extension factories by default. - return getEnclosingDefinition() == null ? true : ((DefinitionImpl)getEnclosingDefinition()).getUseExtensionFactories(); - } - - public QName getElementType() - { - if (elementType == null) - elementType = new QName(MIMEConstants.MIME_NAMESPACE_URI, MIMEConstants.PART_ELEMENT_TAG); - return elementType; - } - - /* - * (non-Javadoc) - * @see org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl#createElement() - */ - public Element createElement() - { - Element newElement = super.createElement(); - - Iterator iterator = getExtensibilityElements().iterator(); - while (iterator.hasNext()) - { - ExtensibilityElement extensibilityElement = (ExtensibilityElement)iterator.next(); - Element child = ((ExtensibilityElementImpl)extensibilityElement).createElement(); - newElement.appendChild(child); - } - - return newElement; - } -} //MIMEPartImpl diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEAdapterFactory.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEAdapterFactory.java deleted file mode 100644 index 4c8e4e8e5..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEAdapterFactory.java +++ /dev/null @@ -1,337 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime.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.mime.*; - - -/** - * <!-- 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.mime.MIMEPackage - * @generated - */ -public class MIMEAdapterFactory extends AdapterFactoryImpl -{ - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static MIMEPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MIMEAdapterFactory() - { - if (modelPackage == null) - { - modelPackage = MIMEPackage.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 MIMESwitch modelSwitch = new MIMESwitch() - { - public Object caseMIMEContent(MIMEContent object) - { - return createMIMEContentAdapter(); - } - - public Object caseMIMEPart(MIMEPart object) - { - return createMIMEPartAdapter(); - } - - public Object caseMIMEMultipartRelated(MIMEMultipartRelated object) - { - return createMIMEMultipartRelatedAdapter(); - } - - public Object caseMIMEMimeXml(MIMEMimeXml object) - { - return createMIMEMimeXmlAdapter(); - } - - public Object caseIMIMEPart(javax.wsdl.extensions.mime.MIMEPart object) - { - return createIMIMEPartAdapter(); - } - - public Object caseIMIMEMultipartRelated(javax.wsdl.extensions.mime.MIMEMultipartRelated object) - { - return createIMIMEMultipartRelatedAdapter(); - } - - public Object caseIMIMEContent(javax.wsdl.extensions.mime.MIMEContent object) - { - return createIMIMEContentAdapter(); - } - - public Object caseIMIMEMimeXml(javax.wsdl.extensions.mime.MIMEMimeXml object) - { - return createIMIMEMimeXmlAdapter(); - } - - 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.mime.MIMEContent <em>Content</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.mime.MIMEContent - * @generated - */ - public Adapter createMIMEContentAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.wst.wsdl.binding.mime.MIMEPart <em>Part</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.mime.MIMEPart - * @generated - */ - public Adapter createMIMEPartAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.wst.wsdl.binding.mime.MIMEMultipartRelated <em>Multipart Related</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.mime.MIMEMultipartRelated - * @generated - */ - public Adapter createMIMEMultipartRelatedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.wst.wsdl.binding.mime.MIMEMimeXml <em>Mime Xml</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.mime.MIMEMimeXml - * @generated - */ - public Adapter createMIMEMimeXmlAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link javax.wsdl.extensions.mime.MIMEPart <em>IMIME Part</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.mime.MIMEPart - * @generated - */ - public Adapter createIMIMEPartAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link javax.wsdl.extensions.mime.MIMEMultipartRelated <em>IMIME Multipart Related</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.mime.MIMEMultipartRelated - * @generated - */ - public Adapter createIMIMEMultipartRelatedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link javax.wsdl.extensions.mime.MIMEContent <em>IMIME Content</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.mime.MIMEContent - * @generated - */ - public Adapter createIMIMEContentAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link javax.wsdl.extensions.mime.MIMEMimeXml <em>IMIME Mime Xml</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.mime.MIMEMimeXml - * @generated - */ - public Adapter createIMIMEMimeXmlAdapter() - { - 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; - } - -} //MIMEAdapterFactory diff --git a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEConstants.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEConstants.java deleted file mode 100644 index 54632785a..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEConstants.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime.internal.util; - - -import org.w3c.dom.Element; - - -public final class MIMEConstants -{ - public static final String CONTENT_ELEMENT_TAG = "content"; //$NON-NLS-1$ - - public static final String MIME_XML_ELEMENT_TAG = "mimeXml"; //$NON-NLS-1$ - - public static final String MULTIPART_RELATED_ELEMENT_TAG = "multipartRelated"; //$NON-NLS-1$ - - public static final String PART_ELEMENT_TAG = "part"; //$NON-NLS-1$ - - public static final String MIME_NAMESPACE_URI = "http://schemas.xmlsoap.org/wsdl/mime/"; //$NON-NLS-1$ - - public static final String PART_ATTRIBUTE = "part"; //$NON-NLS-1$ - - public static final String TYPE_ATTRIBUTE = "type"; //$NON-NLS-1$ - - 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-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEExtensibilityElementFactory.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEExtensibilityElementFactory.java deleted file mode 100644 index c2cb8c6ac..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEExtensibilityElementFactory.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime.internal.util; - - -import org.eclipse.wst.wsdl.ExtensibilityElement; -import org.eclipse.wst.wsdl.WSDLFactory; -import org.eclipse.wst.wsdl.binding.mime.MIMEFactory; -import org.eclipse.wst.wsdl.util.ExtensibilityElementFactory; - - -public class MIMEExtensibilityElementFactory implements ExtensibilityElementFactory -{ - public ExtensibilityElement createExtensibilityElement(String namespace, String localName) - { - if (MIMEConstants.MIME_NAMESPACE_URI.equals(namespace)) - { - if (MIMEConstants.CONTENT_ELEMENT_TAG.equals(localName)) - { - return MIMEFactory.eINSTANCE.createMIMEContent(); - } - else if (MIMEConstants.MIME_XML_ELEMENT_TAG.equals(localName)) - { - return MIMEFactory.eINSTANCE.createMIMEMimeXml(); - } - else if (MIMEConstants.MULTIPART_RELATED_ELEMENT_TAG.equals(localName)) - { - return MIMEFactory.eINSTANCE.createMIMEMultipartRelated(); - } - /* TODO - fix the rose model - else if ("part".equals(localName)) - { - return MIMEFactory.eINSTANCE.createMIMEPart(); - } - */ - 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-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMESwitch.java b/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMESwitch.java deleted file mode 100644 index b1718b0cb..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMESwitch.java +++ /dev/null @@ -1,365 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 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.mime.internal.util; - - -import java.util.List; - -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.mime.*; - - -/** - * <!-- 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.mime.MIMEPackage - * @generated - */ -public class MIMESwitch -{ - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static MIMEPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MIMESwitch() - { - if (modelPackage == null) - { - modelPackage = MIMEPackage.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) - { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * 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 - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) - { - if (theEClass.eContainer() == modelPackage) - { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else - { - List eSuperTypes = theEClass.getESuperTypes(); - return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * 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 - */ - protected Object doSwitch(int classifierID, EObject theEObject) - { - switch (classifierID) - { - case MIMEPackage.MIME_CONTENT: - { - MIMEContent mimeContent = (MIMEContent)theEObject; - Object result = caseMIMEContent(mimeContent); - if (result == null) - result = caseExtensibilityElement(mimeContent); - if (result == null) - result = caseIMIMEContent(mimeContent); - if (result == null) - result = caseWSDLElement(mimeContent); - if (result == null) - result = caseIExtensibilityElement(mimeContent); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case MIMEPackage.MIME_PART: - { - MIMEPart mimePart = (MIMEPart)theEObject; - Object result = caseMIMEPart(mimePart); - if (result == null) - result = caseExtensibilityElement(mimePart); - if (result == null) - result = caseIMIMEPart(mimePart); - if (result == null) - result = caseWSDLElement(mimePart); - if (result == null) - result = caseIExtensibilityElement(mimePart); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case MIMEPackage.MIME_MULTIPART_RELATED: - { - MIMEMultipartRelated mimeMultipartRelated = (MIMEMultipartRelated)theEObject; - Object result = caseMIMEMultipartRelated(mimeMultipartRelated); - if (result == null) - result = caseExtensibilityElement(mimeMultipartRelated); - if (result == null) - result = caseIMIMEMultipartRelated(mimeMultipartRelated); - if (result == null) - result = caseWSDLElement(mimeMultipartRelated); - if (result == null) - result = caseIExtensibilityElement(mimeMultipartRelated); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case MIMEPackage.MIME_MIME_XML: - { - MIMEMimeXml mimeMimeXml = (MIMEMimeXml)theEObject; - Object result = caseMIMEMimeXml(mimeMimeXml); - if (result == null) - result = caseExtensibilityElement(mimeMimeXml); - if (result == null) - result = caseIMIMEMimeXml(mimeMimeXml); - if (result == null) - result = caseWSDLElement(mimeMimeXml); - if (result == null) - result = caseIExtensibilityElement(mimeMimeXml); - if (result == null) - result = defaultCase(theEObject); - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Content</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 interpreting the object as an instance of '<em>Content</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMIMEContent(MIMEContent object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Part</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 interpreting the object as an instance of '<em>Part</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMIMEPart(MIMEPart object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Multipart Related</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 interpreting the object as an instance of '<em>Multipart Related</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMIMEMultipartRelated(MIMEMultipartRelated object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Mime Xml</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 interpreting the object as an instance of '<em>Mime Xml</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseMIMEMimeXml(MIMEMimeXml object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IMIME Part</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 interpreting the object as an instance of '<em>IMIME Part</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIMIMEPart(javax.wsdl.extensions.mime.MIMEPart object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IMIME Multipart Related</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 interpreting the object as an instance of '<em>IMIME Multipart Related</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIMIMEMultipartRelated(javax.wsdl.extensions.mime.MIMEMultipartRelated object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IMIME Content</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 interpreting the object as an instance of '<em>IMIME Content</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIMIMEContent(javax.wsdl.extensions.mime.MIMEContent object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IMIME Mime Xml</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 interpreting the object as an instance of '<em>IMIME Mime Xml</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIMIMEMimeXml(javax.wsdl.extensions.mime.MIMEMimeXml object) - { - return null; - } - - /** - * Returns the result of interpreting 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 interpreting 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 interpreting 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 interpreting 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 interpreting 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 interpreting 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 interpreting 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 interpreting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) - { - return null; - } - -} //MIMESwitch |