diff options
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl')
16 files changed, 0 insertions, 3223 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 6866f8302..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEContent.java +++ /dev/null @@ -1,106 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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 parameters="" - * @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 855e11930..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEFactory.java +++ /dev/null @@ -1,77 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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 = new org.eclipse.wst.wsdl.binding.mime.internal.impl.MIMEFactoryImpl(); - - /** - * 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 64794c56b..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEMimeXml.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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 parameters="" - * @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 35a7b363f..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEMultipartRelated.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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 dataType="org.eclipse.wst.wsdl.binding.mime.List" parameters="" - * @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 2f876e5e5..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEPackage.java +++ /dev/null @@ -1,559 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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 - * @generated - */ -public interface MIMEPackage extends EPackage{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "mime"; - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "http://www.ibm.com/wsdl/2003/MIME"; - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "mime"; - - /** - * 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.impl.MIMEContentImpl <em>Content</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.impl.MIMEContentImpl - * @see org.eclipse.wst.wsdl.binding.mime.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 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.impl.MIMEPartImpl <em>Part</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.impl.MIMEPartImpl - * @see org.eclipse.wst.wsdl.binding.mime.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 number of structural features of the the '<em>Part</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MIME_PART_FEATURE_COUNT = WSDLPackage.EXTENSIBILITY_ELEMENT_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.wst.wsdl.binding.mime.impl.MIMEMultipartRelatedImpl <em>Multipart Related</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.impl.MIMEMultipartRelatedImpl - * @see org.eclipse.wst.wsdl.binding.mime.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 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.impl.MIMEMimeXmlImpl <em>Mime Xml</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.wst.wsdl.binding.mime.impl.MIMEMimeXmlImpl - * @see org.eclipse.wst.wsdl.binding.mime.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 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.impl.MIMEPackageImpl#getIMIMEPart() - * @generated - */ - int IMIME_PART = 4; - - /** - * The number of structural features of the 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.impl.MIMEPackageImpl#getIMIMEMultipartRelated() - * @generated - */ - int IMIME_MULTIPART_RELATED = 5; - - /** - * The number of structural features of the 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.impl.MIMEPackageImpl#getIMIMEContent() - * @generated - */ - int IMIME_CONTENT = 6; - - /** - * The number of structural features of the 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.impl.MIMEPackageImpl#getIMIMEMimeXml() - * @generated - */ - int IMIME_MIME_XML = 7; - - /** - * The number of structural features of the 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.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 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(); - -} //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 22cb823fb..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEPart.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.mime; - -import java.util.List; - -import org.eclipse.wst.wsdl.ExtensibilityElement; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Part</b></em>'. - * <!-- end-user-doc --> - * - * - * @see org.eclipse.wst.wsdl.binding.mime.MIMEPackage#getMIMEPart() - * @model - * @generated - */ -public interface MIMEPart extends ExtensibilityElement, javax.wsdl.extensions.mime.MIMEPart { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @model - * @generated - */ - void addExtensibilityElement(javax.wsdl.extensions.ExtensibilityElement extensibilityElement); - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @model dataType="org.eclipse.wst.wsdl.binding.mime.List" parameters="" - * @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 ac0f0848e..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEContentImpl.java +++ /dev/null @@ -1,330 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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.EStructuralFeature; -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.impl.MIMEContentImpl#getType <em>Type</em>}</li> - * <li>{@link org.eclipse.wst.wsdl.binding.mime.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.eINSTANCE.getMIMEContent(); - } - - /** - * <!-- 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()) { - Part oldEPart = ePart; - ePart = (Part)eResolveProxy((InternalEObject)ePart); - 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(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_CONTENT__DOCUMENTATION_ELEMENT: - return getDocumentationElement(); - case MIMEPackage.MIME_CONTENT__ELEMENT: - return getElement(); - case MIMEPackage.MIME_CONTENT__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case MIMEPackage.MIME_CONTENT__ELEMENT_TYPE: - return getElementType(); - case MIMEPackage.MIME_CONTENT__TYPE: - return getType(); - case MIMEPackage.MIME_CONTENT__EPART: - if (resolve) return getEPart(); - return basicGetEPart(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_CONTENT__DOCUMENTATION_ELEMENT: - setDocumentationElement((Element)newValue); - return; - case MIMEPackage.MIME_CONTENT__ELEMENT: - setElement((Element)newValue); - return; - case MIMEPackage.MIME_CONTENT__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case MIMEPackage.MIME_CONTENT__ELEMENT_TYPE: - setElementType((QName)newValue); - return; - case MIMEPackage.MIME_CONTENT__TYPE: - setType((String)newValue); - return; - case MIMEPackage.MIME_CONTENT__EPART: - setEPart((Part)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_CONTENT__DOCUMENTATION_ELEMENT: - setDocumentationElement(DOCUMENTATION_ELEMENT_EDEFAULT); - return; - case MIMEPackage.MIME_CONTENT__ELEMENT: - setElement(ELEMENT_EDEFAULT); - return; - case MIMEPackage.MIME_CONTENT__REQUIRED: - setRequired(REQUIRED_EDEFAULT); - return; - case MIMEPackage.MIME_CONTENT__ELEMENT_TYPE: - setElementType(ELEMENT_TYPE_EDEFAULT); - return; - case MIMEPackage.MIME_CONTENT__TYPE: - setType(TYPE_EDEFAULT); - return; - case MIMEPackage.MIME_CONTENT__EPART: - setEPart((Part)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_CONTENT__DOCUMENTATION_ELEMENT: - return DOCUMENTATION_ELEMENT_EDEFAULT == null ? documentationElement != null : !DOCUMENTATION_ELEMENT_EDEFAULT.equals(documentationElement); - case MIMEPackage.MIME_CONTENT__ELEMENT: - return ELEMENT_EDEFAULT == null ? element != null : !ELEMENT_EDEFAULT.equals(element); - case MIMEPackage.MIME_CONTENT__REQUIRED: - return required != REQUIRED_EDEFAULT; - case MIMEPackage.MIME_CONTENT__ELEMENT_TYPE: - return ELEMENT_TYPE_EDEFAULT == null ? elementType != null : !ELEMENT_TYPE_EDEFAULT.equals(elementType); - case MIMEPackage.MIME_CONTENT__TYPE: - return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); - case MIMEPackage.MIME_CONTENT__EPART: - return ePart != null; - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (type: "); - 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.eINSTANCE. getMIMEContent_EPart()) - niceSetAttribute(theElement,MIMEConstants.PART_ATTRIBUTE,getPart()); - if (eAttribute == null || eAttribute == MIMEPackage.eINSTANCE. getMIMEContent_Type()) - niceSetAttribute(theElement,MIMEConstants.TYPE_ATTRIBUTE,getType()); - } - } - -} //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 d6607aabe..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEFactoryImpl.java +++ /dev/null @@ -1,164 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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.impl.EFactoryImpl; -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; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class MIMEFactoryImpl extends EFactoryImpl implements MIMEFactory { - /** - * Creates and 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"); - } - } - - /** - * <!-- 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"); - } - } - - /** - * <!-- 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"); - } - } - - /** - * <!-- 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 1b5c1f803..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEMimeXmlImpl.java +++ /dev/null @@ -1,259 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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.EStructuralFeature; -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.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.eINSTANCE.getMIMEMimeXml(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Part getEPart() { - if (ePart != null && ePart.eIsProxy()) { - Part oldEPart = ePart; - ePart = (Part)eResolveProxy((InternalEObject)ePart); - 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(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_MIME_XML__DOCUMENTATION_ELEMENT: - return getDocumentationElement(); - case MIMEPackage.MIME_MIME_XML__ELEMENT: - return getElement(); - case MIMEPackage.MIME_MIME_XML__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case MIMEPackage.MIME_MIME_XML__ELEMENT_TYPE: - return getElementType(); - case MIMEPackage.MIME_MIME_XML__EPART: - if (resolve) return getEPart(); - return basicGetEPart(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_MIME_XML__DOCUMENTATION_ELEMENT: - setDocumentationElement((Element)newValue); - return; - case MIMEPackage.MIME_MIME_XML__ELEMENT: - setElement((Element)newValue); - return; - case MIMEPackage.MIME_MIME_XML__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case MIMEPackage.MIME_MIME_XML__ELEMENT_TYPE: - setElementType((QName)newValue); - return; - case MIMEPackage.MIME_MIME_XML__EPART: - setEPart((Part)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_MIME_XML__DOCUMENTATION_ELEMENT: - setDocumentationElement(DOCUMENTATION_ELEMENT_EDEFAULT); - return; - case MIMEPackage.MIME_MIME_XML__ELEMENT: - setElement(ELEMENT_EDEFAULT); - return; - case MIMEPackage.MIME_MIME_XML__REQUIRED: - setRequired(REQUIRED_EDEFAULT); - return; - case MIMEPackage.MIME_MIME_XML__ELEMENT_TYPE: - setElementType(ELEMENT_TYPE_EDEFAULT); - return; - case MIMEPackage.MIME_MIME_XML__EPART: - setEPart((Part)null); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_MIME_XML__DOCUMENTATION_ELEMENT: - return DOCUMENTATION_ELEMENT_EDEFAULT == null ? documentationElement != null : !DOCUMENTATION_ELEMENT_EDEFAULT.equals(documentationElement); - case MIMEPackage.MIME_MIME_XML__ELEMENT: - return ELEMENT_EDEFAULT == null ? element != null : !ELEMENT_EDEFAULT.equals(element); - case MIMEPackage.MIME_MIME_XML__REQUIRED: - return required != REQUIRED_EDEFAULT; - case MIMEPackage.MIME_MIME_XML__ELEMENT_TYPE: - return ELEMENT_TYPE_EDEFAULT == null ? elementType != null : !ELEMENT_TYPE_EDEFAULT.equals(elementType); - case MIMEPackage.MIME_MIME_XML__EPART: - return ePart != null; - } - return eDynamicIsSet(eFeature); - } - - // - // 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.eINSTANCE. getMIMEContent_EPart()) - niceSetAttribute(theElement,MIMEConstants.PART_ATTRIBUTE,getPart()); - } - } - -} //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 865752083..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEMultipartRelatedImpl.java +++ /dev/null @@ -1,236 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.mime.internal.impl; - -import org.eclipse.wst.wsdl.binding.mime.internal.util.MIMEConstants; -import org.eclipse.wst.wsdl.binding.mime.MIMEFactory; - -import java.util.Collection; -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.EStructuralFeature; -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.MIMEMultipartRelated; -import org.eclipse.wst.wsdl.binding.mime.MIMEPackage; -import org.eclipse.wst.wsdl.binding.mime.MIMEPart; -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.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 = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MIMEMultipartRelatedImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return MIMEPackage.eINSTANCE.getMIMEMultipartRelated(); - } - - /** - * <!-- 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 - */ - public List getMIMEParts() { - // TODO: implement this method - // Ensure that you remove @generated or mark it @generated NOT - throw new UnsupportedOperationException(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { - if (featureID >= 0) { - switch (eDerivedStructuralFeatureID(featureID, baseClass)) { - case MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART: - return ((InternalEList)getEMIMEPart()).basicRemove(otherEnd, msgs); - default: - return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); - } - } - return eBasicSetContainer(null, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_MULTIPART_RELATED__DOCUMENTATION_ELEMENT: - return getDocumentationElement(); - case MIMEPackage.MIME_MULTIPART_RELATED__ELEMENT: - return getElement(); - case MIMEPackage.MIME_MULTIPART_RELATED__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case MIMEPackage.MIME_MULTIPART_RELATED__ELEMENT_TYPE: - return getElementType(); - case MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART: - return getEMIMEPart(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_MULTIPART_RELATED__DOCUMENTATION_ELEMENT: - setDocumentationElement((Element)newValue); - return; - case MIMEPackage.MIME_MULTIPART_RELATED__ELEMENT: - setElement((Element)newValue); - return; - case MIMEPackage.MIME_MULTIPART_RELATED__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case MIMEPackage.MIME_MULTIPART_RELATED__ELEMENT_TYPE: - setElementType((QName)newValue); - return; - case MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART: - getEMIMEPart().clear(); - getEMIMEPart().addAll((Collection)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_MULTIPART_RELATED__DOCUMENTATION_ELEMENT: - setDocumentationElement(DOCUMENTATION_ELEMENT_EDEFAULT); - return; - case MIMEPackage.MIME_MULTIPART_RELATED__ELEMENT: - setElement(ELEMENT_EDEFAULT); - return; - case MIMEPackage.MIME_MULTIPART_RELATED__REQUIRED: - setRequired(REQUIRED_EDEFAULT); - return; - case MIMEPackage.MIME_MULTIPART_RELATED__ELEMENT_TYPE: - setElementType(ELEMENT_TYPE_EDEFAULT); - return; - case MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART: - getEMIMEPart().clear(); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_MULTIPART_RELATED__DOCUMENTATION_ELEMENT: - return DOCUMENTATION_ELEMENT_EDEFAULT == null ? documentationElement != null : !DOCUMENTATION_ELEMENT_EDEFAULT.equals(documentationElement); - case MIMEPackage.MIME_MULTIPART_RELATED__ELEMENT: - return ELEMENT_EDEFAULT == null ? element != null : !ELEMENT_EDEFAULT.equals(element); - case MIMEPackage.MIME_MULTIPART_RELATED__REQUIRED: - return required != REQUIRED_EDEFAULT; - case MIMEPackage.MIME_MULTIPART_RELATED__ELEMENT_TYPE: - return ELEMENT_TYPE_EDEFAULT == null ? elementType != null : !ELEMENT_TYPE_EDEFAULT.equals(elementType); - case MIMEPackage.MIME_MULTIPART_RELATED__EMIME_PART: - return eMIMEPart != null && !eMIMEPart.isEmpty(); - } - return eDynamicIsSet(eFeature); - } - - 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); - } - } -} //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 ea54c9186..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEPackageImpl.java +++ /dev/null @@ -1,427 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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.wst.wsdl.internal.impl.WSDLPackageImpl; -import org.eclipse.xsd.impl.XSDPackageImpl; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class 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.get(MIMEPackage.eNS_URI); - - // Obtain or create and register package. - MIMEPackageImpl theMIMEPackage = (MIMEPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MIMEPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - XSDPackageImpl.init(); - - // Obtain or create and register interdependencies - WSDLPackageImpl theWSDLPackage = (WSDLPackageImpl)(EPackage.Registry.INSTANCE.get(WSDLPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.get(WSDLPackage.eNS_URI) : WSDLPackageImpl.eINSTANCE); - - // Step 1: create meta-model objects - theMIMEPackage.createPackageContents(); - theWSDLPackage.createPackageContents(); - - // Step 2: complete initialization - theMIMEPackage.initializePackageContents(); - theWSDLPackage.initializePackageContents(); - - 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 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); - - 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 - WSDLPackageImpl theWSDLPackage = (WSDLPackageImpl)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); - initEAttribute(getMIMEContent_Type(), ecorePackage.getEString(), "type", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); - initEReference(getMIMEContent_EPart(), theWSDLPackage.getPart(), null, "ePart", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); - - EOperation op = addEOperation(mimeContentEClass, null, "setPart"); - addEParameter(op, ecorePackage.getEString(), "part"); - - addEOperation(mimeContentEClass, ecorePackage.getEString(), "getPart"); - - initEClass(mimePartEClass, MIMEPart.class, "MIMEPart", !IS_ABSTRACT, !IS_INTERFACE); - - op = addEOperation(mimePartEClass, null, "addExtensibilityElement"); - addEParameter(op, theWSDLPackage.getIExtensibilityElement(), "extensibilityElement"); - - addEOperation(mimePartEClass, this.getList(), "getExtensibilityElements"); - - initEClass(mimeMultipartRelatedEClass, MIMEMultipartRelated.class, "MIMEMultipartRelated", !IS_ABSTRACT, !IS_INTERFACE); - initEReference(getMIMEMultipartRelated_EMIMEPart(), this.getMIMEPart(), null, "eMIMEPart", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); - - op = addEOperation(mimeMultipartRelatedEClass, null, "addMIMEPart"); - addEParameter(op, this.getIMIMEPart(), "mimePart"); - - addEOperation(mimeMultipartRelatedEClass, this.getList(), "getMIMEParts"); - - initEClass(mimeMimeXmlEClass, MIMEMimeXml.class, "MIMEMimeXml", !IS_ABSTRACT, !IS_INTERFACE); - initEReference(getMIMEMimeXml_EPart(), theWSDLPackage.getPart(), null, "ePart", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); - - op = addEOperation(mimeMimeXmlEClass, null, "setPart"); - addEParameter(op, ecorePackage.getEString(), "part"); - - addEOperation(mimeMimeXmlEClass, ecorePackage.getEString(), "getPart"); - - initEClass(imimePartEClass, javax.wsdl.extensions.mime.MIMEPart.class, "IMIMEPart", IS_ABSTRACT, IS_INTERFACE); - - initEClass(imimeMultipartRelatedEClass, javax.wsdl.extensions.mime.MIMEMultipartRelated.class, "IMIMEMultipartRelated", IS_ABSTRACT, IS_INTERFACE); - - initEClass(imimeContentEClass, javax.wsdl.extensions.mime.MIMEContent.class, "IMIMEContent", IS_ABSTRACT, IS_INTERFACE); - - initEClass(imimeMimeXmlEClass, javax.wsdl.extensions.mime.MIMEMimeXml.class, "IMIMEMimeXml", IS_ABSTRACT, IS_INTERFACE); - - // Initialize data types - initEDataType(listEDataType, List.class, "List", IS_SERIALIZABLE); - - // 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 b729a4c5e..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEPartImpl.java +++ /dev/null @@ -1,195 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.mime.internal.impl; - -import java.util.List; -import java.util.Collection; - -import javax.wsdl.extensions.ExtensibilityElement; -import javax.xml.namespace.QName; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.wst.wsdl.binding.mime.MIMEPackage; -import org.eclipse.wst.wsdl.binding.mime.MIMEPart; -import org.eclipse.wst.wsdl.internal.impl.ExtensibilityElementImpl; -import org.eclipse.wst.wsdl.internal.impl.WSDLFactoryImpl; -import org.eclipse.wst.wsdl.internal.impl.DefinitionImpl; -import org.eclipse.wst.wsdl.WSDLFactory; -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> - * </p> - * - * @generated - */ -public class MIMEPartImpl extends ExtensibilityElementImpl implements MIMEPart { - - /** - * This class is not intended to be serialized. - * serialVersionUID is assigned with 1L to avoid - * compiler warning messages. - */ - private static final long serialVersionUID = 1L; - private List extensibilityElements = new java.util.Vector(); - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MIMEPartImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return MIMEPackage.eINSTANCE.getMIMEPart(); - } - - /** - * <!-- 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 extensibilityElements; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_PART__DOCUMENTATION_ELEMENT: - return getDocumentationElement(); - case MIMEPackage.MIME_PART__ELEMENT: - return getElement(); - case MIMEPackage.MIME_PART__REQUIRED: - return isRequired() ? Boolean.TRUE : Boolean.FALSE; - case MIMEPackage.MIME_PART__ELEMENT_TYPE: - return getElementType(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_PART__DOCUMENTATION_ELEMENT: - setDocumentationElement((Element)newValue); - return; - case MIMEPackage.MIME_PART__ELEMENT: - setElement((Element)newValue); - return; - case MIMEPackage.MIME_PART__REQUIRED: - setRequired(((Boolean)newValue).booleanValue()); - return; - case MIMEPackage.MIME_PART__ELEMENT_TYPE: - setElementType((QName)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_PART__DOCUMENTATION_ELEMENT: - setDocumentationElement(DOCUMENTATION_ELEMENT_EDEFAULT); - return; - case MIMEPackage.MIME_PART__ELEMENT: - setElement(ELEMENT_EDEFAULT); - return; - case MIMEPackage.MIME_PART__REQUIRED: - setRequired(REQUIRED_EDEFAULT); - return; - case MIMEPackage.MIME_PART__ELEMENT_TYPE: - setElementType(ELEMENT_TYPE_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case MIMEPackage.MIME_PART__DOCUMENTATION_ELEMENT: - return DOCUMENTATION_ELEMENT_EDEFAULT == null ? documentationElement != null : !DOCUMENTATION_ELEMENT_EDEFAULT.equals(documentationElement); - case MIMEPackage.MIME_PART__ELEMENT: - return ELEMENT_EDEFAULT == null ? element != null : !ELEMENT_EDEFAULT.equals(element); - case MIMEPackage.MIME_PART__REQUIRED: - return required != REQUIRED_EDEFAULT; - case MIMEPackage.MIME_PART__ELEMENT_TYPE: - return ELEMENT_TYPE_EDEFAULT == null ? elementType != null : !ELEMENT_TYPE_EDEFAULT.equals(elementType); - } - return eDynamicIsSet(eFeature); - } - - // - // 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(); - } - -} //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 aa887e121..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEAdapterFactory.java +++ /dev/null @@ -1,298 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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.MIMEContent; -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; - -/** - * <!-- 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 de8989732..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEConstants.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.mime.internal.util; - -import org.w3c.dom.Element; - -public final class MIMEConstants -{ - public static final String CONTENT_ELEMENT_TAG = "content"; - public static final String MIME_XML_ELEMENT_TAG = "mimeXML"; - public static final String MULTIPART_RELATED_ELEMENT_TAG = "multipartRelated"; - public static final String PART_ELEMENT_TAG = "part"; - - public static final String MIME_NAMESPACE_URI = "http://schemas.xmlsoap.org/wsdl/mime/"; - - public static final String PART_ATTRIBUTE ="part"; - public static final String TYPE_ATTRIBUTE ="type"; - - 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 8a5d7bb65..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEExtensibilityElementFactory.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.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 53a56dfaa..000000000 --- a/bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMESwitch.java +++ /dev/null @@ -1,295 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.wsdl.binding.mime.internal.util; - -import javax.wsdl.extensions.ExtensibilityElement; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.wst.wsdl.WSDLElement; -import org.eclipse.wst.wsdl.binding.mime.MIMEContent; -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; - -/** - * <!-- 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) { - EClass theEClass = theEObject.eClass(); - if (theEClass.eContainer() == modelPackage) { - switch (theEClass.getClassifierID()) { - 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); - } - } - return defaultCase(theEObject); - } - - /** - * Returns the result of interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting 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 interpretting the object as an instance of '<em>Element</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWSDLElement(WSDLElement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>IExtensibility Element</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>IExtensibility Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseIExtensibilityElement(ExtensibilityElement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Extensibility Element</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Extensibility Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseExtensibilityElement(org.eclipse.wst.wsdl.ExtensibilityElement object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //MIMESwitch |