Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 30646 Details for
Bug 118087
UDDI custom taxonomies cannot be loaded into the WSExplorer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Registry Model support, early draft JUnit tests
org.eclipse.wst.ws.tests.registrymodel.patch.txt (text/plain), 519.82 KB, created by
Chris Brealey
on 2005-11-25 16:50:54 EST
(
hide
)
Description:
Registry Model support, early draft JUnit tests
Filename:
MIME Type:
Creator:
Chris Brealey
Created:
2005-11-25 16:50:54 EST
Size:
519.82 KB
patch
obsolete
>Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/webtools/wst/components/ws/plugins/org.eclipse.wst.ws/META-INF/MANIFEST.MF,v >retrieving revision 1.12 >diff -u -r1.12 MANIFEST.MF >--- META-INF/MANIFEST.MF 2 Nov 2005 06:53:38 -0000 1.12 >+++ META-INF/MANIFEST.MF 25 Nov 2005 21:34:37 -0000 >@@ -6,12 +6,28 @@ > Bundle-Activator: org.eclipse.wst.ws.internal.plugin.WSPlugin > Bundle-Vendor: %PLUGIN_PROVIDER > Bundle-Localization: plugin >-Export-Package: org.eclipse.wst.ws.internal.common, >+Export-Package: org.eclipse.wst.ws.internal, >+ org.eclipse.wst.ws.internal.common, >+ org.eclipse.wst.ws.internal.data, > org.eclipse.wst.ws.internal.datamodel, >+ org.eclipse.wst.ws.internal.ext, > org.eclipse.wst.ws.internal.extensions, >+ org.eclipse.wst.ws.internal.model.v10.registry, >+ org.eclipse.wst.ws.internal.model.v10.registry.impl, >+ org.eclipse.wst.ws.internal.model.v10.registry.util, >+ org.eclipse.wst.ws.internal.model.v10.rtindex, >+ org.eclipse.wst.ws.internal.model.v10.rtindex.impl, >+ org.eclipse.wst.ws.internal.model.v10.rtindex.util, >+ org.eclipse.wst.ws.internal.model.v10.taxonomy, >+ org.eclipse.wst.ws.internal.model.v10.taxonomy.impl, >+ org.eclipse.wst.ws.internal.model.v10.taxonomy.util, >+ org.eclipse.wst.ws.internal.model.v10.uddiregistry, >+ org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl, >+ org.eclipse.wst.ws.internal.model.v10.uddiregistry.util, > org.eclipse.wst.ws.internal.monitor, > org.eclipse.wst.ws.internal.plugin, > org.eclipse.wst.ws.internal.preferences, >+ org.eclipse.wst.ws.internal.registry, > org.eclipse.wst.ws.internal.wsfinder, > org.eclipse.wst.ws.internal.wsil, > org.eclipse.wst.ws.internal.wsrt >@@ -27,5 +43,7 @@ > org.eclipse.wst.command.env, > org.eclipse.wst.common.frameworks, > org.eclipse.core.commands, >- org.eclipse.wst.common.environment >+ org.eclipse.wst.common.environment, >+ org.eclipse.emf.ecore, >+ org.eclipse.emf.ecore.xmi > Eclipse-AutoStart: true >Index: src/org/eclipse/wst/ws/internal/plugin/WSPlugin.java >=================================================================== >RCS file: /cvsroot/webtools/wst/components/ws/plugins/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/plugin/WSPlugin.java,v >retrieving revision 1.5 >diff -u -r1.5 WSPlugin.java >--- src/org/eclipse/wst/ws/internal/plugin/WSPlugin.java 31 Oct 2005 19:30:32 -0000 1.5 >+++ src/org/eclipse/wst/ws/internal/plugin/WSPlugin.java 25 Nov 2005 21:34:38 -0000 >@@ -38,7 +38,7 @@ > private PersistentWSDLValidationContext wsdlValidationContext_; > private PersistentWaitForWSDLValidationContext waitForWsdlValidationContext_; > >- public static final String ID = "org.eclipse.wst.ws.ui"; >+ public static final String ID = "org.eclipse.wst.ws"; > > /** > * The constructor. >Index: model/Index.xsd >=================================================================== >RCS file: model/Index.xsd >diff -N model/Index.xsd >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ model/Index.xsd 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,52 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<xsd:schema >+xmlns:xsd="http://www.w3.org/2001/XMLSchema" >+xmlns:rti="http://eclipse.org/wst/ws/internal/model/v10/rtindex" >+xmlns:reg="http://eclipse.org/wst/ws/internal/model/v10/registry" >+xmlns:tax="http://eclipse.org/wst/ws/internal/model/v10/taxonomy" >+targetNamespace="http://eclipse.org/wst/ws/internal/model/v10/rtindex"> >+ >+ <xsd:import >+ namespace="http://www.w3.org/XML/1998/namespace" >+ schemaLocation="http://www.w3.org/2001/xml.xsd"/> >+ >+ <xsd:import >+ namespace="http://eclipse.org/wst/ws/internal/model/v10/registry" >+ schemaLocation="./Registry.xsd"/> >+ >+ <xsd:import >+ namespace="http://eclipse.org/wst/ws/internal/model/v10/taxonomy" >+ schemaLocation="./Taxonomy.xsd"/> >+ >+ <xsd:element name="index" type="rti:Index"/> >+ >+ <xsd:complexType name="Index"> >+ <xsd:sequence> >+ <xsd:element name="name" type="rti:Name" minOccurs="1" maxOccurs="unbounded"/> >+ <xsd:element name="description" type="rti:Description" minOccurs="1" maxOccurs="unbounded"/> >+ <xsd:element ref="reg:registry" minOccurs="0" maxOccurs="unbounded"/> >+ <xsd:element ref="tax:taxonomy" minOccurs="0" maxOccurs="unbounded"/> >+ </xsd:sequence> >+ </xsd:complexType> >+ >+ <xsd:element name="name" type="rti:Name"/> >+ >+ <xsd:complexType name="Name"> >+ <xsd:simpleContent> >+ <xsd:extension base="xsd:string"> >+ <xsd:attribute ref="xml:lang" use="optional"/> >+ </xsd:extension> >+ </xsd:simpleContent> >+ </xsd:complexType> >+ >+ <xsd:element name="description" type="rti:Description"/> >+ >+ <xsd:complexType name="Description"> >+ <xsd:simpleContent> >+ <xsd:extension base="xsd:string"> >+ <xsd:attribute ref="xml:lang" use="optional"/> >+ </xsd:extension> >+ </xsd:simpleContent> >+ </xsd:complexType> >+ >+</xsd:schema> >Index: model/Registry.xsd >=================================================================== >RCS file: model/Registry.xsd >diff -N model/Registry.xsd >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ model/Registry.xsd 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,43 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<xsd:schema >+xmlns:xsd="http://www.w3.org/2001/XMLSchema" >+xmlns:reg="http://eclipse.org/wst/ws/internal/model/v10/registry" >+targetNamespace="http://eclipse.org/wst/ws/internal/model/v10/registry"> >+ >+ <xsd:import >+ namespace="http://www.w3.org/XML/1998/namespace" >+ schemaLocation="http://www.w3.org/2001/xml.xsd"/> >+ >+ <xsd:element name="registry" type="reg:Registry"/> >+ >+ <xsd:complexType name="Registry"> >+ <xsd:sequence> >+ <xsd:element name="name" type="reg:Name" minOccurs="1" maxOccurs="unbounded"/> >+ <xsd:element name="description" type="reg:Description" minOccurs="1" maxOccurs="unbounded"/> >+ </xsd:sequence> >+ <xsd:attribute name="id" type="xsd:anyURI" use="required"/> >+ <xsd:attribute name="ref" type="xsd:anyURI" use="optional"/> >+ <xsd:attribute name="location" type="xsd:anyURI" use="optional"/> >+ </xsd:complexType> >+ >+ <xsd:element name="name" type="reg:Name"/> >+ >+ <xsd:complexType name="Name"> >+ <xsd:simpleContent> >+ <xsd:extension base="xsd:string"> >+ <xsd:attribute ref="xml:lang" use="optional"/> >+ </xsd:extension> >+ </xsd:simpleContent> >+ </xsd:complexType> >+ >+ <xsd:element name="description" type="reg:Description"/> >+ >+ <xsd:complexType name="Description"> >+ <xsd:simpleContent> >+ <xsd:extension base="xsd:string"> >+ <xsd:attribute ref="xml:lang" use="optional"/> >+ </xsd:extension> >+ </xsd:simpleContent> >+ </xsd:complexType> >+ >+</xsd:schema> >Index: model/Taxonomy.xsd >=================================================================== >RCS file: model/Taxonomy.xsd >diff -N model/Taxonomy.xsd >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ model/Taxonomy.xsd 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,45 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<xsd:schema >+xmlns:xsd="http://www.w3.org/2001/XMLSchema" >+xmlns:tax="http://eclipse.org/wst/ws/internal/model/v10/taxonomy" >+targetNamespace="http://eclipse.org/wst/ws/internal/model/v10/taxonomy"> >+ >+ <xsd:import >+ namespace="http://www.w3.org/XML/1998/namespace" >+ schemaLocation="http://www.w3.org/2001/xml.xsd"/> >+ >+ <xsd:element name="taxonomy" type="tax:Taxonomy"/> >+ >+ <xsd:complexType name="Taxonomy"> >+ <xsd:sequence> >+ <xsd:element name="nlname" type="tax:Name" minOccurs="0" maxOccurs="unbounded"/> >+ <xsd:element name="category" type="tax:Category" minOccurs="0" maxOccurs="unbounded"/> >+ </xsd:sequence> >+ <xsd:attribute name="id" type="xsd:anyURI" use="required"/> >+ <xsd:attribute name="ref" type="xsd:anyURI" use="optional"/> >+ <xsd:attribute name="location" type="xsd:anyURI" use="optional"/> >+ <xsd:attribute name="name" type="xsd:string" use="optional"/> >+ </xsd:complexType> >+ >+ <xsd:element name="category" type="tax:Category"/> >+ >+ <xsd:complexType name="Category"> >+ <xsd:sequence> >+ <xsd:element name="nlname" type="tax:Name" minOccurs="0" maxOccurs="unbounded"/> >+ <xsd:element name="category" type="tax:Category" minOccurs="0" maxOccurs="unbounded"/> >+ </xsd:sequence> >+ <xsd:attribute name="name" type="xsd:string"/> >+ <xsd:attribute name="code" type="xsd:string"/> >+ </xsd:complexType> >+ >+ <xsd:element name="name" type="tax:Name"/> >+ >+ <xsd:complexType name="Name"> >+ <xsd:simpleContent> >+ <xsd:extension base="xsd:string"> >+ <xsd:attribute ref="xml:lang" use="optional"/> >+ </xsd:extension> >+ </xsd:simpleContent> >+ </xsd:complexType> >+ >+</xsd:schema> >Index: model/UDDIRegistry.xsd >=================================================================== >RCS file: model/UDDIRegistry.xsd >diff -N model/UDDIRegistry.xsd >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ model/UDDIRegistry.xsd 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,48 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<xsd:schema >+xmlns:xsd="http://www.w3.org/2001/XMLSchema" >+xmlns:urg="http://eclipse.org/wst/ws/internal/model/v10/uddiregistry" >+xmlns:reg="http://eclipse.org/wst/ws/internal/model/v10/registry" >+xmlns:tax="http://eclipse.org/wst/ws/internal/model/v10/taxonomy" >+targetNamespace="http://eclipse.org/wst/ws/internal/model/v10/uddiregistry"> >+ >+ <xsd:import >+ namespace="http://www.w3.org/XML/1998/namespace" >+ schemaLocation="http://www.w3.org/2001/xml.xsd"/> >+ >+ <xsd:import >+ namespace="http://eclipse.org/wst/ws/internal/model/v10/registry" >+ schemaLocation="./Registry.xsd"/> >+ >+ <xsd:import >+ namespace="http://eclipse.org/wst/ws/internal/model/v10/taxonomy" >+ schemaLocation="./Taxonomy.xsd"/> >+ >+ <xsd:element name="uddiRegistry" type="urg:UDDIRegistry"/> >+ >+ <xsd:complexType name="UDDIRegistry"> >+ <xsd:complexContent> >+ <xsd:extension base="reg:Registry"> >+ <xsd:sequence> >+ <xsd:element name="version" type="xsd:string" minOccurs="1"/> >+ <xsd:element name="discoveryURL" type="xsd:anyURI" minOccurs="0"/> >+ <xsd:element name="publicationURL" type="xsd:anyURI" minOccurs="0"/> >+ <xsd:element name="securedDiscoveryURL" type="xsd:anyURI" minOccurs="0"/> >+ <xsd:element name="securedPublicationURL" type="xsd:anyURI" minOccurs="0"/> >+ <xsd:element name="defaultLogin" type="xsd:string" minOccurs="0"/> >+ <xsd:element name="defaultPassword" type="xsd:string" minOccurs="0"/> >+ <xsd:element name="taxonomies" type="urg:Taxonomies" minOccurs="0"/> >+ </xsd:sequence> >+ </xsd:extension> >+ </xsd:complexContent> >+ </xsd:complexType> >+ >+ <xsd:element name="taxonomies" type="urg:Taxonomies"/> >+ >+ <xsd:complexType name="Taxonomies"> >+ <xsd:sequence> >+ <xsd:element ref="tax:taxonomy" minOccurs="0" maxOccurs="unbounded"/> >+ </xsd:sequence> >+ </xsd:complexType> >+ >+</xsd:schema> >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/Description.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/Description.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/Description.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/Description.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,81 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Description</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getValue <em>Value</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getLang <em>Lang</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDescription() >+ * @model >+ * @generated >+ */ >+public interface Description extends EObject { >+ /** >+ * Returns the value of the '<em><b>Value</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Value</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Value</em>' attribute. >+ * @see #setValue(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDescription_Value() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >+ * @generated >+ */ >+ String getValue(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getValue <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Value</em>' attribute. >+ * @see #getValue() >+ * @generated >+ */ >+ void setValue(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Lang</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Lang</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Lang</em>' attribute. >+ * @see #setLang(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDescription_Lang() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Language" >+ * @generated >+ */ >+ String getLang(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getLang <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Lang</em>' attribute. >+ * @see #getLang() >+ * @generated >+ */ >+ void setLang(String value); >+ >+} // Description >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/DocumentRoot.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/DocumentRoot.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/DocumentRoot.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/DocumentRoot.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,165 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry; >+ >+import org.eclipse.emf.common.util.EMap; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.emf.ecore.util.FeatureMap; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Document Root</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getMixed <em>Mixed</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getDescription <em>Description</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getName <em>Name</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getRegistry <em>Registry</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot() >+ * @model >+ * @generated >+ */ >+public interface DocumentRoot extends EObject { >+ /** >+ * Returns the value of the '<em><b>Mixed</b></em>' attribute list. >+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Mixed</em>' attribute list. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_Mixed() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" >+ * @generated >+ */ >+ FeatureMap getMixed(); >+ >+ /** >+ * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. >+ * The key is of type {@link java.lang.String}, >+ * and the value is of type {@link java.lang.String}, >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>XMLNS Prefix Map</em>' map. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_XMLNSPrefixMap() >+ * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" >+ * @generated >+ */ >+ EMap getXMLNSPrefixMap(); >+ >+ /** >+ * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. >+ * The key is of type {@link java.lang.String}, >+ * and the value is of type {@link java.lang.String}, >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>XSI Schema Location</em>' map. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_XSISchemaLocation() >+ * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" >+ * @generated >+ */ >+ EMap getXSISchemaLocation(); >+ >+ /** >+ * Returns the value of the '<em><b>Description</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Description</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Description</em>' containment reference. >+ * @see #setDescription(Description) >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_Description() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ Description getDescription(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getDescription <em>Description</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Description</em>' containment reference. >+ * @see #getDescription() >+ * @generated >+ */ >+ void setDescription(Description value); >+ >+ /** >+ * Returns the value of the '<em><b>Name</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Name</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Name</em>' containment reference. >+ * @see #setName(Name) >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_Name() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ Name getName(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getName <em>Name</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Name</em>' containment reference. >+ * @see #getName() >+ * @generated >+ */ >+ void setName(Name value); >+ >+ /** >+ * Returns the value of the '<em><b>Registry</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Registry</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Registry</em>' containment reference. >+ * @see #setRegistry(Registry) >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_Registry() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ Registry getRegistry(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getRegistry <em>Registry</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Registry</em>' containment reference. >+ * @see #getRegistry() >+ * @generated >+ */ >+ void setRegistry(Registry value); >+ >+} // DocumentRoot >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/Name.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/Name.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/Name.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/Name.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,81 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Name</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getValue <em>Value</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getLang <em>Lang</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getName_() >+ * @model >+ * @generated >+ */ >+public interface Name extends EObject { >+ /** >+ * Returns the value of the '<em><b>Value</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Value</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Value</em>' attribute. >+ * @see #setValue(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getName_Value() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >+ * @generated >+ */ >+ String getValue(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getValue <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Value</em>' attribute. >+ * @see #getValue() >+ * @generated >+ */ >+ void setValue(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Lang</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Lang</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Lang</em>' attribute. >+ * @see #setLang(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getName_Lang() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Language" >+ * @generated >+ */ >+ String getLang(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getLang <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Lang</em>' attribute. >+ * @see #getLang() >+ * @generated >+ */ >+ void setLang(String value); >+ >+} // Name >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/Registry.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/Registry.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/Registry.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/Registry.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,144 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry; >+ >+import org.eclipse.emf.common.util.EList; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Registry</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getName <em>Name</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getDescription <em>Description</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getId <em>Id</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getLocation <em>Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getRef <em>Ref</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry() >+ * @model >+ * @generated >+ */ >+public interface Registry extends EObject { >+ /** >+ * Returns the value of the '<em><b>Name</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.registry.Name}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Name</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>Name</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry_Name() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.registry.Name" containment="true" resolveProxies="false" required="true" >+ * @generated >+ */ >+ EList getName(); >+ >+ /** >+ * Returns the value of the '<em><b>Description</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.registry.Description}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Description</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>Description</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry_Description() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.registry.Description" containment="true" resolveProxies="false" required="true" >+ * @generated >+ */ >+ EList getDescription(); >+ >+ /** >+ * Returns the value of the '<em><b>Id</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Id</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Id</em>' attribute. >+ * @see #setId(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry_Id() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" required="true" >+ * @generated >+ */ >+ String getId(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getId <em>Id</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Id</em>' attribute. >+ * @see #getId() >+ * @generated >+ */ >+ void setId(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Location</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Location</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Location</em>' attribute. >+ * @see #setLocation(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry_Location() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" >+ * @generated >+ */ >+ String getLocation(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getLocation <em>Location</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Location</em>' attribute. >+ * @see #getLocation() >+ * @generated >+ */ >+ void setLocation(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Ref</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Ref</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Ref</em>' attribute. >+ * @see #setRef(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry_Ref() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" >+ * @generated >+ */ >+ String getRef(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getRef <em>Ref</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Ref</em>' attribute. >+ * @see #getRef() >+ * @generated >+ */ >+ void setRef(String value); >+ >+} // Registry >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryFactory.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryFactory.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,73 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry; >+ >+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.ws.internal.model.v10.registry.RegistryPackage >+ * @generated >+ */ >+public interface RegistryFactory extends EFactory { >+ /** >+ * The singleton instance of the factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ RegistryFactory eINSTANCE = new org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryFactoryImpl(); >+ >+ /** >+ * Returns a new object of class '<em>Description</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Description</em>'. >+ * @generated >+ */ >+ Description createDescription(); >+ >+ /** >+ * Returns a new object of class '<em>Document Root</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Document Root</em>'. >+ * @generated >+ */ >+ DocumentRoot createDocumentRoot(); >+ >+ /** >+ * Returns a new object of class '<em>Name</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Name</em>'. >+ * @generated >+ */ >+ Name createName(); >+ >+ /** >+ * Returns a new object of class '<em>Registry</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Registry</em>'. >+ * @generated >+ */ >+ Registry createRegistry(); >+ >+ /** >+ * Returns the package supported by this factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the package supported by this factory. >+ * @generated >+ */ >+ RegistryPackage getRegistryPackage(); >+ >+} //RegistryFactory >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryPackage.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryPackage.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryPackage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryPackage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,570 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry; >+ >+import org.eclipse.emf.ecore.EAttribute; >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EPackage; >+import org.eclipse.emf.ecore.EReference; >+ >+/** >+ * <!-- 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 --> >+ * <!-- begin-model-doc --> >+ * >+ * See http://www.w3.org/XML/1998/namespace.html and >+ * http://www.w3.org/TR/REC-xml for information about this namespace. >+ * >+ * This schema document describes the XML namespace, in a form >+ * suitable for import by other schema documents. >+ * >+ * Note that local names in this namespace are intended to be defined >+ * only by the World Wide Web Consortium or its subgroups. The >+ * following names are currently defined in this namespace and should >+ * not be used with conflicting semantics by any Working Group, >+ * specification, or document instance: >+ * >+ * base (as an attribute name): denotes an attribute whose value >+ * provides a URI to be used as the base for interpreting any >+ * relative URIs in the scope of the element on which it >+ * appears; its value is inherited. This name is reserved >+ * by virtue of its definition in the XML Base specification. >+ * >+ * id (as an attribute name): denotes an attribute whose value >+ * should be interpreted as if declared to be of type ID. >+ * The xml:id specification is not yet a W3C Recommendation, >+ * but this attribute is included here to facilitate experimentation >+ * with the mechanisms it proposes. Note that it is _not_ included >+ * in the specialAttrs attribute group. >+ * >+ * lang (as an attribute name): denotes an attribute whose value >+ * is a language code for the natural language of the content of >+ * any element; its value is inherited. This name is reserved >+ * by virtue of its definition in the XML specification. >+ * >+ * space (as an attribute name): denotes an attribute whose >+ * value is a keyword indicating what whitespace processing >+ * discipline is intended for the content of the element; its >+ * value is inherited. This name is reserved by virtue of its >+ * definition in the XML specification. >+ * >+ * Father (in any context at all): denotes Jon Bosak, the chair of >+ * the original XML Working Group. This name is reserved by >+ * the following decision of the W3C XML Plenary and >+ * XML Coordination groups: >+ * >+ * In appreciation for his vision, leadership and dedication >+ * the W3C XML Plenary on this 10th day of February, 2000 >+ * reserves for Jon Bosak in perpetuity the XML name >+ * xml:Father >+ * >+ * This schema defines attributes and an attribute group >+ * suitable for use by >+ * schemas wishing to allow xml:base, xml:lang, xml:space or xml:id >+ * attributes on elements they define. >+ * >+ * To enable this, such a schema must import this schema >+ * for the XML namespace, e.g. as follows: >+ * <schema . . .> >+ * . . . >+ * <import namespace="http://www.w3.org/XML/1998/namespace" >+ * schemaLocation="http://www.w3.org/2001/xml.xsd"/> >+ * >+ * Subsequently, qualified reference to any of the attributes >+ * or the group defined below will have the desired effect, e.g. >+ * >+ * <type . . .> >+ * . . . >+ * <attributeGroup ref="xml:specialAttrs"/> >+ * >+ * will define a type which will schema-validate an instance >+ * element with any of those attributes >+ * In keeping with the XML Schema WG's standard versioning >+ * policy, this schema document will persist at >+ * http://www.w3.org/2005/08/xml.xsd. >+ * At the date of issue it can also be found at >+ * http://www.w3.org/2001/xml.xsd. >+ * The schema document at that URI may however change in the future, >+ * in order to remain compatible with the latest version of XML Schema >+ * itself, or with the XML namespace itself. In other words, if the XML >+ * Schema or XML namespaces change, the version of this document at >+ * http://www.w3.org/2001/xml.xsd will change >+ * accordingly; the version at >+ * http://www.w3.org/2005/08/xml.xsd will not change. >+ * >+ * <!-- end-model-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryFactory >+ * @generated >+ */ >+public interface RegistryPackage extends EPackage { >+ /** >+ * The package name. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNAME = "registry"; >+ >+ /** >+ * The package namespace URI. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNS_URI = "http://eclipse.org/wst/ws/internal/model/v10/registry"; >+ >+ /** >+ * The package namespace name. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNS_PREFIX = "registry"; >+ >+ /** >+ * The singleton instance of the package. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ RegistryPackage eINSTANCE = org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl.init(); >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DescriptionImpl <em>Description</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.DescriptionImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl#getDescription() >+ * @generated >+ */ >+ int DESCRIPTION = 0; >+ >+ /** >+ * The feature id for the '<em><b>Value</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DESCRIPTION__VALUE = 0; >+ >+ /** >+ * The feature id for the '<em><b>Lang</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DESCRIPTION__LANG = 1; >+ >+ /** >+ * The number of structural features of the the '<em>Description</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DESCRIPTION_FEATURE_COUNT = 2; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl <em>Document Root</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl#getDocumentRoot() >+ * @generated >+ */ >+ int DOCUMENT_ROOT = 1; >+ >+ /** >+ * The feature id for the '<em><b>Mixed</b></em>' attribute list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__MIXED = 0; >+ >+ /** >+ * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; >+ >+ /** >+ * The feature id for the '<em><b>XSI Schema Location</b></em>' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; >+ >+ /** >+ * The feature id for the '<em><b>Description</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__DESCRIPTION = 3; >+ >+ /** >+ * The feature id for the '<em><b>Name</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__NAME = 4; >+ >+ /** >+ * The feature id for the '<em><b>Registry</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__REGISTRY = 5; >+ >+ /** >+ * The number of structural features of the the '<em>Document Root</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT_FEATURE_COUNT = 6; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.NameImpl <em>Name</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.NameImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl#getName_() >+ * @generated >+ */ >+ int NAME = 2; >+ >+ /** >+ * The feature id for the '<em><b>Value</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int NAME__VALUE = 0; >+ >+ /** >+ * The feature id for the '<em><b>Lang</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int NAME__LANG = 1; >+ >+ /** >+ * The number of structural features of the the '<em>Name</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int NAME_FEATURE_COUNT = 2; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl <em>Registry</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl#getRegistry() >+ * @generated >+ */ >+ int REGISTRY = 3; >+ >+ /** >+ * The feature id for the '<em><b>Name</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int REGISTRY__NAME = 0; >+ >+ /** >+ * The feature id for the '<em><b>Description</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int REGISTRY__DESCRIPTION = 1; >+ >+ /** >+ * The feature id for the '<em><b>Id</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int REGISTRY__ID = 2; >+ >+ /** >+ * The feature id for the '<em><b>Location</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int REGISTRY__LOCATION = 3; >+ >+ /** >+ * The feature id for the '<em><b>Ref</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int REGISTRY__REF = 4; >+ >+ /** >+ * The number of structural features of the the '<em>Registry</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int REGISTRY_FEATURE_COUNT = 5; >+ >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description <em>Description</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Description</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Description >+ * @generated >+ */ >+ EClass getDescription(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getValue <em>Value</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Value</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Description#getValue() >+ * @see #getDescription() >+ * @generated >+ */ >+ EAttribute getDescription_Value(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getLang <em>Lang</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Lang</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Description#getLang() >+ * @see #getDescription() >+ * @generated >+ */ >+ EAttribute getDescription_Lang(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot <em>Document Root</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Document Root</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot >+ * @generated >+ */ >+ EClass getDocumentRoot(); >+ >+ /** >+ * Returns the meta object for the attribute list '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getMixed <em>Mixed</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute list '<em>Mixed</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getMixed() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EAttribute getDocumentRoot_Mixed(); >+ >+ /** >+ * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXMLNSPrefixMap() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_XMLNSPrefixMap(); >+ >+ /** >+ * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the map '<em>XSI Schema Location</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXSISchemaLocation() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_XSISchemaLocation(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getDescription <em>Description</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Description</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getDescription() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_Description(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getName <em>Name</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Name</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getName() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_Name(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getRegistry <em>Registry</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Registry</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getRegistry() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_Registry(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name <em>Name</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Name</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Name >+ * @generated >+ */ >+ EClass getName_(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getValue <em>Value</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Value</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Name#getValue() >+ * @see #getName_() >+ * @generated >+ */ >+ EAttribute getName_Value(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getLang <em>Lang</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Lang</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Name#getLang() >+ * @see #getName_() >+ * @generated >+ */ >+ EAttribute getName_Lang(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry <em>Registry</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Registry</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry >+ * @generated >+ */ >+ EClass getRegistry(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getName <em>Name</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Name</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry#getName() >+ * @see #getRegistry() >+ * @generated >+ */ >+ EReference getRegistry_Name(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getDescription <em>Description</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Description</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry#getDescription() >+ * @see #getRegistry() >+ * @generated >+ */ >+ EReference getRegistry_Description(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getId <em>Id</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Id</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry#getId() >+ * @see #getRegistry() >+ * @generated >+ */ >+ EAttribute getRegistry_Id(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getLocation <em>Location</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Location</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry#getLocation() >+ * @see #getRegistry() >+ * @generated >+ */ >+ EAttribute getRegistry_Location(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getRef <em>Ref</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Ref</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry#getRef() >+ * @see #getRegistry() >+ * @generated >+ */ >+ EAttribute getRegistry_Ref(); >+ >+ /** >+ * 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 >+ */ >+ RegistryFactory getRegistryFactory(); >+ >+} //RegistryPackage >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DescriptionImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DescriptionImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DescriptionImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DescriptionImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,216 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry.impl; >+ >+import org.eclipse.emf.common.notify.Notification; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EStructuralFeature; >+ >+import org.eclipse.emf.ecore.impl.ENotificationImpl; >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Description; >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Description</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DescriptionImpl#getValue <em>Value</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DescriptionImpl#getLang <em>Lang</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class DescriptionImpl extends EObjectImpl implements Description { >+ /** >+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getValue() >+ * @generated >+ * @ordered >+ */ >+ protected static final String VALUE_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getValue() >+ * @generated >+ * @ordered >+ */ >+ protected String value = VALUE_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getLang() <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLang() >+ * @generated >+ * @ordered >+ */ >+ protected static final String LANG_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLang() >+ * @generated >+ * @ordered >+ */ >+ protected String lang = LANG_EDEFAULT; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected DescriptionImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return RegistryPackage.eINSTANCE.getDescription(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getValue() { >+ return value; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setValue(String newValue) { >+ String oldValue = value; >+ value = newValue; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.DESCRIPTION__VALUE, oldValue, value)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getLang() { >+ return lang; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setLang(String newLang) { >+ String oldLang = lang; >+ lang = newLang; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.DESCRIPTION__LANG, oldLang, lang)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Object eGet(EStructuralFeature eFeature, boolean resolve) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.DESCRIPTION__VALUE: >+ return getValue(); >+ case RegistryPackage.DESCRIPTION__LANG: >+ return getLang(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.DESCRIPTION__VALUE: >+ setValue((String)newValue); >+ return; >+ case RegistryPackage.DESCRIPTION__LANG: >+ setLang((String)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.DESCRIPTION__VALUE: >+ setValue(VALUE_EDEFAULT); >+ return; >+ case RegistryPackage.DESCRIPTION__LANG: >+ setLang(LANG_EDEFAULT); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.DESCRIPTION__VALUE: >+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); >+ case RegistryPackage.DESCRIPTION__LANG: >+ return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); >+ } >+ 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(" (value: "); >+ result.append(value); >+ result.append(", lang: "); >+ result.append(lang); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //DescriptionImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DocumentRootImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DocumentRootImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DocumentRootImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DocumentRootImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,367 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry.impl; >+ >+import java.util.Collection; >+ >+import org.eclipse.emf.common.notify.NotificationChain; >+ >+import org.eclipse.emf.common.util.EMap; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EStructuralFeature; >+import org.eclipse.emf.ecore.EcorePackage; >+import org.eclipse.emf.ecore.InternalEObject; >+ >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; >+ >+import org.eclipse.emf.ecore.util.BasicFeatureMap; >+import org.eclipse.emf.ecore.util.EcoreEMap; >+import org.eclipse.emf.ecore.util.FeatureMap; >+import org.eclipse.emf.ecore.util.InternalEList; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Description; >+import org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot; >+import org.eclipse.wst.ws.internal.model.v10.registry.Name; >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Document Root</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getDescription <em>Description</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getName <em>Name</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getRegistry <em>Registry</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot { >+ /** >+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getMixed() >+ * @generated >+ * @ordered >+ */ >+ protected FeatureMap mixed = null; >+ >+ /** >+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getXMLNSPrefixMap() >+ * @generated >+ * @ordered >+ */ >+ protected EMap xMLNSPrefixMap = null; >+ >+ /** >+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getXSISchemaLocation() >+ * @generated >+ * @ordered >+ */ >+ protected EMap xSISchemaLocation = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected DocumentRootImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return RegistryPackage.eINSTANCE.getDocumentRoot(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public FeatureMap getMixed() { >+ if (mixed == null) { >+ mixed = new BasicFeatureMap(this, RegistryPackage.DOCUMENT_ROOT__MIXED); >+ } >+ return mixed; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EMap getXMLNSPrefixMap() { >+ if (xMLNSPrefixMap == null) { >+ xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >+ } >+ return xMLNSPrefixMap; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EMap getXSISchemaLocation() { >+ if (xSISchemaLocation == null) { >+ xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >+ } >+ return xSISchemaLocation; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Description getDescription() { >+ return (Description)getMixed().get(RegistryPackage.eINSTANCE.getDocumentRoot_Description(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetDescription(Description newDescription, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(RegistryPackage.eINSTANCE.getDocumentRoot_Description(), newDescription, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setDescription(Description newDescription) { >+ ((FeatureMap.Internal)getMixed()).set(RegistryPackage.eINSTANCE.getDocumentRoot_Description(), newDescription); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Name getName() { >+ return (Name)getMixed().get(RegistryPackage.eINSTANCE.getDocumentRoot_Name(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetName(Name newName, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(RegistryPackage.eINSTANCE.getDocumentRoot_Name(), newName, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setName(Name newName) { >+ ((FeatureMap.Internal)getMixed()).set(RegistryPackage.eINSTANCE.getDocumentRoot_Name(), newName); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Registry getRegistry() { >+ return (Registry)getMixed().get(RegistryPackage.eINSTANCE.getDocumentRoot_Registry(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetRegistry(Registry newRegistry, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(RegistryPackage.eINSTANCE.getDocumentRoot_Registry(), newRegistry, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setRegistry(Registry newRegistry) { >+ ((FeatureMap.Internal)getMixed()).set(RegistryPackage.eINSTANCE.getDocumentRoot_Registry(), newRegistry); >+ } >+ >+ /** >+ * <!-- 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 RegistryPackage.DOCUMENT_ROOT__MIXED: >+ return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); >+ case RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); >+ case RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); >+ case RegistryPackage.DOCUMENT_ROOT__DESCRIPTION: >+ return basicSetDescription(null, msgs); >+ case RegistryPackage.DOCUMENT_ROOT__NAME: >+ return basicSetName(null, msgs); >+ case RegistryPackage.DOCUMENT_ROOT__REGISTRY: >+ return basicSetRegistry(null, 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 RegistryPackage.DOCUMENT_ROOT__MIXED: >+ return getMixed(); >+ case RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return getXMLNSPrefixMap(); >+ case RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return getXSISchemaLocation(); >+ case RegistryPackage.DOCUMENT_ROOT__DESCRIPTION: >+ return getDescription(); >+ case RegistryPackage.DOCUMENT_ROOT__NAME: >+ return getName(); >+ case RegistryPackage.DOCUMENT_ROOT__REGISTRY: >+ return getRegistry(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.DOCUMENT_ROOT__MIXED: >+ getMixed().clear(); >+ getMixed().addAll((Collection)newValue); >+ return; >+ case RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ getXMLNSPrefixMap().clear(); >+ getXMLNSPrefixMap().addAll((Collection)newValue); >+ return; >+ case RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ getXSISchemaLocation().clear(); >+ getXSISchemaLocation().addAll((Collection)newValue); >+ return; >+ case RegistryPackage.DOCUMENT_ROOT__DESCRIPTION: >+ setDescription((Description)newValue); >+ return; >+ case RegistryPackage.DOCUMENT_ROOT__NAME: >+ setName((Name)newValue); >+ return; >+ case RegistryPackage.DOCUMENT_ROOT__REGISTRY: >+ setRegistry((Registry)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.DOCUMENT_ROOT__MIXED: >+ getMixed().clear(); >+ return; >+ case RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ getXMLNSPrefixMap().clear(); >+ return; >+ case RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ getXSISchemaLocation().clear(); >+ return; >+ case RegistryPackage.DOCUMENT_ROOT__DESCRIPTION: >+ setDescription((Description)null); >+ return; >+ case RegistryPackage.DOCUMENT_ROOT__NAME: >+ setName((Name)null); >+ return; >+ case RegistryPackage.DOCUMENT_ROOT__REGISTRY: >+ setRegistry((Registry)null); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.DOCUMENT_ROOT__MIXED: >+ return mixed != null && !mixed.isEmpty(); >+ case RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); >+ case RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); >+ case RegistryPackage.DOCUMENT_ROOT__DESCRIPTION: >+ return getDescription() != null; >+ case RegistryPackage.DOCUMENT_ROOT__NAME: >+ return getName() != null; >+ case RegistryPackage.DOCUMENT_ROOT__REGISTRY: >+ return getRegistry() != 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(" (mixed: "); >+ result.append(mixed); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //DocumentRootImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/NameImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/NameImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/impl/NameImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/impl/NameImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,216 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry.impl; >+ >+import org.eclipse.emf.common.notify.Notification; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EStructuralFeature; >+ >+import org.eclipse.emf.ecore.impl.ENotificationImpl; >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Name; >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Name</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.NameImpl#getValue <em>Value</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.NameImpl#getLang <em>Lang</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class NameImpl extends EObjectImpl implements Name { >+ /** >+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getValue() >+ * @generated >+ * @ordered >+ */ >+ protected static final String VALUE_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getValue() >+ * @generated >+ * @ordered >+ */ >+ protected String value = VALUE_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getLang() <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLang() >+ * @generated >+ * @ordered >+ */ >+ protected static final String LANG_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLang() >+ * @generated >+ * @ordered >+ */ >+ protected String lang = LANG_EDEFAULT; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected NameImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return RegistryPackage.eINSTANCE.getName_(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getValue() { >+ return value; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setValue(String newValue) { >+ String oldValue = value; >+ value = newValue; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.NAME__VALUE, oldValue, value)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getLang() { >+ return lang; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setLang(String newLang) { >+ String oldLang = lang; >+ lang = newLang; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.NAME__LANG, oldLang, lang)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Object eGet(EStructuralFeature eFeature, boolean resolve) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.NAME__VALUE: >+ return getValue(); >+ case RegistryPackage.NAME__LANG: >+ return getLang(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.NAME__VALUE: >+ setValue((String)newValue); >+ return; >+ case RegistryPackage.NAME__LANG: >+ setLang((String)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.NAME__VALUE: >+ setValue(VALUE_EDEFAULT); >+ return; >+ case RegistryPackage.NAME__LANG: >+ setLang(LANG_EDEFAULT); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.NAME__VALUE: >+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); >+ case RegistryPackage.NAME__LANG: >+ return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); >+ } >+ 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(" (value: "); >+ result.append(value); >+ result.append(", lang: "); >+ result.append(lang); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //NameImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryFactoryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryFactoryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryFactoryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,108 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry.impl; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.emf.ecore.impl.EFactoryImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.*; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model <b>Factory</b>. >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+public class RegistryFactoryImpl extends EFactoryImpl implements RegistryFactory { >+ /** >+ * Creates and instance of the factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RegistryFactoryImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EObject create(EClass eClass) { >+ switch (eClass.getClassifierID()) { >+ case RegistryPackage.DESCRIPTION: return createDescription(); >+ case RegistryPackage.DOCUMENT_ROOT: return createDocumentRoot(); >+ case RegistryPackage.NAME: return createName(); >+ case RegistryPackage.REGISTRY: return createRegistry(); >+ default: >+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); >+ } >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Description createDescription() { >+ DescriptionImpl description = new DescriptionImpl(); >+ return description; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public DocumentRoot createDocumentRoot() { >+ DocumentRootImpl documentRoot = new DocumentRootImpl(); >+ return documentRoot; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Name createName() { >+ NameImpl name = new NameImpl(); >+ return name; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Registry createRegistry() { >+ RegistryImpl registry = new RegistryImpl(); >+ return registry; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RegistryPackage getRegistryPackage() { >+ return (RegistryPackage)getEPackage(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @deprecated >+ * @generated >+ */ >+ public static RegistryPackage getPackage() { >+ return RegistryPackage.eINSTANCE; >+ } >+ >+} //RegistryFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,368 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry.impl; >+ >+import java.util.Collection; >+ >+import org.eclipse.emf.common.notify.Notification; >+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.impl.ENotificationImpl; >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+ >+import org.eclipse.emf.ecore.util.EObjectContainmentEList; >+import org.eclipse.emf.ecore.util.InternalEList; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Description; >+import org.eclipse.wst.ws.internal.model.v10.registry.Name; >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Registry</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl#getName <em>Name</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl#getDescription <em>Description</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl#getId <em>Id</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl#getLocation <em>Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl#getRef <em>Ref</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class RegistryImpl extends EObjectImpl implements Registry { >+ /** >+ * The cached value of the '{@link #getName() <em>Name</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getName() >+ * @generated >+ * @ordered >+ */ >+ protected EList name = null; >+ >+ /** >+ * The cached value of the '{@link #getDescription() <em>Description</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getDescription() >+ * @generated >+ * @ordered >+ */ >+ protected EList description = null; >+ >+ /** >+ * The default value of the '{@link #getId() <em>Id</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getId() >+ * @generated >+ * @ordered >+ */ >+ protected static final String ID_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getId() >+ * @generated >+ * @ordered >+ */ >+ protected String id = ID_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getLocation() <em>Location</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLocation() >+ * @generated >+ * @ordered >+ */ >+ protected static final String LOCATION_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getLocation() <em>Location</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLocation() >+ * @generated >+ * @ordered >+ */ >+ protected String location = LOCATION_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getRef() <em>Ref</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getRef() >+ * @generated >+ * @ordered >+ */ >+ protected static final String REF_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getRef() <em>Ref</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getRef() >+ * @generated >+ * @ordered >+ */ >+ protected String ref = REF_EDEFAULT; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected RegistryImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return RegistryPackage.eINSTANCE.getRegistry(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getName() { >+ if (name == null) { >+ name = new EObjectContainmentEList(Name.class, this, RegistryPackage.REGISTRY__NAME); >+ } >+ return name; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getDescription() { >+ if (description == null) { >+ description = new EObjectContainmentEList(Description.class, this, RegistryPackage.REGISTRY__DESCRIPTION); >+ } >+ return description; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getId() { >+ return id; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setId(String newId) { >+ String oldId = id; >+ id = newId; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.REGISTRY__ID, oldId, id)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getLocation() { >+ return location; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setLocation(String newLocation) { >+ String oldLocation = location; >+ location = newLocation; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.REGISTRY__LOCATION, oldLocation, location)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getRef() { >+ return ref; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setRef(String newRef) { >+ String oldRef = ref; >+ ref = newRef; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.REGISTRY__REF, oldRef, ref)); >+ } >+ >+ /** >+ * <!-- 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 RegistryPackage.REGISTRY__NAME: >+ return ((InternalEList)getName()).basicRemove(otherEnd, msgs); >+ case RegistryPackage.REGISTRY__DESCRIPTION: >+ return ((InternalEList)getDescription()).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 RegistryPackage.REGISTRY__NAME: >+ return getName(); >+ case RegistryPackage.REGISTRY__DESCRIPTION: >+ return getDescription(); >+ case RegistryPackage.REGISTRY__ID: >+ return getId(); >+ case RegistryPackage.REGISTRY__LOCATION: >+ return getLocation(); >+ case RegistryPackage.REGISTRY__REF: >+ return getRef(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.REGISTRY__NAME: >+ getName().clear(); >+ getName().addAll((Collection)newValue); >+ return; >+ case RegistryPackage.REGISTRY__DESCRIPTION: >+ getDescription().clear(); >+ getDescription().addAll((Collection)newValue); >+ return; >+ case RegistryPackage.REGISTRY__ID: >+ setId((String)newValue); >+ return; >+ case RegistryPackage.REGISTRY__LOCATION: >+ setLocation((String)newValue); >+ return; >+ case RegistryPackage.REGISTRY__REF: >+ setRef((String)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.REGISTRY__NAME: >+ getName().clear(); >+ return; >+ case RegistryPackage.REGISTRY__DESCRIPTION: >+ getDescription().clear(); >+ return; >+ case RegistryPackage.REGISTRY__ID: >+ setId(ID_EDEFAULT); >+ return; >+ case RegistryPackage.REGISTRY__LOCATION: >+ setLocation(LOCATION_EDEFAULT); >+ return; >+ case RegistryPackage.REGISTRY__REF: >+ setRef(REF_EDEFAULT); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RegistryPackage.REGISTRY__NAME: >+ return name != null && !name.isEmpty(); >+ case RegistryPackage.REGISTRY__DESCRIPTION: >+ return description != null && !description.isEmpty(); >+ case RegistryPackage.REGISTRY__ID: >+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); >+ case RegistryPackage.REGISTRY__LOCATION: >+ return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); >+ case RegistryPackage.REGISTRY__REF: >+ return REF_EDEFAULT == null ? ref != null : !REF_EDEFAULT.equals(ref); >+ } >+ 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(" (id: "); >+ result.append(id); >+ result.append(", location: "); >+ result.append(location); >+ result.append(", ref: "); >+ result.append(ref); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //RegistryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryPackageImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryPackageImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryPackageImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryPackageImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,586 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry.impl; >+ >+import org.eclipse.emf.ecore.EAttribute; >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EPackage; >+import org.eclipse.emf.ecore.EReference; >+ >+import org.eclipse.emf.ecore.impl.EPackageImpl; >+ >+import org.eclipse.emf.ecore.xml.type.XMLTypePackage; >+ >+import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Description; >+import org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot; >+import org.eclipse.wst.ws.internal.model.v10.registry.Name; >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryFactory; >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model <b>Package</b>. >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+public class RegistryPackageImpl extends EPackageImpl implements RegistryPackage { >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass descriptionEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass documentRootEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass nameEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass registryEClass = 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.ws.internal.model.v10.registry.RegistryPackage#eNS_URI >+ * @see #init() >+ * @generated >+ */ >+ private RegistryPackageImpl() { >+ super(eNS_URI, RegistryFactory.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 RegistryPackage init() { >+ if (isInited) return (RegistryPackage)EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI); >+ >+ // Obtain or create and register package >+ RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof RegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new RegistryPackageImpl()); >+ >+ isInited = true; >+ >+ // Initialize simple dependencies >+ XMLTypePackageImpl.init(); >+ >+ // Obtain or create and register interdependencies >+ TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) instanceof TaxonomyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) : TaxonomyPackageImpl.eINSTANCE); >+ RTIndexPackageImpl theRTIndexPackage = (RTIndexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) instanceof RTIndexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) : RTIndexPackageImpl.eINSTANCE); >+ UDDIRegistryPackageImpl theUDDIRegistryPackage = (UDDIRegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) instanceof UDDIRegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) : UDDIRegistryPackageImpl.eINSTANCE); >+ >+ // Create package meta-data objects >+ theRegistryPackage.createPackageContents(); >+ theTaxonomyPackage.createPackageContents(); >+ theRTIndexPackage.createPackageContents(); >+ theUDDIRegistryPackage.createPackageContents(); >+ >+ // Initialize created meta-data >+ theRegistryPackage.initializePackageContents(); >+ theTaxonomyPackage.initializePackageContents(); >+ theRTIndexPackage.initializePackageContents(); >+ theUDDIRegistryPackage.initializePackageContents(); >+ >+ // Mark meta-data to indicate it can't be changed >+ theRegistryPackage.freeze(); >+ >+ return theRegistryPackage; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getDescription() { >+ return descriptionEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getDescription_Value() { >+ return (EAttribute)descriptionEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getDescription_Lang() { >+ return (EAttribute)descriptionEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getDocumentRoot() { >+ return documentRootEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getDocumentRoot_Mixed() { >+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_XMLNSPrefixMap() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_XSISchemaLocation() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_Description() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_Name() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(4); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_Registry() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(5); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getName_() { >+ return nameEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getName_Value() { >+ return (EAttribute)nameEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getName_Lang() { >+ return (EAttribute)nameEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getRegistry() { >+ return registryEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getRegistry_Name() { >+ return (EReference)registryEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getRegistry_Description() { >+ return (EReference)registryEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getRegistry_Id() { >+ return (EAttribute)registryEClass.getEStructuralFeatures().get(2); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getRegistry_Location() { >+ return (EAttribute)registryEClass.getEStructuralFeatures().get(3); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getRegistry_Ref() { >+ return (EAttribute)registryEClass.getEStructuralFeatures().get(4); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RegistryFactory getRegistryFactory() { >+ return (RegistryFactory)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 >+ descriptionEClass = createEClass(DESCRIPTION); >+ createEAttribute(descriptionEClass, DESCRIPTION__VALUE); >+ createEAttribute(descriptionEClass, DESCRIPTION__LANG); >+ >+ documentRootEClass = createEClass(DOCUMENT_ROOT); >+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__DESCRIPTION); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__NAME); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__REGISTRY); >+ >+ nameEClass = createEClass(NAME); >+ createEAttribute(nameEClass, NAME__VALUE); >+ createEAttribute(nameEClass, NAME__LANG); >+ >+ registryEClass = createEClass(REGISTRY); >+ createEReference(registryEClass, REGISTRY__NAME); >+ createEReference(registryEClass, REGISTRY__DESCRIPTION); >+ createEAttribute(registryEClass, REGISTRY__ID); >+ createEAttribute(registryEClass, REGISTRY__LOCATION); >+ createEAttribute(registryEClass, REGISTRY__REF); >+ } >+ >+ /** >+ * <!-- 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 >+ XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); >+ >+ // Add supertypes to classes >+ >+ // Initialize classes and features; add operations and parameters >+ initEClass(descriptionEClass, Description.class, "Description", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEAttribute(getDescription_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getDescription_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_Description(), this.getDescription(), null, "description", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_Name(), this.getName_(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_Registry(), this.getRegistry(), null, "registry", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ >+ initEClass(nameEClass, Name.class, "Name", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEAttribute(getName_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getName_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ initEClass(registryEClass, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, "Registry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEReference(getRegistry_Name(), this.getName_(), null, "name", null, 1, -1, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getRegistry_Description(), this.getDescription(), null, "description", null, 1, -1, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getRegistry_Id(), theXMLTypePackage.getAnyURI(), "id", null, 1, 1, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getRegistry_Location(), theXMLTypePackage.getAnyURI(), "location", null, 0, 1, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getRegistry_Ref(), theXMLTypePackage.getAnyURI(), "ref", null, 0, 1, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ // Create resource >+ createResource(eNS_URI); >+ >+ // Create annotations >+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData >+ createExtendedMetaDataAnnotations(); >+ } >+ >+ /** >+ * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected void createExtendedMetaDataAnnotations() { >+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; >+ addAnnotation >+ (descriptionEClass, >+ source, >+ new String[] { >+ "name", "Description", >+ "kind", "simple" >+ }); >+ addAnnotation >+ (getDescription_Value(), >+ source, >+ new String[] { >+ "name", ":0", >+ "kind", "simple" >+ }); >+ addAnnotation >+ (getDescription_Lang(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "lang", >+ "namespace", "http://www.w3.org/XML/1998/namespace" >+ }); >+ addAnnotation >+ (documentRootEClass, >+ source, >+ new String[] { >+ "name", "", >+ "kind", "mixed" >+ }); >+ addAnnotation >+ (getDocumentRoot_Mixed(), >+ source, >+ new String[] { >+ "kind", "elementWildcard", >+ "name", ":mixed" >+ }); >+ addAnnotation >+ (getDocumentRoot_XMLNSPrefixMap(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "xmlns:prefix" >+ }); >+ addAnnotation >+ (getDocumentRoot_XSISchemaLocation(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "xsi:schemaLocation" >+ }); >+ addAnnotation >+ (getDocumentRoot_Description(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "description", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (getDocumentRoot_Name(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "name", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (getDocumentRoot_Registry(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "registry", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (nameEClass, >+ source, >+ new String[] { >+ "name", "Name", >+ "kind", "simple" >+ }); >+ addAnnotation >+ (getName_Value(), >+ source, >+ new String[] { >+ "name", ":0", >+ "kind", "simple" >+ }); >+ addAnnotation >+ (getName_Lang(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "lang", >+ "namespace", "http://www.w3.org/XML/1998/namespace" >+ }); >+ addAnnotation >+ (registryEClass, >+ source, >+ new String[] { >+ "name", "Registry", >+ "kind", "elementOnly" >+ }); >+ addAnnotation >+ (getRegistry_Name(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "name" >+ }); >+ addAnnotation >+ (getRegistry_Description(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "description" >+ }); >+ addAnnotation >+ (getRegistry_Id(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "id" >+ }); >+ addAnnotation >+ (getRegistry_Location(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "location" >+ }); >+ addAnnotation >+ (getRegistry_Ref(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "ref" >+ }); >+ } >+ >+} //RegistryPackageImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryAdapterFactory.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryAdapterFactory.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryAdapterFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryAdapterFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,171 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry.util; >+ >+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.ws.internal.model.v10.registry.*; >+ >+/** >+ * <!-- 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.ws.internal.model.v10.registry.RegistryPackage >+ * @generated >+ */ >+public class RegistryAdapterFactory extends AdapterFactoryImpl { >+ /** >+ * The cached model package. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected static RegistryPackage modelPackage; >+ >+ /** >+ * Creates an instance of the adapter factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RegistryAdapterFactory() { >+ if (modelPackage == null) { >+ modelPackage = RegistryPackage.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 RegistrySwitch modelSwitch = >+ new RegistrySwitch() { >+ public Object caseDescription(Description object) { >+ return createDescriptionAdapter(); >+ } >+ public Object caseDocumentRoot(DocumentRoot object) { >+ return createDocumentRootAdapter(); >+ } >+ public Object caseName(Name object) { >+ return createNameAdapter(); >+ } >+ public Object caseRegistry(Registry object) { >+ return createRegistryAdapter(); >+ } >+ 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.ws.internal.model.v10.registry.Description <em>Description</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.ws.internal.model.v10.registry.Description >+ * @generated >+ */ >+ public Adapter createDescriptionAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot <em>Document Root</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.ws.internal.model.v10.registry.DocumentRoot >+ * @generated >+ */ >+ public Adapter createDocumentRootAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name <em>Name</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.ws.internal.model.v10.registry.Name >+ * @generated >+ */ >+ public Adapter createNameAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry <em>Registry</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.ws.internal.model.v10.registry.Registry >+ * @generated >+ */ >+ public Adapter createRegistryAdapter() { >+ 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; >+ } >+ >+} //RegistryAdapterFactory >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceFactoryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceFactoryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceFactoryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,63 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry.util; >+ >+import org.eclipse.emf.common.util.URI; >+ >+import org.eclipse.emf.ecore.resource.Resource; >+ >+import org.eclipse.emf.ecore.util.ExtendedMetaData; >+ >+import org.eclipse.emf.ecore.xmi.XMLResource; >+ >+import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Resource Factory</b> associated with the package. >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.util.RegistryResourceImpl >+ * @generated >+ */ >+public class RegistryResourceFactoryImpl extends XMLResourceFactoryImpl { >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected ExtendedMetaData extendedMetaData; >+ >+ /** >+ * Creates an instance of the resource factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RegistryResourceFactoryImpl() { >+ super(); >+ extendedMetaData = ExtendedMetaData.INSTANCE; >+ } >+ >+ /** >+ * Creates an instance of the resource. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Resource createResource(URI uri) { >+ XMLResource result = new RegistryResourceImpl(uri); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); >+ result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); >+ >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >+ >+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); >+ return result; >+ } >+ >+} //RegistryResourceFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,32 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry.util; >+ >+import org.eclipse.emf.common.util.URI; >+ >+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Resource </b> associated with the package. >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.util.RegistryResourceFactoryImpl >+ * @generated >+ */ >+public class RegistryResourceImpl extends XMLResourceImpl { >+ /** >+ * Creates an instance of the resource. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param uri the URI of the new resource. >+ * @generated >+ */ >+ public RegistryResourceImpl(URI uri) { >+ super(uri); >+ } >+ >+} //RegistryResourceFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistrySwitch.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistrySwitch.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistrySwitch.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistrySwitch.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,193 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.registry.util; >+ >+import java.util.List; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.*; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Switch</b> for the model's inheritance hierarchy. >+ * It supports the call {@link #doSwitch(EObject) 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.ws.internal.model.v10.registry.RegistryPackage >+ * @generated >+ */ >+public class RegistrySwitch { >+ /** >+ * The cached model package >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected static RegistryPackage modelPackage; >+ >+ /** >+ * Creates an instance of the switch. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RegistrySwitch() { >+ if (modelPackage == null) { >+ modelPackage = RegistryPackage.eINSTANCE; >+ } >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ public Object doSwitch(EObject theEObject) { >+ return doSwitch(theEObject.eClass(), theEObject); >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ protected Object doSwitch(EClass theEClass, EObject theEObject) { >+ if (theEClass.eContainer() == modelPackage) { >+ return doSwitch(theEClass.getClassifierID(), theEObject); >+ } >+ else { >+ List eSuperTypes = theEClass.getESuperTypes(); >+ return >+ eSuperTypes.isEmpty() ? >+ defaultCase(theEObject) : >+ doSwitch((EClass)eSuperTypes.get(0), theEObject); >+ } >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ protected Object doSwitch(int classifierID, EObject theEObject) { >+ switch (classifierID) { >+ case RegistryPackage.DESCRIPTION: { >+ Description description = (Description)theEObject; >+ Object result = caseDescription(description); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case RegistryPackage.DOCUMENT_ROOT: { >+ DocumentRoot documentRoot = (DocumentRoot)theEObject; >+ Object result = caseDocumentRoot(documentRoot); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case RegistryPackage.NAME: { >+ Name name = (Name)theEObject; >+ Object result = caseName(name); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case RegistryPackage.REGISTRY: { >+ Registry registry = (Registry)theEObject; >+ Object result = caseRegistry(registry); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ default: return defaultCase(theEObject); >+ } >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Description</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>Description</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseDescription(Description object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Document Root</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>Document Root</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseDocumentRoot(DocumentRoot object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Name</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>Name</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseName(Name object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Registry</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>Registry</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseRegistry(Registry 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; >+ } >+ >+} //RegistrySwitch >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/Description.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/Description.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/Description.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/Description.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,81 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Description</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getValue <em>Value</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getLang <em>Lang</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDescription() >+ * @model >+ * @generated >+ */ >+public interface Description extends EObject { >+ /** >+ * Returns the value of the '<em><b>Value</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Value</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Value</em>' attribute. >+ * @see #setValue(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDescription_Value() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >+ * @generated >+ */ >+ String getValue(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getValue <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Value</em>' attribute. >+ * @see #getValue() >+ * @generated >+ */ >+ void setValue(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Lang</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Lang</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Lang</em>' attribute. >+ * @see #setLang(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDescription_Lang() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Language" >+ * @generated >+ */ >+ String getLang(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getLang <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Lang</em>' attribute. >+ * @see #getLang() >+ * @generated >+ */ >+ void setLang(String value); >+ >+} // Description >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/DocumentRoot.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/DocumentRoot.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/DocumentRoot.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/DocumentRoot.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,165 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex; >+ >+import org.eclipse.emf.common.util.EMap; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.emf.ecore.util.FeatureMap; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Document Root</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getMixed <em>Mixed</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getDescription <em>Description</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getIndex <em>Index</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getName <em>Name</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot() >+ * @model >+ * @generated >+ */ >+public interface DocumentRoot extends EObject { >+ /** >+ * Returns the value of the '<em><b>Mixed</b></em>' attribute list. >+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Mixed</em>' attribute list. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_Mixed() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" >+ * @generated >+ */ >+ FeatureMap getMixed(); >+ >+ /** >+ * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. >+ * The key is of type {@link java.lang.String}, >+ * and the value is of type {@link java.lang.String}, >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>XMLNS Prefix Map</em>' map. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_XMLNSPrefixMap() >+ * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" >+ * @generated >+ */ >+ EMap getXMLNSPrefixMap(); >+ >+ /** >+ * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. >+ * The key is of type {@link java.lang.String}, >+ * and the value is of type {@link java.lang.String}, >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>XSI Schema Location</em>' map. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_XSISchemaLocation() >+ * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" >+ * @generated >+ */ >+ EMap getXSISchemaLocation(); >+ >+ /** >+ * Returns the value of the '<em><b>Description</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Description</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Description</em>' containment reference. >+ * @see #setDescription(Description) >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_Description() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ Description getDescription(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getDescription <em>Description</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Description</em>' containment reference. >+ * @see #getDescription() >+ * @generated >+ */ >+ void setDescription(Description value); >+ >+ /** >+ * Returns the value of the '<em><b>Index</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Index</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Index</em>' containment reference. >+ * @see #setIndex(Index) >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_Index() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ Index getIndex(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getIndex <em>Index</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Index</em>' containment reference. >+ * @see #getIndex() >+ * @generated >+ */ >+ void setIndex(Index value); >+ >+ /** >+ * Returns the value of the '<em><b>Name</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Name</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Name</em>' containment reference. >+ * @see #setName(Name) >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_Name() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ Name getName(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getName <em>Name</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Name</em>' containment reference. >+ * @see #getName() >+ * @generated >+ */ >+ void setName(Name value); >+ >+} // DocumentRoot >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/Index.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/Index.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/Index.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/Index.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,97 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex; >+ >+import org.eclipse.emf.common.util.EList; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Index</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getName <em>Name</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getDescription <em>Description</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getRegistry <em>Registry</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getTaxonomy <em>Taxonomy</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getIndex() >+ * @model >+ * @generated >+ */ >+public interface Index extends EObject { >+ /** >+ * Returns the value of the '<em><b>Name</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Name</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>Name</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getIndex_Name() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.rtindex.Name" containment="true" resolveProxies="false" required="true" >+ * @generated >+ */ >+ EList getName(); >+ >+ /** >+ * Returns the value of the '<em><b>Description</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Description</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>Description</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getIndex_Description() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.rtindex.Description" containment="true" resolveProxies="false" required="true" >+ * @generated >+ */ >+ EList getDescription(); >+ >+ /** >+ * Returns the value of the '<em><b>Registry</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.registry.Registry}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Registry</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>Registry</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getIndex_Registry() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.registry.Registry" containment="true" resolveProxies="false" >+ * @generated >+ */ >+ EList getRegistry(); >+ >+ /** >+ * Returns the value of the '<em><b>Taxonomy</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Taxonomy</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>Taxonomy</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getIndex_Taxonomy() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy" containment="true" resolveProxies="false" >+ * @generated >+ */ >+ EList getTaxonomy(); >+ >+} // Index >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/Name.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/Name.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/Name.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/Name.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,81 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Name</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getValue <em>Value</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getLang <em>Lang</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getName_() >+ * @model >+ * @generated >+ */ >+public interface Name extends EObject { >+ /** >+ * Returns the value of the '<em><b>Value</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Value</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Value</em>' attribute. >+ * @see #setValue(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getName_Value() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >+ * @generated >+ */ >+ String getValue(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getValue <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Value</em>' attribute. >+ * @see #getValue() >+ * @generated >+ */ >+ void setValue(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Lang</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Lang</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Lang</em>' attribute. >+ * @see #setLang(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getName_Lang() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Language" >+ * @generated >+ */ >+ String getLang(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getLang <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Lang</em>' attribute. >+ * @see #getLang() >+ * @generated >+ */ >+ void setLang(String value); >+ >+} // Name >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexFactory.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexFactory.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,73 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex; >+ >+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.ws.internal.model.v10.rtindex.RTIndexPackage >+ * @generated >+ */ >+public interface RTIndexFactory extends EFactory { >+ /** >+ * The singleton instance of the factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ RTIndexFactory eINSTANCE = new org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexFactoryImpl(); >+ >+ /** >+ * Returns a new object of class '<em>Description</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Description</em>'. >+ * @generated >+ */ >+ Description createDescription(); >+ >+ /** >+ * Returns a new object of class '<em>Document Root</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Document Root</em>'. >+ * @generated >+ */ >+ DocumentRoot createDocumentRoot(); >+ >+ /** >+ * Returns a new object of class '<em>Index</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Index</em>'. >+ * @generated >+ */ >+ Index createIndex(); >+ >+ /** >+ * Returns a new object of class '<em>Name</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Name</em>'. >+ * @generated >+ */ >+ Name createName(); >+ >+ /** >+ * Returns the package supported by this factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the package supported by this factory. >+ * @generated >+ */ >+ RTIndexPackage getRTIndexPackage(); >+ >+} //RTIndexFactory >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexPackage.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexPackage.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexPackage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexPackage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,550 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex; >+ >+import org.eclipse.emf.ecore.EAttribute; >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EPackage; >+import org.eclipse.emf.ecore.EReference; >+ >+/** >+ * <!-- 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 --> >+ * <!-- begin-model-doc --> >+ * >+ * See http://www.w3.org/XML/1998/namespace.html and >+ * http://www.w3.org/TR/REC-xml for information about this namespace. >+ * >+ * This schema document describes the XML namespace, in a form >+ * suitable for import by other schema documents. >+ * >+ * Note that local names in this namespace are intended to be defined >+ * only by the World Wide Web Consortium or its subgroups. The >+ * following names are currently defined in this namespace and should >+ * not be used with conflicting semantics by any Working Group, >+ * specification, or document instance: >+ * >+ * base (as an attribute name): denotes an attribute whose value >+ * provides a URI to be used as the base for interpreting any >+ * relative URIs in the scope of the element on which it >+ * appears; its value is inherited. This name is reserved >+ * by virtue of its definition in the XML Base specification. >+ * >+ * id (as an attribute name): denotes an attribute whose value >+ * should be interpreted as if declared to be of type ID. >+ * The xml:id specification is not yet a W3C Recommendation, >+ * but this attribute is included here to facilitate experimentation >+ * with the mechanisms it proposes. Note that it is _not_ included >+ * in the specialAttrs attribute group. >+ * >+ * lang (as an attribute name): denotes an attribute whose value >+ * is a language code for the natural language of the content of >+ * any element; its value is inherited. This name is reserved >+ * by virtue of its definition in the XML specification. >+ * >+ * space (as an attribute name): denotes an attribute whose >+ * value is a keyword indicating what whitespace processing >+ * discipline is intended for the content of the element; its >+ * value is inherited. This name is reserved by virtue of its >+ * definition in the XML specification. >+ * >+ * Father (in any context at all): denotes Jon Bosak, the chair of >+ * the original XML Working Group. This name is reserved by >+ * the following decision of the W3C XML Plenary and >+ * XML Coordination groups: >+ * >+ * In appreciation for his vision, leadership and dedication >+ * the W3C XML Plenary on this 10th day of February, 2000 >+ * reserves for Jon Bosak in perpetuity the XML name >+ * xml:Father >+ * >+ * This schema defines attributes and an attribute group >+ * suitable for use by >+ * schemas wishing to allow xml:base, xml:lang, xml:space or xml:id >+ * attributes on elements they define. >+ * >+ * To enable this, such a schema must import this schema >+ * for the XML namespace, e.g. as follows: >+ * <schema . . .> >+ * . . . >+ * <import namespace="http://www.w3.org/XML/1998/namespace" >+ * schemaLocation="http://www.w3.org/2001/xml.xsd"/> >+ * >+ * Subsequently, qualified reference to any of the attributes >+ * or the group defined below will have the desired effect, e.g. >+ * >+ * <type . . .> >+ * . . . >+ * <attributeGroup ref="xml:specialAttrs"/> >+ * >+ * will define a type which will schema-validate an instance >+ * element with any of those attributes >+ * In keeping with the XML Schema WG's standard versioning >+ * policy, this schema document will persist at >+ * http://www.w3.org/2005/08/xml.xsd. >+ * At the date of issue it can also be found at >+ * http://www.w3.org/2001/xml.xsd. >+ * The schema document at that URI may however change in the future, >+ * in order to remain compatible with the latest version of XML Schema >+ * itself, or with the XML namespace itself. In other words, if the XML >+ * Schema or XML namespaces change, the version of this document at >+ * http://www.w3.org/2001/xml.xsd will change >+ * accordingly; the version at >+ * http://www.w3.org/2005/08/xml.xsd will not change. >+ * >+ * <!-- end-model-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexFactory >+ * @generated >+ */ >+public interface RTIndexPackage extends EPackage { >+ /** >+ * The package name. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNAME = "rtindex"; >+ >+ /** >+ * The package namespace URI. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNS_URI = "http://eclipse.org/wst/ws/internal/model/v10/rtindex"; >+ >+ /** >+ * The package namespace name. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNS_PREFIX = "rtindex"; >+ >+ /** >+ * The singleton instance of the package. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ RTIndexPackage eINSTANCE = org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl.init(); >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DescriptionImpl <em>Description</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DescriptionImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl#getDescription() >+ * @generated >+ */ >+ int DESCRIPTION = 0; >+ >+ /** >+ * The feature id for the '<em><b>Value</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DESCRIPTION__VALUE = 0; >+ >+ /** >+ * The feature id for the '<em><b>Lang</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DESCRIPTION__LANG = 1; >+ >+ /** >+ * The number of structural features of the the '<em>Description</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DESCRIPTION_FEATURE_COUNT = 2; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl <em>Document Root</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl#getDocumentRoot() >+ * @generated >+ */ >+ int DOCUMENT_ROOT = 1; >+ >+ /** >+ * The feature id for the '<em><b>Mixed</b></em>' attribute list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__MIXED = 0; >+ >+ /** >+ * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; >+ >+ /** >+ * The feature id for the '<em><b>XSI Schema Location</b></em>' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; >+ >+ /** >+ * The feature id for the '<em><b>Description</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__DESCRIPTION = 3; >+ >+ /** >+ * The feature id for the '<em><b>Index</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__INDEX = 4; >+ >+ /** >+ * The feature id for the '<em><b>Name</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__NAME = 5; >+ >+ /** >+ * The number of structural features of the the '<em>Document Root</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT_FEATURE_COUNT = 6; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl <em>Index</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl#getIndex() >+ * @generated >+ */ >+ int INDEX = 2; >+ >+ /** >+ * The feature id for the '<em><b>Name</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int INDEX__NAME = 0; >+ >+ /** >+ * The feature id for the '<em><b>Description</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int INDEX__DESCRIPTION = 1; >+ >+ /** >+ * The feature id for the '<em><b>Registry</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int INDEX__REGISTRY = 2; >+ >+ /** >+ * The feature id for the '<em><b>Taxonomy</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int INDEX__TAXONOMY = 3; >+ >+ /** >+ * The number of structural features of the the '<em>Index</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int INDEX_FEATURE_COUNT = 4; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.NameImpl <em>Name</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.NameImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl#getName_() >+ * @generated >+ */ >+ int NAME = 3; >+ >+ /** >+ * The feature id for the '<em><b>Value</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int NAME__VALUE = 0; >+ >+ /** >+ * The feature id for the '<em><b>Lang</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int NAME__LANG = 1; >+ >+ /** >+ * The number of structural features of the the '<em>Name</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int NAME_FEATURE_COUNT = 2; >+ >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description <em>Description</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Description</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Description >+ * @generated >+ */ >+ EClass getDescription(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getValue <em>Value</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Value</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getValue() >+ * @see #getDescription() >+ * @generated >+ */ >+ EAttribute getDescription_Value(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getLang <em>Lang</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Lang</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getLang() >+ * @see #getDescription() >+ * @generated >+ */ >+ EAttribute getDescription_Lang(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot <em>Document Root</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Document Root</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot >+ * @generated >+ */ >+ EClass getDocumentRoot(); >+ >+ /** >+ * Returns the meta object for the attribute list '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getMixed <em>Mixed</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute list '<em>Mixed</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getMixed() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EAttribute getDocumentRoot_Mixed(); >+ >+ /** >+ * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXMLNSPrefixMap() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_XMLNSPrefixMap(); >+ >+ /** >+ * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the map '<em>XSI Schema Location</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXSISchemaLocation() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_XSISchemaLocation(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getDescription <em>Description</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Description</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getDescription() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_Description(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getIndex <em>Index</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Index</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getIndex() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_Index(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getName <em>Name</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Name</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getName() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_Name(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index <em>Index</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Index</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index >+ * @generated >+ */ >+ EClass getIndex(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getName <em>Name</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Name</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getName() >+ * @see #getIndex() >+ * @generated >+ */ >+ EReference getIndex_Name(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getDescription <em>Description</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Description</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getDescription() >+ * @see #getIndex() >+ * @generated >+ */ >+ EReference getIndex_Description(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getRegistry <em>Registry</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Registry</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getRegistry() >+ * @see #getIndex() >+ * @generated >+ */ >+ EReference getIndex_Registry(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getTaxonomy <em>Taxonomy</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Taxonomy</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getTaxonomy() >+ * @see #getIndex() >+ * @generated >+ */ >+ EReference getIndex_Taxonomy(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name <em>Name</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Name</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Name >+ * @generated >+ */ >+ EClass getName_(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getValue <em>Value</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Value</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getValue() >+ * @see #getName_() >+ * @generated >+ */ >+ EAttribute getName_Value(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getLang <em>Lang</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Lang</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getLang() >+ * @see #getName_() >+ * @generated >+ */ >+ EAttribute getName_Lang(); >+ >+ /** >+ * 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 >+ */ >+ RTIndexFactory getRTIndexFactory(); >+ >+} //RTIndexPackage >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DescriptionImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DescriptionImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DescriptionImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DescriptionImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,216 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex.impl; >+ >+import org.eclipse.emf.common.notify.Notification; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EStructuralFeature; >+ >+import org.eclipse.emf.ecore.impl.ENotificationImpl; >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Description; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Description</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DescriptionImpl#getValue <em>Value</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DescriptionImpl#getLang <em>Lang</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class DescriptionImpl extends EObjectImpl implements Description { >+ /** >+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getValue() >+ * @generated >+ * @ordered >+ */ >+ protected static final String VALUE_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getValue() >+ * @generated >+ * @ordered >+ */ >+ protected String value = VALUE_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getLang() <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLang() >+ * @generated >+ * @ordered >+ */ >+ protected static final String LANG_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLang() >+ * @generated >+ * @ordered >+ */ >+ protected String lang = LANG_EDEFAULT; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected DescriptionImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return RTIndexPackage.eINSTANCE.getDescription(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getValue() { >+ return value; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setValue(String newValue) { >+ String oldValue = value; >+ value = newValue; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RTIndexPackage.DESCRIPTION__VALUE, oldValue, value)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getLang() { >+ return lang; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setLang(String newLang) { >+ String oldLang = lang; >+ lang = newLang; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RTIndexPackage.DESCRIPTION__LANG, oldLang, lang)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Object eGet(EStructuralFeature eFeature, boolean resolve) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.DESCRIPTION__VALUE: >+ return getValue(); >+ case RTIndexPackage.DESCRIPTION__LANG: >+ return getLang(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.DESCRIPTION__VALUE: >+ setValue((String)newValue); >+ return; >+ case RTIndexPackage.DESCRIPTION__LANG: >+ setLang((String)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.DESCRIPTION__VALUE: >+ setValue(VALUE_EDEFAULT); >+ return; >+ case RTIndexPackage.DESCRIPTION__LANG: >+ setLang(LANG_EDEFAULT); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.DESCRIPTION__VALUE: >+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); >+ case RTIndexPackage.DESCRIPTION__LANG: >+ return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); >+ } >+ 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(" (value: "); >+ result.append(value); >+ result.append(", lang: "); >+ result.append(lang); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //DescriptionImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DocumentRootImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DocumentRootImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DocumentRootImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DocumentRootImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,367 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex.impl; >+ >+import java.util.Collection; >+ >+import org.eclipse.emf.common.notify.NotificationChain; >+ >+import org.eclipse.emf.common.util.EMap; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EStructuralFeature; >+import org.eclipse.emf.ecore.EcorePackage; >+import org.eclipse.emf.ecore.InternalEObject; >+ >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; >+ >+import org.eclipse.emf.ecore.util.BasicFeatureMap; >+import org.eclipse.emf.ecore.util.EcoreEMap; >+import org.eclipse.emf.ecore.util.FeatureMap; >+import org.eclipse.emf.ecore.util.InternalEList; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Description; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Index; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Name; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Document Root</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getDescription <em>Description</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getIndex <em>Index</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getName <em>Name</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot { >+ /** >+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getMixed() >+ * @generated >+ * @ordered >+ */ >+ protected FeatureMap mixed = null; >+ >+ /** >+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getXMLNSPrefixMap() >+ * @generated >+ * @ordered >+ */ >+ protected EMap xMLNSPrefixMap = null; >+ >+ /** >+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getXSISchemaLocation() >+ * @generated >+ * @ordered >+ */ >+ protected EMap xSISchemaLocation = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected DocumentRootImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return RTIndexPackage.eINSTANCE.getDocumentRoot(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public FeatureMap getMixed() { >+ if (mixed == null) { >+ mixed = new BasicFeatureMap(this, RTIndexPackage.DOCUMENT_ROOT__MIXED); >+ } >+ return mixed; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EMap getXMLNSPrefixMap() { >+ if (xMLNSPrefixMap == null) { >+ xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >+ } >+ return xMLNSPrefixMap; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EMap getXSISchemaLocation() { >+ if (xSISchemaLocation == null) { >+ xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >+ } >+ return xSISchemaLocation; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Description getDescription() { >+ return (Description)getMixed().get(RTIndexPackage.eINSTANCE.getDocumentRoot_Description(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetDescription(Description newDescription, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(RTIndexPackage.eINSTANCE.getDocumentRoot_Description(), newDescription, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setDescription(Description newDescription) { >+ ((FeatureMap.Internal)getMixed()).set(RTIndexPackage.eINSTANCE.getDocumentRoot_Description(), newDescription); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Index getIndex() { >+ return (Index)getMixed().get(RTIndexPackage.eINSTANCE.getDocumentRoot_Index(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetIndex(Index newIndex, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(RTIndexPackage.eINSTANCE.getDocumentRoot_Index(), newIndex, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setIndex(Index newIndex) { >+ ((FeatureMap.Internal)getMixed()).set(RTIndexPackage.eINSTANCE.getDocumentRoot_Index(), newIndex); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Name getName() { >+ return (Name)getMixed().get(RTIndexPackage.eINSTANCE.getDocumentRoot_Name(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetName(Name newName, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(RTIndexPackage.eINSTANCE.getDocumentRoot_Name(), newName, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setName(Name newName) { >+ ((FeatureMap.Internal)getMixed()).set(RTIndexPackage.eINSTANCE.getDocumentRoot_Name(), newName); >+ } >+ >+ /** >+ * <!-- 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 RTIndexPackage.DOCUMENT_ROOT__MIXED: >+ return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); >+ case RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); >+ case RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); >+ case RTIndexPackage.DOCUMENT_ROOT__DESCRIPTION: >+ return basicSetDescription(null, msgs); >+ case RTIndexPackage.DOCUMENT_ROOT__INDEX: >+ return basicSetIndex(null, msgs); >+ case RTIndexPackage.DOCUMENT_ROOT__NAME: >+ return basicSetName(null, 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 RTIndexPackage.DOCUMENT_ROOT__MIXED: >+ return getMixed(); >+ case RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return getXMLNSPrefixMap(); >+ case RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return getXSISchemaLocation(); >+ case RTIndexPackage.DOCUMENT_ROOT__DESCRIPTION: >+ return getDescription(); >+ case RTIndexPackage.DOCUMENT_ROOT__INDEX: >+ return getIndex(); >+ case RTIndexPackage.DOCUMENT_ROOT__NAME: >+ return getName(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.DOCUMENT_ROOT__MIXED: >+ getMixed().clear(); >+ getMixed().addAll((Collection)newValue); >+ return; >+ case RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ getXMLNSPrefixMap().clear(); >+ getXMLNSPrefixMap().addAll((Collection)newValue); >+ return; >+ case RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ getXSISchemaLocation().clear(); >+ getXSISchemaLocation().addAll((Collection)newValue); >+ return; >+ case RTIndexPackage.DOCUMENT_ROOT__DESCRIPTION: >+ setDescription((Description)newValue); >+ return; >+ case RTIndexPackage.DOCUMENT_ROOT__INDEX: >+ setIndex((Index)newValue); >+ return; >+ case RTIndexPackage.DOCUMENT_ROOT__NAME: >+ setName((Name)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.DOCUMENT_ROOT__MIXED: >+ getMixed().clear(); >+ return; >+ case RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ getXMLNSPrefixMap().clear(); >+ return; >+ case RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ getXSISchemaLocation().clear(); >+ return; >+ case RTIndexPackage.DOCUMENT_ROOT__DESCRIPTION: >+ setDescription((Description)null); >+ return; >+ case RTIndexPackage.DOCUMENT_ROOT__INDEX: >+ setIndex((Index)null); >+ return; >+ case RTIndexPackage.DOCUMENT_ROOT__NAME: >+ setName((Name)null); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.DOCUMENT_ROOT__MIXED: >+ return mixed != null && !mixed.isEmpty(); >+ case RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); >+ case RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); >+ case RTIndexPackage.DOCUMENT_ROOT__DESCRIPTION: >+ return getDescription() != null; >+ case RTIndexPackage.DOCUMENT_ROOT__INDEX: >+ return getIndex() != null; >+ case RTIndexPackage.DOCUMENT_ROOT__NAME: >+ return getName() != 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(" (mixed: "); >+ result.append(mixed); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //DocumentRootImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/IndexImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/IndexImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/IndexImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/IndexImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,267 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex.impl; >+ >+import java.util.Collection; >+ >+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.impl.EObjectImpl; >+ >+import org.eclipse.emf.ecore.util.EObjectContainmentEList; >+import org.eclipse.emf.ecore.util.InternalEList; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Description; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Index; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Name; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Index</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl#getName <em>Name</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl#getDescription <em>Description</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl#getRegistry <em>Registry</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl#getTaxonomy <em>Taxonomy</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class IndexImpl extends EObjectImpl implements Index { >+ /** >+ * The cached value of the '{@link #getName() <em>Name</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getName() >+ * @generated >+ * @ordered >+ */ >+ protected EList name = null; >+ >+ /** >+ * The cached value of the '{@link #getDescription() <em>Description</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getDescription() >+ * @generated >+ * @ordered >+ */ >+ protected EList description = null; >+ >+ /** >+ * The cached value of the '{@link #getRegistry() <em>Registry</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getRegistry() >+ * @generated >+ * @ordered >+ */ >+ protected EList registry = null; >+ >+ /** >+ * The cached value of the '{@link #getTaxonomy() <em>Taxonomy</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getTaxonomy() >+ * @generated >+ * @ordered >+ */ >+ protected EList taxonomy = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected IndexImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return RTIndexPackage.eINSTANCE.getIndex(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getName() { >+ if (name == null) { >+ name = new EObjectContainmentEList(Name.class, this, RTIndexPackage.INDEX__NAME); >+ } >+ return name; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getDescription() { >+ if (description == null) { >+ description = new EObjectContainmentEList(Description.class, this, RTIndexPackage.INDEX__DESCRIPTION); >+ } >+ return description; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getRegistry() { >+ if (registry == null) { >+ registry = new EObjectContainmentEList(Registry.class, this, RTIndexPackage.INDEX__REGISTRY); >+ } >+ return registry; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getTaxonomy() { >+ if (taxonomy == null) { >+ taxonomy = new EObjectContainmentEList(Taxonomy.class, this, RTIndexPackage.INDEX__TAXONOMY); >+ } >+ return taxonomy; >+ } >+ >+ /** >+ * <!-- 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 RTIndexPackage.INDEX__NAME: >+ return ((InternalEList)getName()).basicRemove(otherEnd, msgs); >+ case RTIndexPackage.INDEX__DESCRIPTION: >+ return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs); >+ case RTIndexPackage.INDEX__REGISTRY: >+ return ((InternalEList)getRegistry()).basicRemove(otherEnd, msgs); >+ case RTIndexPackage.INDEX__TAXONOMY: >+ return ((InternalEList)getTaxonomy()).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 RTIndexPackage.INDEX__NAME: >+ return getName(); >+ case RTIndexPackage.INDEX__DESCRIPTION: >+ return getDescription(); >+ case RTIndexPackage.INDEX__REGISTRY: >+ return getRegistry(); >+ case RTIndexPackage.INDEX__TAXONOMY: >+ return getTaxonomy(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.INDEX__NAME: >+ getName().clear(); >+ getName().addAll((Collection)newValue); >+ return; >+ case RTIndexPackage.INDEX__DESCRIPTION: >+ getDescription().clear(); >+ getDescription().addAll((Collection)newValue); >+ return; >+ case RTIndexPackage.INDEX__REGISTRY: >+ getRegistry().clear(); >+ getRegistry().addAll((Collection)newValue); >+ return; >+ case RTIndexPackage.INDEX__TAXONOMY: >+ getTaxonomy().clear(); >+ getTaxonomy().addAll((Collection)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.INDEX__NAME: >+ getName().clear(); >+ return; >+ case RTIndexPackage.INDEX__DESCRIPTION: >+ getDescription().clear(); >+ return; >+ case RTIndexPackage.INDEX__REGISTRY: >+ getRegistry().clear(); >+ return; >+ case RTIndexPackage.INDEX__TAXONOMY: >+ getTaxonomy().clear(); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.INDEX__NAME: >+ return name != null && !name.isEmpty(); >+ case RTIndexPackage.INDEX__DESCRIPTION: >+ return description != null && !description.isEmpty(); >+ case RTIndexPackage.INDEX__REGISTRY: >+ return registry != null && !registry.isEmpty(); >+ case RTIndexPackage.INDEX__TAXONOMY: >+ return taxonomy != null && !taxonomy.isEmpty(); >+ } >+ return eDynamicIsSet(eFeature); >+ } >+ >+} //IndexImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/NameImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/NameImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/NameImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/NameImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,216 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex.impl; >+ >+import org.eclipse.emf.common.notify.Notification; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EStructuralFeature; >+ >+import org.eclipse.emf.ecore.impl.ENotificationImpl; >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Name; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Name</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.NameImpl#getValue <em>Value</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.NameImpl#getLang <em>Lang</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class NameImpl extends EObjectImpl implements Name { >+ /** >+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getValue() >+ * @generated >+ * @ordered >+ */ >+ protected static final String VALUE_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getValue() >+ * @generated >+ * @ordered >+ */ >+ protected String value = VALUE_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getLang() <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLang() >+ * @generated >+ * @ordered >+ */ >+ protected static final String LANG_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLang() >+ * @generated >+ * @ordered >+ */ >+ protected String lang = LANG_EDEFAULT; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected NameImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return RTIndexPackage.eINSTANCE.getName_(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getValue() { >+ return value; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setValue(String newValue) { >+ String oldValue = value; >+ value = newValue; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RTIndexPackage.NAME__VALUE, oldValue, value)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getLang() { >+ return lang; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setLang(String newLang) { >+ String oldLang = lang; >+ lang = newLang; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, RTIndexPackage.NAME__LANG, oldLang, lang)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Object eGet(EStructuralFeature eFeature, boolean resolve) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.NAME__VALUE: >+ return getValue(); >+ case RTIndexPackage.NAME__LANG: >+ return getLang(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.NAME__VALUE: >+ setValue((String)newValue); >+ return; >+ case RTIndexPackage.NAME__LANG: >+ setLang((String)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.NAME__VALUE: >+ setValue(VALUE_EDEFAULT); >+ return; >+ case RTIndexPackage.NAME__LANG: >+ setLang(LANG_EDEFAULT); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case RTIndexPackage.NAME__VALUE: >+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); >+ case RTIndexPackage.NAME__LANG: >+ return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); >+ } >+ 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(" (value: "); >+ result.append(value); >+ result.append(", lang: "); >+ result.append(lang); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //NameImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexFactoryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexFactoryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexFactoryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,108 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex.impl; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.emf.ecore.impl.EFactoryImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.*; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model <b>Factory</b>. >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+public class RTIndexFactoryImpl extends EFactoryImpl implements RTIndexFactory { >+ /** >+ * Creates and instance of the factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RTIndexFactoryImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EObject create(EClass eClass) { >+ switch (eClass.getClassifierID()) { >+ case RTIndexPackage.DESCRIPTION: return createDescription(); >+ case RTIndexPackage.DOCUMENT_ROOT: return createDocumentRoot(); >+ case RTIndexPackage.INDEX: return createIndex(); >+ case RTIndexPackage.NAME: return createName(); >+ default: >+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); >+ } >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Description createDescription() { >+ DescriptionImpl description = new DescriptionImpl(); >+ return description; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public DocumentRoot createDocumentRoot() { >+ DocumentRootImpl documentRoot = new DocumentRootImpl(); >+ return documentRoot; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Index createIndex() { >+ IndexImpl index = new IndexImpl(); >+ return index; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Name createName() { >+ NameImpl name = new NameImpl(); >+ return name; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RTIndexPackage getRTIndexPackage() { >+ return (RTIndexPackage)getEPackage(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @deprecated >+ * @generated >+ */ >+ public static RTIndexPackage getPackage() { >+ return RTIndexPackage.eINSTANCE; >+ } >+ >+} //RTIndexFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexPackageImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexPackageImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexPackageImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexPackageImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,573 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex.impl; >+ >+import org.eclipse.emf.ecore.EAttribute; >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EPackage; >+import org.eclipse.emf.ecore.EReference; >+ >+import org.eclipse.emf.ecore.impl.EPackageImpl; >+ >+import org.eclipse.emf.ecore.xml.type.XMLTypePackage; >+ >+import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Description; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Index; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.Name; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexFactory; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model <b>Package</b>. >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+public class RTIndexPackageImpl extends EPackageImpl implements RTIndexPackage { >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass descriptionEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass documentRootEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass indexEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass nameEClass = 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.ws.internal.model.v10.rtindex.RTIndexPackage#eNS_URI >+ * @see #init() >+ * @generated >+ */ >+ private RTIndexPackageImpl() { >+ super(eNS_URI, RTIndexFactory.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 RTIndexPackage init() { >+ if (isInited) return (RTIndexPackage)EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI); >+ >+ // Obtain or create and register package >+ RTIndexPackageImpl theRTIndexPackage = (RTIndexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof RTIndexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new RTIndexPackageImpl()); >+ >+ isInited = true; >+ >+ // Initialize simple dependencies >+ XMLTypePackageImpl.init(); >+ >+ // Obtain or create and register interdependencies >+ TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) instanceof TaxonomyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) : TaxonomyPackageImpl.eINSTANCE); >+ RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) instanceof RegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) : RegistryPackageImpl.eINSTANCE); >+ UDDIRegistryPackageImpl theUDDIRegistryPackage = (UDDIRegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) instanceof UDDIRegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) : UDDIRegistryPackageImpl.eINSTANCE); >+ >+ // Create package meta-data objects >+ theRTIndexPackage.createPackageContents(); >+ theTaxonomyPackage.createPackageContents(); >+ theRegistryPackage.createPackageContents(); >+ theUDDIRegistryPackage.createPackageContents(); >+ >+ // Initialize created meta-data >+ theRTIndexPackage.initializePackageContents(); >+ theTaxonomyPackage.initializePackageContents(); >+ theRegistryPackage.initializePackageContents(); >+ theUDDIRegistryPackage.initializePackageContents(); >+ >+ // Mark meta-data to indicate it can't be changed >+ theRTIndexPackage.freeze(); >+ >+ return theRTIndexPackage; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getDescription() { >+ return descriptionEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getDescription_Value() { >+ return (EAttribute)descriptionEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getDescription_Lang() { >+ return (EAttribute)descriptionEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getDocumentRoot() { >+ return documentRootEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getDocumentRoot_Mixed() { >+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_XMLNSPrefixMap() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_XSISchemaLocation() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_Description() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_Index() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(4); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_Name() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(5); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getIndex() { >+ return indexEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getIndex_Name() { >+ return (EReference)indexEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getIndex_Description() { >+ return (EReference)indexEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getIndex_Registry() { >+ return (EReference)indexEClass.getEStructuralFeatures().get(2); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getIndex_Taxonomy() { >+ return (EReference)indexEClass.getEStructuralFeatures().get(3); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getName_() { >+ return nameEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getName_Value() { >+ return (EAttribute)nameEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getName_Lang() { >+ return (EAttribute)nameEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RTIndexFactory getRTIndexFactory() { >+ return (RTIndexFactory)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 >+ descriptionEClass = createEClass(DESCRIPTION); >+ createEAttribute(descriptionEClass, DESCRIPTION__VALUE); >+ createEAttribute(descriptionEClass, DESCRIPTION__LANG); >+ >+ documentRootEClass = createEClass(DOCUMENT_ROOT); >+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__DESCRIPTION); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__INDEX); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__NAME); >+ >+ indexEClass = createEClass(INDEX); >+ createEReference(indexEClass, INDEX__NAME); >+ createEReference(indexEClass, INDEX__DESCRIPTION); >+ createEReference(indexEClass, INDEX__REGISTRY); >+ createEReference(indexEClass, INDEX__TAXONOMY); >+ >+ nameEClass = createEClass(NAME); >+ createEAttribute(nameEClass, NAME__VALUE); >+ createEAttribute(nameEClass, NAME__LANG); >+ } >+ >+ /** >+ * <!-- 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 >+ XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); >+ RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI); >+ TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI); >+ >+ // Add supertypes to classes >+ >+ // Initialize classes and features; add operations and parameters >+ initEClass(descriptionEClass, Description.class, "Description", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEAttribute(getDescription_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getDescription_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_Description(), this.getDescription(), null, "description", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_Index(), this.getIndex(), null, "index", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_Name(), this.getName_(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ >+ initEClass(indexEClass, Index.class, "Index", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEReference(getIndex_Name(), this.getName_(), null, "name", null, 1, -1, Index.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getIndex_Description(), this.getDescription(), null, "description", null, 1, -1, Index.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getIndex_Registry(), theRegistryPackage.getRegistry(), null, "registry", null, 0, -1, Index.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getIndex_Taxonomy(), theTaxonomyPackage.getTaxonomy(), null, "taxonomy", null, 0, -1, Index.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ initEClass(nameEClass, Name.class, "Name", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEAttribute(getName_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getName_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ // Create resource >+ createResource(eNS_URI); >+ >+ // Create annotations >+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData >+ createExtendedMetaDataAnnotations(); >+ } >+ >+ /** >+ * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected void createExtendedMetaDataAnnotations() { >+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; >+ addAnnotation >+ (descriptionEClass, >+ source, >+ new String[] { >+ "name", "Description", >+ "kind", "simple" >+ }); >+ addAnnotation >+ (getDescription_Value(), >+ source, >+ new String[] { >+ "name", ":0", >+ "kind", "simple" >+ }); >+ addAnnotation >+ (getDescription_Lang(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "lang", >+ "namespace", "http://www.w3.org/XML/1998/namespace" >+ }); >+ addAnnotation >+ (documentRootEClass, >+ source, >+ new String[] { >+ "name", "", >+ "kind", "mixed" >+ }); >+ addAnnotation >+ (getDocumentRoot_Mixed(), >+ source, >+ new String[] { >+ "kind", "elementWildcard", >+ "name", ":mixed" >+ }); >+ addAnnotation >+ (getDocumentRoot_XMLNSPrefixMap(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "xmlns:prefix" >+ }); >+ addAnnotation >+ (getDocumentRoot_XSISchemaLocation(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "xsi:schemaLocation" >+ }); >+ addAnnotation >+ (getDocumentRoot_Description(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "description", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (getDocumentRoot_Index(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "index", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (getDocumentRoot_Name(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "name", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (indexEClass, >+ source, >+ new String[] { >+ "name", "Index", >+ "kind", "elementOnly" >+ }); >+ addAnnotation >+ (getIndex_Name(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "name" >+ }); >+ addAnnotation >+ (getIndex_Description(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "description" >+ }); >+ addAnnotation >+ (getIndex_Registry(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "registry", >+ "namespace", "http://eclipse.org/wst/ws/internal/model/v10/registry" >+ }); >+ addAnnotation >+ (getIndex_Taxonomy(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "taxonomy", >+ "namespace", "http://eclipse.org/wst/ws/internal/model/v10/taxonomy" >+ }); >+ addAnnotation >+ (nameEClass, >+ source, >+ new String[] { >+ "name", "Name", >+ "kind", "simple" >+ }); >+ addAnnotation >+ (getName_Value(), >+ source, >+ new String[] { >+ "name", ":0", >+ "kind", "simple" >+ }); >+ addAnnotation >+ (getName_Lang(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "lang", >+ "namespace", "http://www.w3.org/XML/1998/namespace" >+ }); >+ } >+ >+} //RTIndexPackageImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexAdapterFactory.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexAdapterFactory.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexAdapterFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexAdapterFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,171 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex.util; >+ >+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.ws.internal.model.v10.rtindex.*; >+ >+/** >+ * <!-- 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.ws.internal.model.v10.rtindex.RTIndexPackage >+ * @generated >+ */ >+public class RTIndexAdapterFactory extends AdapterFactoryImpl { >+ /** >+ * The cached model package. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected static RTIndexPackage modelPackage; >+ >+ /** >+ * Creates an instance of the adapter factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RTIndexAdapterFactory() { >+ if (modelPackage == null) { >+ modelPackage = RTIndexPackage.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 RTIndexSwitch modelSwitch = >+ new RTIndexSwitch() { >+ public Object caseDescription(Description object) { >+ return createDescriptionAdapter(); >+ } >+ public Object caseDocumentRoot(DocumentRoot object) { >+ return createDocumentRootAdapter(); >+ } >+ public Object caseIndex(Index object) { >+ return createIndexAdapter(); >+ } >+ public Object caseName(Name object) { >+ return createNameAdapter(); >+ } >+ 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.ws.internal.model.v10.rtindex.Description <em>Description</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.ws.internal.model.v10.rtindex.Description >+ * @generated >+ */ >+ public Adapter createDescriptionAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot <em>Document Root</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.ws.internal.model.v10.rtindex.DocumentRoot >+ * @generated >+ */ >+ public Adapter createDocumentRootAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index <em>Index</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.ws.internal.model.v10.rtindex.Index >+ * @generated >+ */ >+ public Adapter createIndexAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name <em>Name</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.ws.internal.model.v10.rtindex.Name >+ * @generated >+ */ >+ public Adapter createNameAdapter() { >+ 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; >+ } >+ >+} //RTIndexAdapterFactory >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceFactoryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceFactoryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceFactoryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,63 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex.util; >+ >+import org.eclipse.emf.common.util.URI; >+ >+import org.eclipse.emf.ecore.resource.Resource; >+ >+import org.eclipse.emf.ecore.util.ExtendedMetaData; >+ >+import org.eclipse.emf.ecore.xmi.XMLResource; >+ >+import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Resource Factory</b> associated with the package. >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.util.RTIndexResourceImpl >+ * @generated >+ */ >+public class RTIndexResourceFactoryImpl extends XMLResourceFactoryImpl { >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected ExtendedMetaData extendedMetaData; >+ >+ /** >+ * Creates an instance of the resource factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RTIndexResourceFactoryImpl() { >+ super(); >+ extendedMetaData = ExtendedMetaData.INSTANCE; >+ } >+ >+ /** >+ * Creates an instance of the resource. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Resource createResource(URI uri) { >+ XMLResource result = new RTIndexResourceImpl(uri); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); >+ result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); >+ >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >+ >+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); >+ return result; >+ } >+ >+} //RTIndexResourceFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,32 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex.util; >+ >+import org.eclipse.emf.common.util.URI; >+ >+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Resource </b> associated with the package. >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.rtindex.util.RTIndexResourceFactoryImpl >+ * @generated >+ */ >+public class RTIndexResourceImpl extends XMLResourceImpl { >+ /** >+ * Creates an instance of the resource. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param uri the URI of the new resource. >+ * @generated >+ */ >+ public RTIndexResourceImpl(URI uri) { >+ super(uri); >+ } >+ >+} //RTIndexResourceFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexSwitch.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexSwitch.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexSwitch.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexSwitch.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,193 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.rtindex.util; >+ >+import java.util.List; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.*; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Switch</b> for the model's inheritance hierarchy. >+ * It supports the call {@link #doSwitch(EObject) 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.ws.internal.model.v10.rtindex.RTIndexPackage >+ * @generated >+ */ >+public class RTIndexSwitch { >+ /** >+ * The cached model package >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected static RTIndexPackage modelPackage; >+ >+ /** >+ * Creates an instance of the switch. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public RTIndexSwitch() { >+ if (modelPackage == null) { >+ modelPackage = RTIndexPackage.eINSTANCE; >+ } >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ public Object doSwitch(EObject theEObject) { >+ return doSwitch(theEObject.eClass(), theEObject); >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ protected Object doSwitch(EClass theEClass, EObject theEObject) { >+ if (theEClass.eContainer() == modelPackage) { >+ return doSwitch(theEClass.getClassifierID(), theEObject); >+ } >+ else { >+ List eSuperTypes = theEClass.getESuperTypes(); >+ return >+ eSuperTypes.isEmpty() ? >+ defaultCase(theEObject) : >+ doSwitch((EClass)eSuperTypes.get(0), theEObject); >+ } >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ protected Object doSwitch(int classifierID, EObject theEObject) { >+ switch (classifierID) { >+ case RTIndexPackage.DESCRIPTION: { >+ Description description = (Description)theEObject; >+ Object result = caseDescription(description); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case RTIndexPackage.DOCUMENT_ROOT: { >+ DocumentRoot documentRoot = (DocumentRoot)theEObject; >+ Object result = caseDocumentRoot(documentRoot); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case RTIndexPackage.INDEX: { >+ Index index = (Index)theEObject; >+ Object result = caseIndex(index); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case RTIndexPackage.NAME: { >+ Name name = (Name)theEObject; >+ Object result = caseName(name); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ default: return defaultCase(theEObject); >+ } >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Description</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>Description</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseDescription(Description object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Document Root</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>Document Root</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseDocumentRoot(DocumentRoot object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Index</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>Index</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseIndex(Index object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Name</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>Name</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseName(Name 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; >+ } >+ >+} //RTIndexSwitch >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Category.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Category.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Category.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Category.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,117 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy; >+ >+import org.eclipse.emf.common.util.EList; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Category</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getNlname <em>Nlname</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCategory <em>Category</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCode <em>Code</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getName <em>Name</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getCategory() >+ * @model >+ * @generated >+ */ >+public interface Category extends EObject { >+ /** >+ * Returns the value of the '<em><b>Nlname</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Nlname</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>Nlname</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getCategory_Nlname() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Name" containment="true" resolveProxies="false" >+ * @generated >+ */ >+ EList getNlname(); >+ >+ /** >+ * Returns the value of the '<em><b>Category</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Category</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>Category</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getCategory_Category() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Category" containment="true" resolveProxies="false" >+ * @generated >+ */ >+ EList getCategory(); >+ >+ /** >+ * Returns the value of the '<em><b>Code</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Code</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Code</em>' attribute. >+ * @see #setCode(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getCategory_Code() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >+ * @generated >+ */ >+ String getCode(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCode <em>Code</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Code</em>' attribute. >+ * @see #getCode() >+ * @generated >+ */ >+ void setCode(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Name</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Name</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Name</em>' attribute. >+ * @see #setName(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getCategory_Name() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >+ * @generated >+ */ >+ String getName(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getName <em>Name</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Name</em>' attribute. >+ * @see #getName() >+ * @generated >+ */ >+ void setName(String value); >+ >+} // Category >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/DocumentRoot.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/DocumentRoot.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/DocumentRoot.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/DocumentRoot.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,165 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy; >+ >+import org.eclipse.emf.common.util.EMap; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.emf.ecore.util.FeatureMap; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Document Root</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getMixed <em>Mixed</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getCategory <em>Category</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getName <em>Name</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getTaxonomy <em>Taxonomy</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot() >+ * @model >+ * @generated >+ */ >+public interface DocumentRoot extends EObject { >+ /** >+ * Returns the value of the '<em><b>Mixed</b></em>' attribute list. >+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Mixed</em>' attribute list. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_Mixed() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" >+ * @generated >+ */ >+ FeatureMap getMixed(); >+ >+ /** >+ * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. >+ * The key is of type {@link java.lang.String}, >+ * and the value is of type {@link java.lang.String}, >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>XMLNS Prefix Map</em>' map. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_XMLNSPrefixMap() >+ * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" >+ * @generated >+ */ >+ EMap getXMLNSPrefixMap(); >+ >+ /** >+ * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. >+ * The key is of type {@link java.lang.String}, >+ * and the value is of type {@link java.lang.String}, >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>XSI Schema Location</em>' map. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_XSISchemaLocation() >+ * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" >+ * @generated >+ */ >+ EMap getXSISchemaLocation(); >+ >+ /** >+ * Returns the value of the '<em><b>Category</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Category</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Category</em>' containment reference. >+ * @see #setCategory(Category) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_Category() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ Category getCategory(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getCategory <em>Category</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Category</em>' containment reference. >+ * @see #getCategory() >+ * @generated >+ */ >+ void setCategory(Category value); >+ >+ /** >+ * Returns the value of the '<em><b>Name</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Name</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Name</em>' containment reference. >+ * @see #setName(Name) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_Name() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ Name getName(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getName <em>Name</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Name</em>' containment reference. >+ * @see #getName() >+ * @generated >+ */ >+ void setName(Name value); >+ >+ /** >+ * Returns the value of the '<em><b>Taxonomy</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Taxonomy</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Taxonomy</em>' containment reference. >+ * @see #setTaxonomy(Taxonomy) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_Taxonomy() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ Taxonomy getTaxonomy(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getTaxonomy <em>Taxonomy</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Taxonomy</em>' containment reference. >+ * @see #getTaxonomy() >+ * @generated >+ */ >+ void setTaxonomy(Taxonomy value); >+ >+} // DocumentRoot >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Name.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Name.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Name.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Name.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,81 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Name</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getValue <em>Value</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getLang <em>Lang</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getName_() >+ * @model >+ * @generated >+ */ >+public interface Name extends EObject { >+ /** >+ * Returns the value of the '<em><b>Value</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Value</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Value</em>' attribute. >+ * @see #setValue(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getName_Value() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >+ * @generated >+ */ >+ String getValue(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getValue <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Value</em>' attribute. >+ * @see #getValue() >+ * @generated >+ */ >+ void setValue(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Lang</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Lang</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Lang</em>' attribute. >+ * @see #setLang(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getName_Lang() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Language" >+ * @generated >+ */ >+ String getLang(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getLang <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Lang</em>' attribute. >+ * @see #getLang() >+ * @generated >+ */ >+ void setLang(String value); >+ >+} // Name >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Taxonomy.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Taxonomy.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Taxonomy.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Taxonomy.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,171 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy; >+ >+import org.eclipse.emf.common.util.EList; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Taxonomy</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getNlname <em>Nlname</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getCategory <em>Category</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getId <em>Id</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getLocation <em>Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getName <em>Name</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getRef <em>Ref</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy() >+ * @model >+ * @generated >+ */ >+public interface Taxonomy extends EObject { >+ /** >+ * Returns the value of the '<em><b>Nlname</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Nlname</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>Nlname</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Nlname() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Name" containment="true" resolveProxies="false" >+ * @generated >+ */ >+ EList getNlname(); >+ >+ /** >+ * Returns the value of the '<em><b>Category</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Category</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>Category</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Category() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Category" containment="true" resolveProxies="false" >+ * @generated >+ */ >+ EList getCategory(); >+ >+ /** >+ * Returns the value of the '<em><b>Id</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Id</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Id</em>' attribute. >+ * @see #setId(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Id() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" required="true" >+ * @generated >+ */ >+ String getId(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getId <em>Id</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Id</em>' attribute. >+ * @see #getId() >+ * @generated >+ */ >+ void setId(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Location</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Location</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Location</em>' attribute. >+ * @see #setLocation(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Location() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" >+ * @generated >+ */ >+ String getLocation(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getLocation <em>Location</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Location</em>' attribute. >+ * @see #getLocation() >+ * @generated >+ */ >+ void setLocation(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Name</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Name</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Name</em>' attribute. >+ * @see #setName(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Name() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >+ * @generated >+ */ >+ String getName(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getName <em>Name</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Name</em>' attribute. >+ * @see #getName() >+ * @generated >+ */ >+ void setName(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Ref</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Ref</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Ref</em>' attribute. >+ * @see #setRef(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Ref() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" >+ * @generated >+ */ >+ String getRef(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getRef <em>Ref</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Ref</em>' attribute. >+ * @see #getRef() >+ * @generated >+ */ >+ void setRef(String value); >+ >+} // Taxonomy >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyFactory.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyFactory.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,73 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy; >+ >+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.ws.internal.model.v10.taxonomy.TaxonomyPackage >+ * @generated >+ */ >+public interface TaxonomyFactory extends EFactory { >+ /** >+ * The singleton instance of the factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ TaxonomyFactory eINSTANCE = new org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyFactoryImpl(); >+ >+ /** >+ * Returns a new object of class '<em>Category</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Category</em>'. >+ * @generated >+ */ >+ Category createCategory(); >+ >+ /** >+ * Returns a new object of class '<em>Document Root</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Document Root</em>'. >+ * @generated >+ */ >+ DocumentRoot createDocumentRoot(); >+ >+ /** >+ * Returns a new object of class '<em>Name</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Name</em>'. >+ * @generated >+ */ >+ Name createName(); >+ >+ /** >+ * Returns a new object of class '<em>Taxonomy</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Taxonomy</em>'. >+ * @generated >+ */ >+ Taxonomy createTaxonomy(); >+ >+ /** >+ * Returns the package supported by this factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the package supported by this factory. >+ * @generated >+ */ >+ TaxonomyPackage getTaxonomyPackage(); >+ >+} //TaxonomyFactory >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyPackage.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyPackage.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyPackage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyPackage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,630 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy; >+ >+import org.eclipse.emf.ecore.EAttribute; >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EPackage; >+import org.eclipse.emf.ecore.EReference; >+ >+/** >+ * <!-- 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 --> >+ * <!-- begin-model-doc --> >+ * >+ * See http://www.w3.org/XML/1998/namespace.html and >+ * http://www.w3.org/TR/REC-xml for information about this namespace. >+ * >+ * This schema document describes the XML namespace, in a form >+ * suitable for import by other schema documents. >+ * >+ * Note that local names in this namespace are intended to be defined >+ * only by the World Wide Web Consortium or its subgroups. The >+ * following names are currently defined in this namespace and should >+ * not be used with conflicting semantics by any Working Group, >+ * specification, or document instance: >+ * >+ * base (as an attribute name): denotes an attribute whose value >+ * provides a URI to be used as the base for interpreting any >+ * relative URIs in the scope of the element on which it >+ * appears; its value is inherited. This name is reserved >+ * by virtue of its definition in the XML Base specification. >+ * >+ * id (as an attribute name): denotes an attribute whose value >+ * should be interpreted as if declared to be of type ID. >+ * The xml:id specification is not yet a W3C Recommendation, >+ * but this attribute is included here to facilitate experimentation >+ * with the mechanisms it proposes. Note that it is _not_ included >+ * in the specialAttrs attribute group. >+ * >+ * lang (as an attribute name): denotes an attribute whose value >+ * is a language code for the natural language of the content of >+ * any element; its value is inherited. This name is reserved >+ * by virtue of its definition in the XML specification. >+ * >+ * space (as an attribute name): denotes an attribute whose >+ * value is a keyword indicating what whitespace processing >+ * discipline is intended for the content of the element; its >+ * value is inherited. This name is reserved by virtue of its >+ * definition in the XML specification. >+ * >+ * Father (in any context at all): denotes Jon Bosak, the chair of >+ * the original XML Working Group. This name is reserved by >+ * the following decision of the W3C XML Plenary and >+ * XML Coordination groups: >+ * >+ * In appreciation for his vision, leadership and dedication >+ * the W3C XML Plenary on this 10th day of February, 2000 >+ * reserves for Jon Bosak in perpetuity the XML name >+ * xml:Father >+ * >+ * This schema defines attributes and an attribute group >+ * suitable for use by >+ * schemas wishing to allow xml:base, xml:lang, xml:space or xml:id >+ * attributes on elements they define. >+ * >+ * To enable this, such a schema must import this schema >+ * for the XML namespace, e.g. as follows: >+ * <schema . . .> >+ * . . . >+ * <import namespace="http://www.w3.org/XML/1998/namespace" >+ * schemaLocation="http://www.w3.org/2001/xml.xsd"/> >+ * >+ * Subsequently, qualified reference to any of the attributes >+ * or the group defined below will have the desired effect, e.g. >+ * >+ * <type . . .> >+ * . . . >+ * <attributeGroup ref="xml:specialAttrs"/> >+ * >+ * will define a type which will schema-validate an instance >+ * element with any of those attributes >+ * In keeping with the XML Schema WG's standard versioning >+ * policy, this schema document will persist at >+ * http://www.w3.org/2005/08/xml.xsd. >+ * At the date of issue it can also be found at >+ * http://www.w3.org/2001/xml.xsd. >+ * The schema document at that URI may however change in the future, >+ * in order to remain compatible with the latest version of XML Schema >+ * itself, or with the XML namespace itself. In other words, if the XML >+ * Schema or XML namespaces change, the version of this document at >+ * http://www.w3.org/2001/xml.xsd will change >+ * accordingly; the version at >+ * http://www.w3.org/2005/08/xml.xsd will not change. >+ * >+ * <!-- end-model-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyFactory >+ * @generated >+ */ >+public interface TaxonomyPackage extends EPackage { >+ /** >+ * The package name. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNAME = "taxonomy"; >+ >+ /** >+ * The package namespace URI. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNS_URI = "http://eclipse.org/wst/ws/internal/model/v10/taxonomy"; >+ >+ /** >+ * The package namespace name. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNS_PREFIX = "taxonomy"; >+ >+ /** >+ * The singleton instance of the package. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ TaxonomyPackage eINSTANCE = org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl.init(); >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl <em>Category</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl#getCategory() >+ * @generated >+ */ >+ int CATEGORY = 0; >+ >+ /** >+ * The feature id for the '<em><b>Nlname</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int CATEGORY__NLNAME = 0; >+ >+ /** >+ * The feature id for the '<em><b>Category</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int CATEGORY__CATEGORY = 1; >+ >+ /** >+ * The feature id for the '<em><b>Code</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int CATEGORY__CODE = 2; >+ >+ /** >+ * The feature id for the '<em><b>Name</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int CATEGORY__NAME = 3; >+ >+ /** >+ * The number of structural features of the the '<em>Category</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int CATEGORY_FEATURE_COUNT = 4; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl <em>Document Root</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl#getDocumentRoot() >+ * @generated >+ */ >+ int DOCUMENT_ROOT = 1; >+ >+ /** >+ * The feature id for the '<em><b>Mixed</b></em>' attribute list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__MIXED = 0; >+ >+ /** >+ * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; >+ >+ /** >+ * The feature id for the '<em><b>XSI Schema Location</b></em>' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; >+ >+ /** >+ * The feature id for the '<em><b>Category</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__CATEGORY = 3; >+ >+ /** >+ * The feature id for the '<em><b>Name</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__NAME = 4; >+ >+ /** >+ * The feature id for the '<em><b>Taxonomy</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__TAXONOMY = 5; >+ >+ /** >+ * The number of structural features of the the '<em>Document Root</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT_FEATURE_COUNT = 6; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.NameImpl <em>Name</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.NameImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl#getName_() >+ * @generated >+ */ >+ int NAME = 2; >+ >+ /** >+ * The feature id for the '<em><b>Value</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int NAME__VALUE = 0; >+ >+ /** >+ * The feature id for the '<em><b>Lang</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int NAME__LANG = 1; >+ >+ /** >+ * The number of structural features of the the '<em>Name</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int NAME_FEATURE_COUNT = 2; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl <em>Taxonomy</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl#getTaxonomy() >+ * @generated >+ */ >+ int TAXONOMY = 3; >+ >+ /** >+ * The feature id for the '<em><b>Nlname</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int TAXONOMY__NLNAME = 0; >+ >+ /** >+ * The feature id for the '<em><b>Category</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int TAXONOMY__CATEGORY = 1; >+ >+ /** >+ * The feature id for the '<em><b>Id</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int TAXONOMY__ID = 2; >+ >+ /** >+ * The feature id for the '<em><b>Location</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int TAXONOMY__LOCATION = 3; >+ >+ /** >+ * The feature id for the '<em><b>Name</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int TAXONOMY__NAME = 4; >+ >+ /** >+ * The feature id for the '<em><b>Ref</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int TAXONOMY__REF = 5; >+ >+ /** >+ * The number of structural features of the the '<em>Taxonomy</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int TAXONOMY_FEATURE_COUNT = 6; >+ >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category <em>Category</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Category</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category >+ * @generated >+ */ >+ EClass getCategory(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getNlname <em>Nlname</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Nlname</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getNlname() >+ * @see #getCategory() >+ * @generated >+ */ >+ EReference getCategory_Nlname(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCategory <em>Category</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Category</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCategory() >+ * @see #getCategory() >+ * @generated >+ */ >+ EReference getCategory_Category(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCode <em>Code</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Code</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCode() >+ * @see #getCategory() >+ * @generated >+ */ >+ EAttribute getCategory_Code(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getName <em>Name</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Name</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getName() >+ * @see #getCategory() >+ * @generated >+ */ >+ EAttribute getCategory_Name(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot <em>Document Root</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Document Root</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot >+ * @generated >+ */ >+ EClass getDocumentRoot(); >+ >+ /** >+ * Returns the meta object for the attribute list '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getMixed <em>Mixed</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute list '<em>Mixed</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getMixed() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EAttribute getDocumentRoot_Mixed(); >+ >+ /** >+ * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXMLNSPrefixMap() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_XMLNSPrefixMap(); >+ >+ /** >+ * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the map '<em>XSI Schema Location</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXSISchemaLocation() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_XSISchemaLocation(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getCategory <em>Category</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Category</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getCategory() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_Category(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getName <em>Name</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Name</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getName() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_Name(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getTaxonomy <em>Taxonomy</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Taxonomy</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getTaxonomy() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_Taxonomy(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name <em>Name</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Name</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Name >+ * @generated >+ */ >+ EClass getName_(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getValue <em>Value</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Value</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getValue() >+ * @see #getName_() >+ * @generated >+ */ >+ EAttribute getName_Value(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getLang <em>Lang</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Lang</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getLang() >+ * @see #getName_() >+ * @generated >+ */ >+ EAttribute getName_Lang(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy <em>Taxonomy</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Taxonomy</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy >+ * @generated >+ */ >+ EClass getTaxonomy(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getNlname <em>Nlname</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Nlname</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getNlname() >+ * @see #getTaxonomy() >+ * @generated >+ */ >+ EReference getTaxonomy_Nlname(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getCategory <em>Category</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Category</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getCategory() >+ * @see #getTaxonomy() >+ * @generated >+ */ >+ EReference getTaxonomy_Category(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getId <em>Id</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Id</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getId() >+ * @see #getTaxonomy() >+ * @generated >+ */ >+ EAttribute getTaxonomy_Id(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getLocation <em>Location</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Location</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getLocation() >+ * @see #getTaxonomy() >+ * @generated >+ */ >+ EAttribute getTaxonomy_Location(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getName <em>Name</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Name</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getName() >+ * @see #getTaxonomy() >+ * @generated >+ */ >+ EAttribute getTaxonomy_Name(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getRef <em>Ref</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Ref</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getRef() >+ * @see #getTaxonomy() >+ * @generated >+ */ >+ EAttribute getTaxonomy_Ref(); >+ >+ /** >+ * 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 >+ */ >+ TaxonomyFactory getTaxonomyFactory(); >+ >+} //TaxonomyPackage >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/CategoryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/CategoryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/CategoryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/CategoryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,313 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl; >+ >+import java.util.Collection; >+ >+import org.eclipse.emf.common.notify.Notification; >+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.impl.ENotificationImpl; >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+ >+import org.eclipse.emf.ecore.util.EObjectContainmentEList; >+import org.eclipse.emf.ecore.util.InternalEList; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Category; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Category</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl#getNlname <em>Nlname</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl#getCategory <em>Category</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl#getCode <em>Code</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl#getName <em>Name</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class CategoryImpl extends EObjectImpl implements Category { >+ /** >+ * The cached value of the '{@link #getNlname() <em>Nlname</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getNlname() >+ * @generated >+ * @ordered >+ */ >+ protected EList nlname = null; >+ >+ /** >+ * The cached value of the '{@link #getCategory() <em>Category</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getCategory() >+ * @generated >+ * @ordered >+ */ >+ protected EList category = null; >+ >+ /** >+ * The default value of the '{@link #getCode() <em>Code</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getCode() >+ * @generated >+ * @ordered >+ */ >+ protected static final String CODE_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getCode() <em>Code</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getCode() >+ * @generated >+ * @ordered >+ */ >+ protected String code = CODE_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getName() >+ * @generated >+ * @ordered >+ */ >+ protected static final String NAME_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getName() >+ * @generated >+ * @ordered >+ */ >+ protected String name = NAME_EDEFAULT; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected CategoryImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return TaxonomyPackage.eINSTANCE.getCategory(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getNlname() { >+ if (nlname == null) { >+ nlname = new EObjectContainmentEList(Name.class, this, TaxonomyPackage.CATEGORY__NLNAME); >+ } >+ return nlname; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getCategory() { >+ if (category == null) { >+ category = new EObjectContainmentEList(Category.class, this, TaxonomyPackage.CATEGORY__CATEGORY); >+ } >+ return category; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getCode() { >+ return code; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setCode(String newCode) { >+ String oldCode = code; >+ code = newCode; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.CATEGORY__CODE, oldCode, code)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getName() { >+ return name; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setName(String newName) { >+ String oldName = name; >+ name = newName; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.CATEGORY__NAME, oldName, name)); >+ } >+ >+ /** >+ * <!-- 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 TaxonomyPackage.CATEGORY__NLNAME: >+ return ((InternalEList)getNlname()).basicRemove(otherEnd, msgs); >+ case TaxonomyPackage.CATEGORY__CATEGORY: >+ return ((InternalEList)getCategory()).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 TaxonomyPackage.CATEGORY__NLNAME: >+ return getNlname(); >+ case TaxonomyPackage.CATEGORY__CATEGORY: >+ return getCategory(); >+ case TaxonomyPackage.CATEGORY__CODE: >+ return getCode(); >+ case TaxonomyPackage.CATEGORY__NAME: >+ return getName(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.CATEGORY__NLNAME: >+ getNlname().clear(); >+ getNlname().addAll((Collection)newValue); >+ return; >+ case TaxonomyPackage.CATEGORY__CATEGORY: >+ getCategory().clear(); >+ getCategory().addAll((Collection)newValue); >+ return; >+ case TaxonomyPackage.CATEGORY__CODE: >+ setCode((String)newValue); >+ return; >+ case TaxonomyPackage.CATEGORY__NAME: >+ setName((String)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.CATEGORY__NLNAME: >+ getNlname().clear(); >+ return; >+ case TaxonomyPackage.CATEGORY__CATEGORY: >+ getCategory().clear(); >+ return; >+ case TaxonomyPackage.CATEGORY__CODE: >+ setCode(CODE_EDEFAULT); >+ return; >+ case TaxonomyPackage.CATEGORY__NAME: >+ setName(NAME_EDEFAULT); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.CATEGORY__NLNAME: >+ return nlname != null && !nlname.isEmpty(); >+ case TaxonomyPackage.CATEGORY__CATEGORY: >+ return category != null && !category.isEmpty(); >+ case TaxonomyPackage.CATEGORY__CODE: >+ return CODE_EDEFAULT == null ? code != null : !CODE_EDEFAULT.equals(code); >+ case TaxonomyPackage.CATEGORY__NAME: >+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); >+ } >+ 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(" (code: "); >+ result.append(code); >+ result.append(", name: "); >+ result.append(name); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //CategoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/DocumentRootImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/DocumentRootImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/DocumentRootImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/DocumentRootImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,367 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl; >+ >+import java.util.Collection; >+ >+import org.eclipse.emf.common.notify.NotificationChain; >+ >+import org.eclipse.emf.common.util.EMap; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EStructuralFeature; >+import org.eclipse.emf.ecore.EcorePackage; >+import org.eclipse.emf.ecore.InternalEObject; >+ >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; >+ >+import org.eclipse.emf.ecore.util.BasicFeatureMap; >+import org.eclipse.emf.ecore.util.EcoreEMap; >+import org.eclipse.emf.ecore.util.FeatureMap; >+import org.eclipse.emf.ecore.util.InternalEList; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Category; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Document Root</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getCategory <em>Category</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getName <em>Name</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getTaxonomy <em>Taxonomy</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot { >+ /** >+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getMixed() >+ * @generated >+ * @ordered >+ */ >+ protected FeatureMap mixed = null; >+ >+ /** >+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getXMLNSPrefixMap() >+ * @generated >+ * @ordered >+ */ >+ protected EMap xMLNSPrefixMap = null; >+ >+ /** >+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getXSISchemaLocation() >+ * @generated >+ * @ordered >+ */ >+ protected EMap xSISchemaLocation = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected DocumentRootImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return TaxonomyPackage.eINSTANCE.getDocumentRoot(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public FeatureMap getMixed() { >+ if (mixed == null) { >+ mixed = new BasicFeatureMap(this, TaxonomyPackage.DOCUMENT_ROOT__MIXED); >+ } >+ return mixed; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EMap getXMLNSPrefixMap() { >+ if (xMLNSPrefixMap == null) { >+ xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >+ } >+ return xMLNSPrefixMap; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EMap getXSISchemaLocation() { >+ if (xSISchemaLocation == null) { >+ xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >+ } >+ return xSISchemaLocation; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Category getCategory() { >+ return (Category)getMixed().get(TaxonomyPackage.eINSTANCE.getDocumentRoot_Category(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetCategory(Category newCategory, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(TaxonomyPackage.eINSTANCE.getDocumentRoot_Category(), newCategory, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setCategory(Category newCategory) { >+ ((FeatureMap.Internal)getMixed()).set(TaxonomyPackage.eINSTANCE.getDocumentRoot_Category(), newCategory); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Name getName() { >+ return (Name)getMixed().get(TaxonomyPackage.eINSTANCE.getDocumentRoot_Name(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetName(Name newName, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(TaxonomyPackage.eINSTANCE.getDocumentRoot_Name(), newName, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setName(Name newName) { >+ ((FeatureMap.Internal)getMixed()).set(TaxonomyPackage.eINSTANCE.getDocumentRoot_Name(), newName); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Taxonomy getTaxonomy() { >+ return (Taxonomy)getMixed().get(TaxonomyPackage.eINSTANCE.getDocumentRoot_Taxonomy(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetTaxonomy(Taxonomy newTaxonomy, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(TaxonomyPackage.eINSTANCE.getDocumentRoot_Taxonomy(), newTaxonomy, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setTaxonomy(Taxonomy newTaxonomy) { >+ ((FeatureMap.Internal)getMixed()).set(TaxonomyPackage.eINSTANCE.getDocumentRoot_Taxonomy(), newTaxonomy); >+ } >+ >+ /** >+ * <!-- 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 TaxonomyPackage.DOCUMENT_ROOT__MIXED: >+ return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); >+ case TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); >+ case TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); >+ case TaxonomyPackage.DOCUMENT_ROOT__CATEGORY: >+ return basicSetCategory(null, msgs); >+ case TaxonomyPackage.DOCUMENT_ROOT__NAME: >+ return basicSetName(null, msgs); >+ case TaxonomyPackage.DOCUMENT_ROOT__TAXONOMY: >+ return basicSetTaxonomy(null, 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 TaxonomyPackage.DOCUMENT_ROOT__MIXED: >+ return getMixed(); >+ case TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return getXMLNSPrefixMap(); >+ case TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return getXSISchemaLocation(); >+ case TaxonomyPackage.DOCUMENT_ROOT__CATEGORY: >+ return getCategory(); >+ case TaxonomyPackage.DOCUMENT_ROOT__NAME: >+ return getName(); >+ case TaxonomyPackage.DOCUMENT_ROOT__TAXONOMY: >+ return getTaxonomy(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.DOCUMENT_ROOT__MIXED: >+ getMixed().clear(); >+ getMixed().addAll((Collection)newValue); >+ return; >+ case TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ getXMLNSPrefixMap().clear(); >+ getXMLNSPrefixMap().addAll((Collection)newValue); >+ return; >+ case TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ getXSISchemaLocation().clear(); >+ getXSISchemaLocation().addAll((Collection)newValue); >+ return; >+ case TaxonomyPackage.DOCUMENT_ROOT__CATEGORY: >+ setCategory((Category)newValue); >+ return; >+ case TaxonomyPackage.DOCUMENT_ROOT__NAME: >+ setName((Name)newValue); >+ return; >+ case TaxonomyPackage.DOCUMENT_ROOT__TAXONOMY: >+ setTaxonomy((Taxonomy)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.DOCUMENT_ROOT__MIXED: >+ getMixed().clear(); >+ return; >+ case TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ getXMLNSPrefixMap().clear(); >+ return; >+ case TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ getXSISchemaLocation().clear(); >+ return; >+ case TaxonomyPackage.DOCUMENT_ROOT__CATEGORY: >+ setCategory((Category)null); >+ return; >+ case TaxonomyPackage.DOCUMENT_ROOT__NAME: >+ setName((Name)null); >+ return; >+ case TaxonomyPackage.DOCUMENT_ROOT__TAXONOMY: >+ setTaxonomy((Taxonomy)null); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.DOCUMENT_ROOT__MIXED: >+ return mixed != null && !mixed.isEmpty(); >+ case TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); >+ case TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); >+ case TaxonomyPackage.DOCUMENT_ROOT__CATEGORY: >+ return getCategory() != null; >+ case TaxonomyPackage.DOCUMENT_ROOT__NAME: >+ return getName() != null; >+ case TaxonomyPackage.DOCUMENT_ROOT__TAXONOMY: >+ return getTaxonomy() != 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(" (mixed: "); >+ result.append(mixed); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //DocumentRootImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/NameImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/NameImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/NameImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/NameImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,216 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl; >+ >+import org.eclipse.emf.common.notify.Notification; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EStructuralFeature; >+ >+import org.eclipse.emf.ecore.impl.ENotificationImpl; >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Name</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.NameImpl#getValue <em>Value</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.NameImpl#getLang <em>Lang</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class NameImpl extends EObjectImpl implements Name { >+ /** >+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getValue() >+ * @generated >+ * @ordered >+ */ >+ protected static final String VALUE_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getValue() >+ * @generated >+ * @ordered >+ */ >+ protected String value = VALUE_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getLang() <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLang() >+ * @generated >+ * @ordered >+ */ >+ protected static final String LANG_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLang() >+ * @generated >+ * @ordered >+ */ >+ protected String lang = LANG_EDEFAULT; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected NameImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return TaxonomyPackage.eINSTANCE.getName_(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getValue() { >+ return value; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setValue(String newValue) { >+ String oldValue = value; >+ value = newValue; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.NAME__VALUE, oldValue, value)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getLang() { >+ return lang; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setLang(String newLang) { >+ String oldLang = lang; >+ lang = newLang; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.NAME__LANG, oldLang, lang)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Object eGet(EStructuralFeature eFeature, boolean resolve) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.NAME__VALUE: >+ return getValue(); >+ case TaxonomyPackage.NAME__LANG: >+ return getLang(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.NAME__VALUE: >+ setValue((String)newValue); >+ return; >+ case TaxonomyPackage.NAME__LANG: >+ setLang((String)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.NAME__VALUE: >+ setValue(VALUE_EDEFAULT); >+ return; >+ case TaxonomyPackage.NAME__LANG: >+ setLang(LANG_EDEFAULT); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.NAME__VALUE: >+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); >+ case TaxonomyPackage.NAME__LANG: >+ return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang); >+ } >+ 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(" (value: "); >+ result.append(value); >+ result.append(", lang: "); >+ result.append(lang); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //NameImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyFactoryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyFactoryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyFactoryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,108 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.emf.ecore.impl.EFactoryImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.*; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model <b>Factory</b>. >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+public class TaxonomyFactoryImpl extends EFactoryImpl implements TaxonomyFactory { >+ /** >+ * Creates and instance of the factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public TaxonomyFactoryImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EObject create(EClass eClass) { >+ switch (eClass.getClassifierID()) { >+ case TaxonomyPackage.CATEGORY: return createCategory(); >+ case TaxonomyPackage.DOCUMENT_ROOT: return createDocumentRoot(); >+ case TaxonomyPackage.NAME: return createName(); >+ case TaxonomyPackage.TAXONOMY: return createTaxonomy(); >+ default: >+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); >+ } >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Category createCategory() { >+ CategoryImpl category = new CategoryImpl(); >+ return category; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public DocumentRoot createDocumentRoot() { >+ DocumentRootImpl documentRoot = new DocumentRootImpl(); >+ return documentRoot; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Name createName() { >+ NameImpl name = new NameImpl(); >+ return name; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Taxonomy createTaxonomy() { >+ TaxonomyImpl taxonomy = new TaxonomyImpl(); >+ return taxonomy; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public TaxonomyPackage getTaxonomyPackage() { >+ return (TaxonomyPackage)getEPackage(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @deprecated >+ * @generated >+ */ >+ public static TaxonomyPackage getPackage() { >+ return TaxonomyPackage.eINSTANCE; >+ } >+ >+} //TaxonomyFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,422 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl; >+ >+import java.util.Collection; >+ >+import org.eclipse.emf.common.notify.Notification; >+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.impl.ENotificationImpl; >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+ >+import org.eclipse.emf.ecore.util.EObjectContainmentEList; >+import org.eclipse.emf.ecore.util.InternalEList; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Category; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Taxonomy</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getNlname <em>Nlname</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getCategory <em>Category</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getId <em>Id</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getLocation <em>Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getName <em>Name</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getRef <em>Ref</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class TaxonomyImpl extends EObjectImpl implements Taxonomy { >+ /** >+ * The cached value of the '{@link #getNlname() <em>Nlname</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getNlname() >+ * @generated >+ * @ordered >+ */ >+ protected EList nlname = null; >+ >+ /** >+ * The cached value of the '{@link #getCategory() <em>Category</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getCategory() >+ * @generated >+ * @ordered >+ */ >+ protected EList category = null; >+ >+ /** >+ * The default value of the '{@link #getId() <em>Id</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getId() >+ * @generated >+ * @ordered >+ */ >+ protected static final String ID_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getId() >+ * @generated >+ * @ordered >+ */ >+ protected String id = ID_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getLocation() <em>Location</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLocation() >+ * @generated >+ * @ordered >+ */ >+ protected static final String LOCATION_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getLocation() <em>Location</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getLocation() >+ * @generated >+ * @ordered >+ */ >+ protected String location = LOCATION_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getName() >+ * @generated >+ * @ordered >+ */ >+ protected static final String NAME_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getName() >+ * @generated >+ * @ordered >+ */ >+ protected String name = NAME_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getRef() <em>Ref</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getRef() >+ * @generated >+ * @ordered >+ */ >+ protected static final String REF_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getRef() <em>Ref</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getRef() >+ * @generated >+ * @ordered >+ */ >+ protected String ref = REF_EDEFAULT; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected TaxonomyImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return TaxonomyPackage.eINSTANCE.getTaxonomy(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getNlname() { >+ if (nlname == null) { >+ nlname = new EObjectContainmentEList(Name.class, this, TaxonomyPackage.TAXONOMY__NLNAME); >+ } >+ return nlname; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getCategory() { >+ if (category == null) { >+ category = new EObjectContainmentEList(Category.class, this, TaxonomyPackage.TAXONOMY__CATEGORY); >+ } >+ return category; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getId() { >+ return id; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setId(String newId) { >+ String oldId = id; >+ id = newId; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.TAXONOMY__ID, oldId, id)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getLocation() { >+ return location; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setLocation(String newLocation) { >+ String oldLocation = location; >+ location = newLocation; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.TAXONOMY__LOCATION, oldLocation, location)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getName() { >+ return name; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setName(String newName) { >+ String oldName = name; >+ name = newName; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.TAXONOMY__NAME, oldName, name)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getRef() { >+ return ref; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setRef(String newRef) { >+ String oldRef = ref; >+ ref = newRef; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.TAXONOMY__REF, oldRef, ref)); >+ } >+ >+ /** >+ * <!-- 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 TaxonomyPackage.TAXONOMY__NLNAME: >+ return ((InternalEList)getNlname()).basicRemove(otherEnd, msgs); >+ case TaxonomyPackage.TAXONOMY__CATEGORY: >+ return ((InternalEList)getCategory()).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 TaxonomyPackage.TAXONOMY__NLNAME: >+ return getNlname(); >+ case TaxonomyPackage.TAXONOMY__CATEGORY: >+ return getCategory(); >+ case TaxonomyPackage.TAXONOMY__ID: >+ return getId(); >+ case TaxonomyPackage.TAXONOMY__LOCATION: >+ return getLocation(); >+ case TaxonomyPackage.TAXONOMY__NAME: >+ return getName(); >+ case TaxonomyPackage.TAXONOMY__REF: >+ return getRef(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.TAXONOMY__NLNAME: >+ getNlname().clear(); >+ getNlname().addAll((Collection)newValue); >+ return; >+ case TaxonomyPackage.TAXONOMY__CATEGORY: >+ getCategory().clear(); >+ getCategory().addAll((Collection)newValue); >+ return; >+ case TaxonomyPackage.TAXONOMY__ID: >+ setId((String)newValue); >+ return; >+ case TaxonomyPackage.TAXONOMY__LOCATION: >+ setLocation((String)newValue); >+ return; >+ case TaxonomyPackage.TAXONOMY__NAME: >+ setName((String)newValue); >+ return; >+ case TaxonomyPackage.TAXONOMY__REF: >+ setRef((String)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.TAXONOMY__NLNAME: >+ getNlname().clear(); >+ return; >+ case TaxonomyPackage.TAXONOMY__CATEGORY: >+ getCategory().clear(); >+ return; >+ case TaxonomyPackage.TAXONOMY__ID: >+ setId(ID_EDEFAULT); >+ return; >+ case TaxonomyPackage.TAXONOMY__LOCATION: >+ setLocation(LOCATION_EDEFAULT); >+ return; >+ case TaxonomyPackage.TAXONOMY__NAME: >+ setName(NAME_EDEFAULT); >+ return; >+ case TaxonomyPackage.TAXONOMY__REF: >+ setRef(REF_EDEFAULT); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case TaxonomyPackage.TAXONOMY__NLNAME: >+ return nlname != null && !nlname.isEmpty(); >+ case TaxonomyPackage.TAXONOMY__CATEGORY: >+ return category != null && !category.isEmpty(); >+ case TaxonomyPackage.TAXONOMY__ID: >+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); >+ case TaxonomyPackage.TAXONOMY__LOCATION: >+ return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); >+ case TaxonomyPackage.TAXONOMY__NAME: >+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); >+ case TaxonomyPackage.TAXONOMY__REF: >+ return REF_EDEFAULT == null ? ref != null : !REF_EDEFAULT.equals(ref); >+ } >+ 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(" (id: "); >+ result.append(id); >+ result.append(", location: "); >+ result.append(location); >+ result.append(", name: "); >+ result.append(name); >+ result.append(", ref: "); >+ result.append(ref); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //TaxonomyImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyPackageImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyPackageImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyPackageImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyPackageImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,640 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl; >+ >+import org.eclipse.emf.ecore.EAttribute; >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EPackage; >+import org.eclipse.emf.ecore.EReference; >+ >+import org.eclipse.emf.ecore.impl.EPackageImpl; >+ >+import org.eclipse.emf.ecore.xml.type.XMLTypePackage; >+ >+import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Category; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyFactory; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model <b>Package</b>. >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+public class TaxonomyPackageImpl extends EPackageImpl implements TaxonomyPackage { >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass categoryEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass documentRootEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass nameEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass taxonomyEClass = 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.ws.internal.model.v10.taxonomy.TaxonomyPackage#eNS_URI >+ * @see #init() >+ * @generated >+ */ >+ private TaxonomyPackageImpl() { >+ super(eNS_URI, TaxonomyFactory.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 TaxonomyPackage init() { >+ if (isInited) return (TaxonomyPackage)EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI); >+ >+ // Obtain or create and register package >+ TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof TaxonomyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new TaxonomyPackageImpl()); >+ >+ isInited = true; >+ >+ // Initialize simple dependencies >+ XMLTypePackageImpl.init(); >+ >+ // Obtain or create and register interdependencies >+ RTIndexPackageImpl theRTIndexPackage = (RTIndexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) instanceof RTIndexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) : RTIndexPackageImpl.eINSTANCE); >+ RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) instanceof RegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) : RegistryPackageImpl.eINSTANCE); >+ UDDIRegistryPackageImpl theUDDIRegistryPackage = (UDDIRegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) instanceof UDDIRegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) : UDDIRegistryPackageImpl.eINSTANCE); >+ >+ // Create package meta-data objects >+ theTaxonomyPackage.createPackageContents(); >+ theRTIndexPackage.createPackageContents(); >+ theRegistryPackage.createPackageContents(); >+ theUDDIRegistryPackage.createPackageContents(); >+ >+ // Initialize created meta-data >+ theTaxonomyPackage.initializePackageContents(); >+ theRTIndexPackage.initializePackageContents(); >+ theRegistryPackage.initializePackageContents(); >+ theUDDIRegistryPackage.initializePackageContents(); >+ >+ // Mark meta-data to indicate it can't be changed >+ theTaxonomyPackage.freeze(); >+ >+ return theTaxonomyPackage; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getCategory() { >+ return categoryEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getCategory_Nlname() { >+ return (EReference)categoryEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getCategory_Category() { >+ return (EReference)categoryEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getCategory_Code() { >+ return (EAttribute)categoryEClass.getEStructuralFeatures().get(2); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getCategory_Name() { >+ return (EAttribute)categoryEClass.getEStructuralFeatures().get(3); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getDocumentRoot() { >+ return documentRootEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getDocumentRoot_Mixed() { >+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_XMLNSPrefixMap() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_XSISchemaLocation() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_Category() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_Name() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(4); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_Taxonomy() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(5); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getName_() { >+ return nameEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getName_Value() { >+ return (EAttribute)nameEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getName_Lang() { >+ return (EAttribute)nameEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getTaxonomy() { >+ return taxonomyEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getTaxonomy_Nlname() { >+ return (EReference)taxonomyEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getTaxonomy_Category() { >+ return (EReference)taxonomyEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getTaxonomy_Id() { >+ return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(2); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getTaxonomy_Location() { >+ return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(3); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getTaxonomy_Name() { >+ return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(4); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getTaxonomy_Ref() { >+ return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(5); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public TaxonomyFactory getTaxonomyFactory() { >+ return (TaxonomyFactory)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 >+ categoryEClass = createEClass(CATEGORY); >+ createEReference(categoryEClass, CATEGORY__NLNAME); >+ createEReference(categoryEClass, CATEGORY__CATEGORY); >+ createEAttribute(categoryEClass, CATEGORY__CODE); >+ createEAttribute(categoryEClass, CATEGORY__NAME); >+ >+ documentRootEClass = createEClass(DOCUMENT_ROOT); >+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__CATEGORY); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__NAME); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__TAXONOMY); >+ >+ nameEClass = createEClass(NAME); >+ createEAttribute(nameEClass, NAME__VALUE); >+ createEAttribute(nameEClass, NAME__LANG); >+ >+ taxonomyEClass = createEClass(TAXONOMY); >+ createEReference(taxonomyEClass, TAXONOMY__NLNAME); >+ createEReference(taxonomyEClass, TAXONOMY__CATEGORY); >+ createEAttribute(taxonomyEClass, TAXONOMY__ID); >+ createEAttribute(taxonomyEClass, TAXONOMY__LOCATION); >+ createEAttribute(taxonomyEClass, TAXONOMY__NAME); >+ createEAttribute(taxonomyEClass, TAXONOMY__REF); >+ } >+ >+ /** >+ * <!-- 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 >+ XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); >+ >+ // Add supertypes to classes >+ >+ // Initialize classes and features; add operations and parameters >+ initEClass(categoryEClass, Category.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEReference(getCategory_Nlname(), this.getName_(), null, "nlname", null, 0, -1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getCategory_Category(), this.getCategory(), null, "category", null, 0, -1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getCategory_Code(), theXMLTypePackage.getString(), "code", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getCategory_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_Category(), this.getCategory(), null, "category", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_Name(), this.getName_(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_Taxonomy(), this.getTaxonomy(), null, "taxonomy", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ >+ initEClass(nameEClass, Name.class, "Name", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEAttribute(getName_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getName_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ initEClass(taxonomyEClass, Taxonomy.class, "Taxonomy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEReference(getTaxonomy_Nlname(), this.getName_(), null, "nlname", null, 0, -1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getTaxonomy_Category(), this.getCategory(), null, "category", null, 0, -1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getTaxonomy_Id(), theXMLTypePackage.getAnyURI(), "id", null, 1, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getTaxonomy_Location(), theXMLTypePackage.getAnyURI(), "location", null, 0, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getTaxonomy_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getTaxonomy_Ref(), theXMLTypePackage.getAnyURI(), "ref", null, 0, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ // Create resource >+ createResource(eNS_URI); >+ >+ // Create annotations >+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData >+ createExtendedMetaDataAnnotations(); >+ } >+ >+ /** >+ * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected void createExtendedMetaDataAnnotations() { >+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; >+ addAnnotation >+ (categoryEClass, >+ source, >+ new String[] { >+ "name", "Category", >+ "kind", "elementOnly" >+ }); >+ addAnnotation >+ (getCategory_Nlname(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "nlname" >+ }); >+ addAnnotation >+ (getCategory_Category(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "category" >+ }); >+ addAnnotation >+ (getCategory_Code(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "code" >+ }); >+ addAnnotation >+ (getCategory_Name(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "name" >+ }); >+ addAnnotation >+ (documentRootEClass, >+ source, >+ new String[] { >+ "name", "", >+ "kind", "mixed" >+ }); >+ addAnnotation >+ (getDocumentRoot_Mixed(), >+ source, >+ new String[] { >+ "kind", "elementWildcard", >+ "name", ":mixed" >+ }); >+ addAnnotation >+ (getDocumentRoot_XMLNSPrefixMap(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "xmlns:prefix" >+ }); >+ addAnnotation >+ (getDocumentRoot_XSISchemaLocation(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "xsi:schemaLocation" >+ }); >+ addAnnotation >+ (getDocumentRoot_Category(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "category", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (getDocumentRoot_Name(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "name", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (getDocumentRoot_Taxonomy(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "taxonomy", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (nameEClass, >+ source, >+ new String[] { >+ "name", "Name", >+ "kind", "simple" >+ }); >+ addAnnotation >+ (getName_Value(), >+ source, >+ new String[] { >+ "name", ":0", >+ "kind", "simple" >+ }); >+ addAnnotation >+ (getName_Lang(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "lang", >+ "namespace", "http://www.w3.org/XML/1998/namespace" >+ }); >+ addAnnotation >+ (taxonomyEClass, >+ source, >+ new String[] { >+ "name", "Taxonomy", >+ "kind", "elementOnly" >+ }); >+ addAnnotation >+ (getTaxonomy_Nlname(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "nlname" >+ }); >+ addAnnotation >+ (getTaxonomy_Category(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "category" >+ }); >+ addAnnotation >+ (getTaxonomy_Id(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "id" >+ }); >+ addAnnotation >+ (getTaxonomy_Location(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "location" >+ }); >+ addAnnotation >+ (getTaxonomy_Name(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "name" >+ }); >+ addAnnotation >+ (getTaxonomy_Ref(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "ref" >+ }); >+ } >+ >+} //TaxonomyPackageImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyAdapterFactory.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyAdapterFactory.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyAdapterFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyAdapterFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,171 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy.util; >+ >+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.ws.internal.model.v10.taxonomy.*; >+ >+/** >+ * <!-- 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.ws.internal.model.v10.taxonomy.TaxonomyPackage >+ * @generated >+ */ >+public class TaxonomyAdapterFactory extends AdapterFactoryImpl { >+ /** >+ * The cached model package. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected static TaxonomyPackage modelPackage; >+ >+ /** >+ * Creates an instance of the adapter factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public TaxonomyAdapterFactory() { >+ if (modelPackage == null) { >+ modelPackage = TaxonomyPackage.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 TaxonomySwitch modelSwitch = >+ new TaxonomySwitch() { >+ public Object caseCategory(Category object) { >+ return createCategoryAdapter(); >+ } >+ public Object caseDocumentRoot(DocumentRoot object) { >+ return createDocumentRootAdapter(); >+ } >+ public Object caseName(Name object) { >+ return createNameAdapter(); >+ } >+ public Object caseTaxonomy(Taxonomy object) { >+ return createTaxonomyAdapter(); >+ } >+ 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.ws.internal.model.v10.taxonomy.Category <em>Category</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.ws.internal.model.v10.taxonomy.Category >+ * @generated >+ */ >+ public Adapter createCategoryAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot <em>Document Root</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.ws.internal.model.v10.taxonomy.DocumentRoot >+ * @generated >+ */ >+ public Adapter createDocumentRootAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name <em>Name</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.ws.internal.model.v10.taxonomy.Name >+ * @generated >+ */ >+ public Adapter createNameAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy <em>Taxonomy</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.ws.internal.model.v10.taxonomy.Taxonomy >+ * @generated >+ */ >+ public Adapter createTaxonomyAdapter() { >+ 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; >+ } >+ >+} //TaxonomyAdapterFactory >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceFactoryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceFactoryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceFactoryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,63 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy.util; >+ >+import org.eclipse.emf.common.util.URI; >+ >+import org.eclipse.emf.ecore.resource.Resource; >+ >+import org.eclipse.emf.ecore.util.ExtendedMetaData; >+ >+import org.eclipse.emf.ecore.xmi.XMLResource; >+ >+import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Resource Factory</b> associated with the package. >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.util.TaxonomyResourceImpl >+ * @generated >+ */ >+public class TaxonomyResourceFactoryImpl extends XMLResourceFactoryImpl { >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected ExtendedMetaData extendedMetaData; >+ >+ /** >+ * Creates an instance of the resource factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public TaxonomyResourceFactoryImpl() { >+ super(); >+ extendedMetaData = ExtendedMetaData.INSTANCE; >+ } >+ >+ /** >+ * Creates an instance of the resource. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Resource createResource(URI uri) { >+ XMLResource result = new TaxonomyResourceImpl(uri); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); >+ result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); >+ >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >+ >+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); >+ return result; >+ } >+ >+} //TaxonomyResourceFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,32 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy.util; >+ >+import org.eclipse.emf.common.util.URI; >+ >+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Resource </b> associated with the package. >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.util.TaxonomyResourceFactoryImpl >+ * @generated >+ */ >+public class TaxonomyResourceImpl extends XMLResourceImpl { >+ /** >+ * Creates an instance of the resource. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param uri the URI of the new resource. >+ * @generated >+ */ >+ public TaxonomyResourceImpl(URI uri) { >+ super(uri); >+ } >+ >+} //TaxonomyResourceFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomySwitch.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomySwitch.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomySwitch.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomySwitch.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,193 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.taxonomy.util; >+ >+import java.util.List; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.*; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Switch</b> for the model's inheritance hierarchy. >+ * It supports the call {@link #doSwitch(EObject) 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.ws.internal.model.v10.taxonomy.TaxonomyPackage >+ * @generated >+ */ >+public class TaxonomySwitch { >+ /** >+ * The cached model package >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected static TaxonomyPackage modelPackage; >+ >+ /** >+ * Creates an instance of the switch. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public TaxonomySwitch() { >+ if (modelPackage == null) { >+ modelPackage = TaxonomyPackage.eINSTANCE; >+ } >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ public Object doSwitch(EObject theEObject) { >+ return doSwitch(theEObject.eClass(), theEObject); >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ protected Object doSwitch(EClass theEClass, EObject theEObject) { >+ if (theEClass.eContainer() == modelPackage) { >+ return doSwitch(theEClass.getClassifierID(), theEObject); >+ } >+ else { >+ List eSuperTypes = theEClass.getESuperTypes(); >+ return >+ eSuperTypes.isEmpty() ? >+ defaultCase(theEObject) : >+ doSwitch((EClass)eSuperTypes.get(0), theEObject); >+ } >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ protected Object doSwitch(int classifierID, EObject theEObject) { >+ switch (classifierID) { >+ case TaxonomyPackage.CATEGORY: { >+ Category category = (Category)theEObject; >+ Object result = caseCategory(category); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case TaxonomyPackage.DOCUMENT_ROOT: { >+ DocumentRoot documentRoot = (DocumentRoot)theEObject; >+ Object result = caseDocumentRoot(documentRoot); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case TaxonomyPackage.NAME: { >+ Name name = (Name)theEObject; >+ Object result = caseName(name); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case TaxonomyPackage.TAXONOMY: { >+ Taxonomy taxonomy = (Taxonomy)theEObject; >+ Object result = caseTaxonomy(taxonomy); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ default: return defaultCase(theEObject); >+ } >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Category</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>Category</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseCategory(Category object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Document Root</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>Document Root</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseDocumentRoot(DocumentRoot object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Name</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>Name</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseName(Name object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Taxonomy</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>Taxonomy</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseTaxonomy(Taxonomy 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; >+ } >+ >+} //TaxonomySwitch >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/DocumentRoot.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/DocumentRoot.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/DocumentRoot.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/DocumentRoot.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,138 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry; >+ >+import org.eclipse.emf.common.util.EMap; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.emf.ecore.util.FeatureMap; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Document Root</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getMixed <em>Mixed</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getTaxonomies <em>Taxonomies</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getUddiRegistry <em>Uddi Registry</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot() >+ * @model >+ * @generated >+ */ >+public interface DocumentRoot extends EObject { >+ /** >+ * Returns the value of the '<em><b>Mixed</b></em>' attribute list. >+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Mixed</em>' attribute list. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot_Mixed() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" >+ * @generated >+ */ >+ FeatureMap getMixed(); >+ >+ /** >+ * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. >+ * The key is of type {@link java.lang.String}, >+ * and the value is of type {@link java.lang.String}, >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>XMLNS Prefix Map</em>' map. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot_XMLNSPrefixMap() >+ * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" >+ * @generated >+ */ >+ EMap getXMLNSPrefixMap(); >+ >+ /** >+ * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. >+ * The key is of type {@link java.lang.String}, >+ * and the value is of type {@link java.lang.String}, >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>XSI Schema Location</em>' map. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot_XSISchemaLocation() >+ * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true" >+ * @generated >+ */ >+ EMap getXSISchemaLocation(); >+ >+ /** >+ * Returns the value of the '<em><b>Taxonomies</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Taxonomies</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Taxonomies</em>' containment reference. >+ * @see #setTaxonomies(Taxonomies) >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot_Taxonomies() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ Taxonomies getTaxonomies(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getTaxonomies <em>Taxonomies</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Taxonomies</em>' containment reference. >+ * @see #getTaxonomies() >+ * @generated >+ */ >+ void setTaxonomies(Taxonomies value); >+ >+ /** >+ * Returns the value of the '<em><b>Uddi Registry</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Uddi Registry</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Uddi Registry</em>' containment reference. >+ * @see #setUddiRegistry(UDDIRegistry) >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot_UddiRegistry() >+ * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true" >+ * @generated >+ */ >+ UDDIRegistry getUddiRegistry(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getUddiRegistry <em>Uddi Registry</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Uddi Registry</em>' containment reference. >+ * @see #getUddiRegistry() >+ * @generated >+ */ >+ void setUddiRegistry(UDDIRegistry value); >+ >+} // DocumentRoot >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/Taxonomies.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/Taxonomies.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/Taxonomies.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/Taxonomies.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,46 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry; >+ >+import org.eclipse.emf.common.util.EList; >+ >+import org.eclipse.emf.ecore.EObject; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>Taxonomies</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies#getTaxonomy <em>Taxonomy</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getTaxonomies() >+ * @model >+ * @generated >+ */ >+public interface Taxonomies extends EObject { >+ /** >+ * Returns the value of the '<em><b>Taxonomy</b></em>' containment reference list. >+ * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy}. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Taxonomy</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>Taxonomy</em>' containment reference list. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getTaxonomies_Taxonomy() >+ * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy" containment="true" resolveProxies="false" >+ * @generated >+ */ >+ EList getTaxonomy(); >+ >+} // Taxonomies >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistry.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistry.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistry.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistry.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,243 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+ >+/** >+ * <!-- begin-user-doc --> >+ * A representation of the model object '<em><b>UDDIRegistry</b></em>'. >+ * <!-- end-user-doc --> >+ * >+ * <p> >+ * The following features are supported: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getVersion <em>Version</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDiscoveryURL <em>Discovery URL</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getPublicationURL <em>Publication URL</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredDiscoveryURL <em>Secured Discovery URL</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredPublicationURL <em>Secured Publication URL</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultLogin <em>Default Login</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultPassword <em>Default Password</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getTaxonomies <em>Taxonomies</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry() >+ * @model >+ * @generated >+ */ >+public interface UDDIRegistry extends Registry { >+ /** >+ * Returns the value of the '<em><b>Version</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Version</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Version</em>' attribute. >+ * @see #setVersion(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_Version() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >+ * @generated >+ */ >+ String getVersion(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getVersion <em>Version</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Version</em>' attribute. >+ * @see #getVersion() >+ * @generated >+ */ >+ void setVersion(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Discovery URL</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Discovery URL</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Discovery URL</em>' attribute. >+ * @see #setDiscoveryURL(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_DiscoveryURL() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" >+ * @generated >+ */ >+ String getDiscoveryURL(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDiscoveryURL <em>Discovery URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Discovery URL</em>' attribute. >+ * @see #getDiscoveryURL() >+ * @generated >+ */ >+ void setDiscoveryURL(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Publication URL</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Publication URL</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Publication URL</em>' attribute. >+ * @see #setPublicationURL(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_PublicationURL() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" >+ * @generated >+ */ >+ String getPublicationURL(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getPublicationURL <em>Publication URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Publication URL</em>' attribute. >+ * @see #getPublicationURL() >+ * @generated >+ */ >+ void setPublicationURL(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Secured Discovery URL</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Secured Discovery URL</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Secured Discovery URL</em>' attribute. >+ * @see #setSecuredDiscoveryURL(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_SecuredDiscoveryURL() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" >+ * @generated >+ */ >+ String getSecuredDiscoveryURL(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredDiscoveryURL <em>Secured Discovery URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Secured Discovery URL</em>' attribute. >+ * @see #getSecuredDiscoveryURL() >+ * @generated >+ */ >+ void setSecuredDiscoveryURL(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Secured Publication URL</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Secured Publication URL</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Secured Publication URL</em>' attribute. >+ * @see #setSecuredPublicationURL(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_SecuredPublicationURL() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" >+ * @generated >+ */ >+ String getSecuredPublicationURL(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredPublicationURL <em>Secured Publication URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Secured Publication URL</em>' attribute. >+ * @see #getSecuredPublicationURL() >+ * @generated >+ */ >+ void setSecuredPublicationURL(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Default Login</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Default Login</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Default Login</em>' attribute. >+ * @see #setDefaultLogin(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_DefaultLogin() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >+ * @generated >+ */ >+ String getDefaultLogin(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultLogin <em>Default Login</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Default Login</em>' attribute. >+ * @see #getDefaultLogin() >+ * @generated >+ */ >+ void setDefaultLogin(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Default Password</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Default Password</em>' attribute isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Default Password</em>' attribute. >+ * @see #setDefaultPassword(String) >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_DefaultPassword() >+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >+ * @generated >+ */ >+ String getDefaultPassword(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultPassword <em>Default Password</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Default Password</em>' attribute. >+ * @see #getDefaultPassword() >+ * @generated >+ */ >+ void setDefaultPassword(String value); >+ >+ /** >+ * Returns the value of the '<em><b>Taxonomies</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <p> >+ * If the meaning of the '<em>Taxonomies</em>' containment reference isn't clear, >+ * there really should be more of a description here... >+ * </p> >+ * <!-- end-user-doc --> >+ * @return the value of the '<em>Taxonomies</em>' containment reference. >+ * @see #setTaxonomies(Taxonomies) >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_Taxonomies() >+ * @model containment="true" resolveProxies="false" >+ * @generated >+ */ >+ Taxonomies getTaxonomies(); >+ >+ /** >+ * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getTaxonomies <em>Taxonomies</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param value the new value of the '<em>Taxonomies</em>' containment reference. >+ * @see #getTaxonomies() >+ * @generated >+ */ >+ void setTaxonomies(Taxonomies value); >+ >+} // UDDIRegistry >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryFactory.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryFactory.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,64 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry; >+ >+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.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage >+ * @generated >+ */ >+public interface UDDIRegistryFactory extends EFactory { >+ /** >+ * The singleton instance of the factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ UDDIRegistryFactory eINSTANCE = new org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryFactoryImpl(); >+ >+ /** >+ * Returns a new object of class '<em>Document Root</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Document Root</em>'. >+ * @generated >+ */ >+ DocumentRoot createDocumentRoot(); >+ >+ /** >+ * Returns a new object of class '<em>Taxonomies</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>Taxonomies</em>'. >+ * @generated >+ */ >+ Taxonomies createTaxonomies(); >+ >+ /** >+ * Returns a new object of class '<em>UDDIRegistry</em>'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return a new object of class '<em>UDDIRegistry</em>'. >+ * @generated >+ */ >+ UDDIRegistry createUDDIRegistry(); >+ >+ /** >+ * Returns the package supported by this factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the package supported by this factory. >+ * @generated >+ */ >+ UDDIRegistryPackage getUDDIRegistryPackage(); >+ >+} //UDDIRegistryFactory >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryPackage.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryPackage.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryPackage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryPackage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,568 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry; >+ >+import org.eclipse.emf.ecore.EAttribute; >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EPackage; >+import org.eclipse.emf.ecore.EReference; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; >+ >+/** >+ * <!-- 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 --> >+ * <!-- begin-model-doc --> >+ * >+ * See http://www.w3.org/XML/1998/namespace.html and >+ * http://www.w3.org/TR/REC-xml for information about this namespace. >+ * >+ * This schema document describes the XML namespace, in a form >+ * suitable for import by other schema documents. >+ * >+ * Note that local names in this namespace are intended to be defined >+ * only by the World Wide Web Consortium or its subgroups. The >+ * following names are currently defined in this namespace and should >+ * not be used with conflicting semantics by any Working Group, >+ * specification, or document instance: >+ * >+ * base (as an attribute name): denotes an attribute whose value >+ * provides a URI to be used as the base for interpreting any >+ * relative URIs in the scope of the element on which it >+ * appears; its value is inherited. This name is reserved >+ * by virtue of its definition in the XML Base specification. >+ * >+ * id (as an attribute name): denotes an attribute whose value >+ * should be interpreted as if declared to be of type ID. >+ * The xml:id specification is not yet a W3C Recommendation, >+ * but this attribute is included here to facilitate experimentation >+ * with the mechanisms it proposes. Note that it is _not_ included >+ * in the specialAttrs attribute group. >+ * >+ * lang (as an attribute name): denotes an attribute whose value >+ * is a language code for the natural language of the content of >+ * any element; its value is inherited. This name is reserved >+ * by virtue of its definition in the XML specification. >+ * >+ * space (as an attribute name): denotes an attribute whose >+ * value is a keyword indicating what whitespace processing >+ * discipline is intended for the content of the element; its >+ * value is inherited. This name is reserved by virtue of its >+ * definition in the XML specification. >+ * >+ * Father (in any context at all): denotes Jon Bosak, the chair of >+ * the original XML Working Group. This name is reserved by >+ * the following decision of the W3C XML Plenary and >+ * XML Coordination groups: >+ * >+ * In appreciation for his vision, leadership and dedication >+ * the W3C XML Plenary on this 10th day of February, 2000 >+ * reserves for Jon Bosak in perpetuity the XML name >+ * xml:Father >+ * >+ * This schema defines attributes and an attribute group >+ * suitable for use by >+ * schemas wishing to allow xml:base, xml:lang, xml:space or xml:id >+ * attributes on elements they define. >+ * >+ * To enable this, such a schema must import this schema >+ * for the XML namespace, e.g. as follows: >+ * <schema . . .> >+ * . . . >+ * <import namespace="http://www.w3.org/XML/1998/namespace" >+ * schemaLocation="http://www.w3.org/2001/xml.xsd"/> >+ * >+ * Subsequently, qualified reference to any of the attributes >+ * or the group defined below will have the desired effect, e.g. >+ * >+ * <type . . .> >+ * . . . >+ * <attributeGroup ref="xml:specialAttrs"/> >+ * >+ * will define a type which will schema-validate an instance >+ * element with any of those attributes >+ * In keeping with the XML Schema WG's standard versioning >+ * policy, this schema document will persist at >+ * http://www.w3.org/2005/08/xml.xsd. >+ * At the date of issue it can also be found at >+ * http://www.w3.org/2001/xml.xsd. >+ * The schema document at that URI may however change in the future, >+ * in order to remain compatible with the latest version of XML Schema >+ * itself, or with the XML namespace itself. In other words, if the XML >+ * Schema or XML namespaces change, the version of this document at >+ * http://www.w3.org/2001/xml.xsd will change >+ * accordingly; the version at >+ * http://www.w3.org/2005/08/xml.xsd will not change. >+ * >+ * <!-- end-model-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryFactory >+ * @generated >+ */ >+public interface UDDIRegistryPackage extends EPackage { >+ /** >+ * The package name. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNAME = "uddiregistry"; >+ >+ /** >+ * The package namespace URI. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNS_URI = "http://eclipse.org/wst/ws/internal/model/v10/uddiregistry"; >+ >+ /** >+ * The package namespace name. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ String eNS_PREFIX = "uddiregistry"; >+ >+ /** >+ * The singleton instance of the package. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ UDDIRegistryPackage eINSTANCE = org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl.init(); >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl <em>Document Root</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl#getDocumentRoot() >+ * @generated >+ */ >+ int DOCUMENT_ROOT = 0; >+ >+ /** >+ * The feature id for the '<em><b>Mixed</b></em>' attribute list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__MIXED = 0; >+ >+ /** >+ * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; >+ >+ /** >+ * The feature id for the '<em><b>XSI Schema Location</b></em>' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; >+ >+ /** >+ * The feature id for the '<em><b>Taxonomies</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__TAXONOMIES = 3; >+ >+ /** >+ * The feature id for the '<em><b>Uddi Registry</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT__UDDI_REGISTRY = 4; >+ >+ /** >+ * The number of structural features of the the '<em>Document Root</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int DOCUMENT_ROOT_FEATURE_COUNT = 5; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.TaxonomiesImpl <em>Taxonomies</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.TaxonomiesImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl#getTaxonomies() >+ * @generated >+ */ >+ int TAXONOMIES = 1; >+ >+ /** >+ * The feature id for the '<em><b>Taxonomy</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int TAXONOMIES__TAXONOMY = 0; >+ >+ /** >+ * The number of structural features of the the '<em>Taxonomies</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int TAXONOMIES_FEATURE_COUNT = 1; >+ >+ /** >+ * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl <em>UDDIRegistry</em>}' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl#getUDDIRegistry() >+ * @generated >+ */ >+ int UDDI_REGISTRY = 2; >+ >+ /** >+ * The feature id for the '<em><b>Name</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__NAME = RegistryPackage.REGISTRY__NAME; >+ >+ /** >+ * The feature id for the '<em><b>Description</b></em>' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__DESCRIPTION = RegistryPackage.REGISTRY__DESCRIPTION; >+ >+ /** >+ * The feature id for the '<em><b>Id</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__ID = RegistryPackage.REGISTRY__ID; >+ >+ /** >+ * The feature id for the '<em><b>Location</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__LOCATION = RegistryPackage.REGISTRY__LOCATION; >+ >+ /** >+ * The feature id for the '<em><b>Ref</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__REF = RegistryPackage.REGISTRY__REF; >+ >+ /** >+ * The feature id for the '<em><b>Version</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__VERSION = RegistryPackage.REGISTRY_FEATURE_COUNT + 0; >+ >+ /** >+ * The feature id for the '<em><b>Discovery URL</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__DISCOVERY_URL = RegistryPackage.REGISTRY_FEATURE_COUNT + 1; >+ >+ /** >+ * The feature id for the '<em><b>Publication URL</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__PUBLICATION_URL = RegistryPackage.REGISTRY_FEATURE_COUNT + 2; >+ >+ /** >+ * The feature id for the '<em><b>Secured Discovery URL</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__SECURED_DISCOVERY_URL = RegistryPackage.REGISTRY_FEATURE_COUNT + 3; >+ >+ /** >+ * The feature id for the '<em><b>Secured Publication URL</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__SECURED_PUBLICATION_URL = RegistryPackage.REGISTRY_FEATURE_COUNT + 4; >+ >+ /** >+ * The feature id for the '<em><b>Default Login</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__DEFAULT_LOGIN = RegistryPackage.REGISTRY_FEATURE_COUNT + 5; >+ >+ /** >+ * The feature id for the '<em><b>Default Password</b></em>' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__DEFAULT_PASSWORD = RegistryPackage.REGISTRY_FEATURE_COUNT + 6; >+ >+ /** >+ * The feature id for the '<em><b>Taxonomies</b></em>' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY__TAXONOMIES = RegistryPackage.REGISTRY_FEATURE_COUNT + 7; >+ >+ /** >+ * The number of structural features of the the '<em>UDDIRegistry</em>' class. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ * @ordered >+ */ >+ int UDDI_REGISTRY_FEATURE_COUNT = RegistryPackage.REGISTRY_FEATURE_COUNT + 8; >+ >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot <em>Document Root</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Document Root</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot >+ * @generated >+ */ >+ EClass getDocumentRoot(); >+ >+ /** >+ * Returns the meta object for the attribute list '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getMixed <em>Mixed</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute list '<em>Mixed</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getMixed() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EAttribute getDocumentRoot_Mixed(); >+ >+ /** >+ * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXMLNSPrefixMap() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_XMLNSPrefixMap(); >+ >+ /** >+ * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the map '<em>XSI Schema Location</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXSISchemaLocation() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_XSISchemaLocation(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getTaxonomies <em>Taxonomies</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Taxonomies</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getTaxonomies() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_Taxonomies(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getUddiRegistry <em>Uddi Registry</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Uddi Registry</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getUddiRegistry() >+ * @see #getDocumentRoot() >+ * @generated >+ */ >+ EReference getDocumentRoot_UddiRegistry(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies <em>Taxonomies</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>Taxonomies</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies >+ * @generated >+ */ >+ EClass getTaxonomies(); >+ >+ /** >+ * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies#getTaxonomy <em>Taxonomy</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference list '<em>Taxonomy</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies#getTaxonomy() >+ * @see #getTaxonomies() >+ * @generated >+ */ >+ EReference getTaxonomies_Taxonomy(); >+ >+ /** >+ * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry <em>UDDIRegistry</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for class '<em>UDDIRegistry</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry >+ * @generated >+ */ >+ EClass getUDDIRegistry(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getVersion <em>Version</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Version</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getVersion() >+ * @see #getUDDIRegistry() >+ * @generated >+ */ >+ EAttribute getUDDIRegistry_Version(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDiscoveryURL <em>Discovery URL</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Discovery URL</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDiscoveryURL() >+ * @see #getUDDIRegistry() >+ * @generated >+ */ >+ EAttribute getUDDIRegistry_DiscoveryURL(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getPublicationURL <em>Publication URL</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Publication URL</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getPublicationURL() >+ * @see #getUDDIRegistry() >+ * @generated >+ */ >+ EAttribute getUDDIRegistry_PublicationURL(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredDiscoveryURL <em>Secured Discovery URL</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Secured Discovery URL</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredDiscoveryURL() >+ * @see #getUDDIRegistry() >+ * @generated >+ */ >+ EAttribute getUDDIRegistry_SecuredDiscoveryURL(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredPublicationURL <em>Secured Publication URL</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Secured Publication URL</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredPublicationURL() >+ * @see #getUDDIRegistry() >+ * @generated >+ */ >+ EAttribute getUDDIRegistry_SecuredPublicationURL(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultLogin <em>Default Login</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Default Login</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultLogin() >+ * @see #getUDDIRegistry() >+ * @generated >+ */ >+ EAttribute getUDDIRegistry_DefaultLogin(); >+ >+ /** >+ * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultPassword <em>Default Password</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the attribute '<em>Default Password</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultPassword() >+ * @see #getUDDIRegistry() >+ * @generated >+ */ >+ EAttribute getUDDIRegistry_DefaultPassword(); >+ >+ /** >+ * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getTaxonomies <em>Taxonomies</em>}'. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the meta object for the containment reference '<em>Taxonomies</em>'. >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getTaxonomies() >+ * @see #getUDDIRegistry() >+ * @generated >+ */ >+ EReference getUDDIRegistry_Taxonomies(); >+ >+ /** >+ * 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 >+ */ >+ UDDIRegistryFactory getUDDIRegistryFactory(); >+ >+} //UDDIRegistryPackage >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/DocumentRootImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/DocumentRootImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/DocumentRootImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/DocumentRootImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,326 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl; >+ >+import java.util.Collection; >+ >+import org.eclipse.emf.common.notify.NotificationChain; >+ >+import org.eclipse.emf.common.util.EMap; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EStructuralFeature; >+import org.eclipse.emf.ecore.EcorePackage; >+import org.eclipse.emf.ecore.InternalEObject; >+ >+import org.eclipse.emf.ecore.impl.EObjectImpl; >+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; >+ >+import org.eclipse.emf.ecore.util.BasicFeatureMap; >+import org.eclipse.emf.ecore.util.EcoreEMap; >+import org.eclipse.emf.ecore.util.FeatureMap; >+import org.eclipse.emf.ecore.util.InternalEList; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Document Root</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl#getTaxonomies <em>Taxonomies</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl#getUddiRegistry <em>Uddi Registry</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot { >+ /** >+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getMixed() >+ * @generated >+ * @ordered >+ */ >+ protected FeatureMap mixed = null; >+ >+ /** >+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getXMLNSPrefixMap() >+ * @generated >+ * @ordered >+ */ >+ protected EMap xMLNSPrefixMap = null; >+ >+ /** >+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getXSISchemaLocation() >+ * @generated >+ * @ordered >+ */ >+ protected EMap xSISchemaLocation = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected DocumentRootImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return UDDIRegistryPackage.eINSTANCE.getDocumentRoot(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public FeatureMap getMixed() { >+ if (mixed == null) { >+ mixed = new BasicFeatureMap(this, UDDIRegistryPackage.DOCUMENT_ROOT__MIXED); >+ } >+ return mixed; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EMap getXMLNSPrefixMap() { >+ if (xMLNSPrefixMap == null) { >+ xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >+ } >+ return xMLNSPrefixMap; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EMap getXSISchemaLocation() { >+ if (xSISchemaLocation == null) { >+ xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >+ } >+ return xSISchemaLocation; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Taxonomies getTaxonomies() { >+ return (Taxonomies)getMixed().get(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_Taxonomies(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetTaxonomies(Taxonomies newTaxonomies, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_Taxonomies(), newTaxonomies, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setTaxonomies(Taxonomies newTaxonomies) { >+ ((FeatureMap.Internal)getMixed()).set(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_Taxonomies(), newTaxonomies); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public UDDIRegistry getUddiRegistry() { >+ return (UDDIRegistry)getMixed().get(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_UddiRegistry(), true); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetUddiRegistry(UDDIRegistry newUddiRegistry, NotificationChain msgs) { >+ return ((FeatureMap.Internal)getMixed()).basicAdd(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_UddiRegistry(), newUddiRegistry, null); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setUddiRegistry(UDDIRegistry newUddiRegistry) { >+ ((FeatureMap.Internal)getMixed()).set(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_UddiRegistry(), newUddiRegistry); >+ } >+ >+ /** >+ * <!-- 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 UDDIRegistryPackage.DOCUMENT_ROOT__MIXED: >+ return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__TAXONOMIES: >+ return basicSetTaxonomies(null, msgs); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__UDDI_REGISTRY: >+ return basicSetUddiRegistry(null, 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 UDDIRegistryPackage.DOCUMENT_ROOT__MIXED: >+ return getMixed(); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return getXMLNSPrefixMap(); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return getXSISchemaLocation(); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__TAXONOMIES: >+ return getTaxonomies(); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__UDDI_REGISTRY: >+ return getUddiRegistry(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case UDDIRegistryPackage.DOCUMENT_ROOT__MIXED: >+ getMixed().clear(); >+ getMixed().addAll((Collection)newValue); >+ return; >+ case UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ getXMLNSPrefixMap().clear(); >+ getXMLNSPrefixMap().addAll((Collection)newValue); >+ return; >+ case UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ getXSISchemaLocation().clear(); >+ getXSISchemaLocation().addAll((Collection)newValue); >+ return; >+ case UDDIRegistryPackage.DOCUMENT_ROOT__TAXONOMIES: >+ setTaxonomies((Taxonomies)newValue); >+ return; >+ case UDDIRegistryPackage.DOCUMENT_ROOT__UDDI_REGISTRY: >+ setUddiRegistry((UDDIRegistry)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case UDDIRegistryPackage.DOCUMENT_ROOT__MIXED: >+ getMixed().clear(); >+ return; >+ case UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ getXMLNSPrefixMap().clear(); >+ return; >+ case UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ getXSISchemaLocation().clear(); >+ return; >+ case UDDIRegistryPackage.DOCUMENT_ROOT__TAXONOMIES: >+ setTaxonomies((Taxonomies)null); >+ return; >+ case UDDIRegistryPackage.DOCUMENT_ROOT__UDDI_REGISTRY: >+ setUddiRegistry((UDDIRegistry)null); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case UDDIRegistryPackage.DOCUMENT_ROOT__MIXED: >+ return mixed != null && !mixed.isEmpty(); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); >+ case UDDIRegistryPackage.DOCUMENT_ROOT__TAXONOMIES: >+ return getTaxonomies() != null; >+ case UDDIRegistryPackage.DOCUMENT_ROOT__UDDI_REGISTRY: >+ return getUddiRegistry() != 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(" (mixed: "); >+ result.append(mixed); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //DocumentRootImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/TaxonomiesImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/TaxonomiesImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/TaxonomiesImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/TaxonomiesImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,155 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl; >+ >+import java.util.Collection; >+ >+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.impl.EObjectImpl; >+ >+import org.eclipse.emf.ecore.util.EObjectContainmentEList; >+import org.eclipse.emf.ecore.util.InternalEList; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>Taxonomies</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.TaxonomiesImpl#getTaxonomy <em>Taxonomy</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class TaxonomiesImpl extends EObjectImpl implements Taxonomies { >+ /** >+ * The cached value of the '{@link #getTaxonomy() <em>Taxonomy</em>}' containment reference list. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getTaxonomy() >+ * @generated >+ * @ordered >+ */ >+ protected EList taxonomy = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected TaxonomiesImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return UDDIRegistryPackage.eINSTANCE.getTaxonomies(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EList getTaxonomy() { >+ if (taxonomy == null) { >+ taxonomy = new EObjectContainmentEList(Taxonomy.class, this, UDDIRegistryPackage.TAXONOMIES__TAXONOMY); >+ } >+ return taxonomy; >+ } >+ >+ /** >+ * <!-- 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 UDDIRegistryPackage.TAXONOMIES__TAXONOMY: >+ return ((InternalEList)getTaxonomy()).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 UDDIRegistryPackage.TAXONOMIES__TAXONOMY: >+ return getTaxonomy(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case UDDIRegistryPackage.TAXONOMIES__TAXONOMY: >+ getTaxonomy().clear(); >+ getTaxonomy().addAll((Collection)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case UDDIRegistryPackage.TAXONOMIES__TAXONOMY: >+ getTaxonomy().clear(); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case UDDIRegistryPackage.TAXONOMIES__TAXONOMY: >+ return taxonomy != null && !taxonomy.isEmpty(); >+ } >+ return eDynamicIsSet(eFeature); >+ } >+ >+} //TaxonomiesImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryFactoryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryFactoryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryFactoryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,97 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.emf.ecore.impl.EFactoryImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.*; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model <b>Factory</b>. >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+public class UDDIRegistryFactoryImpl extends EFactoryImpl implements UDDIRegistryFactory { >+ /** >+ * Creates and instance of the factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public UDDIRegistryFactoryImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EObject create(EClass eClass) { >+ switch (eClass.getClassifierID()) { >+ case UDDIRegistryPackage.DOCUMENT_ROOT: return createDocumentRoot(); >+ case UDDIRegistryPackage.TAXONOMIES: return createTaxonomies(); >+ case UDDIRegistryPackage.UDDI_REGISTRY: return createUDDIRegistry(); >+ default: >+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); >+ } >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public DocumentRoot createDocumentRoot() { >+ DocumentRootImpl documentRoot = new DocumentRootImpl(); >+ return documentRoot; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Taxonomies createTaxonomies() { >+ TaxonomiesImpl taxonomies = new TaxonomiesImpl(); >+ return taxonomies; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public UDDIRegistry createUDDIRegistry() { >+ UDDIRegistryImpl uddiRegistry = new UDDIRegistryImpl(); >+ return uddiRegistry; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public UDDIRegistryPackage getUDDIRegistryPackage() { >+ return (UDDIRegistryPackage)getEPackage(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @deprecated >+ * @generated >+ */ >+ public static UDDIRegistryPackage getPackage() { >+ return UDDIRegistryPackage.eINSTANCE; >+ } >+ >+} //UDDIRegistryFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,631 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl; >+ >+import java.util.Collection; >+ >+import org.eclipse.emf.common.notify.Notification; >+import org.eclipse.emf.common.notify.NotificationChain; >+ >+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.emf.ecore.util.InternalEList; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model object '<em><b>UDDIRegistry</b></em>'. >+ * <!-- end-user-doc --> >+ * <p> >+ * The following features are implemented: >+ * <ul> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getVersion <em>Version</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getDiscoveryURL <em>Discovery URL</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getPublicationURL <em>Publication URL</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getSecuredDiscoveryURL <em>Secured Discovery URL</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getSecuredPublicationURL <em>Secured Publication URL</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getDefaultLogin <em>Default Login</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getDefaultPassword <em>Default Password</em>}</li> >+ * <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getTaxonomies <em>Taxonomies</em>}</li> >+ * </ul> >+ * </p> >+ * >+ * @generated >+ */ >+public class UDDIRegistryImpl extends RegistryImpl implements UDDIRegistry { >+ /** >+ * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getVersion() >+ * @generated >+ * @ordered >+ */ >+ protected static final String VERSION_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getVersion() >+ * @generated >+ * @ordered >+ */ >+ protected String version = VERSION_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getDiscoveryURL() <em>Discovery URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getDiscoveryURL() >+ * @generated >+ * @ordered >+ */ >+ protected static final String DISCOVERY_URL_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getDiscoveryURL() <em>Discovery URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getDiscoveryURL() >+ * @generated >+ * @ordered >+ */ >+ protected String discoveryURL = DISCOVERY_URL_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getPublicationURL() <em>Publication URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getPublicationURL() >+ * @generated >+ * @ordered >+ */ >+ protected static final String PUBLICATION_URL_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getPublicationURL() <em>Publication URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getPublicationURL() >+ * @generated >+ * @ordered >+ */ >+ protected String publicationURL = PUBLICATION_URL_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getSecuredDiscoveryURL() <em>Secured Discovery URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getSecuredDiscoveryURL() >+ * @generated >+ * @ordered >+ */ >+ protected static final String SECURED_DISCOVERY_URL_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getSecuredDiscoveryURL() <em>Secured Discovery URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getSecuredDiscoveryURL() >+ * @generated >+ * @ordered >+ */ >+ protected String securedDiscoveryURL = SECURED_DISCOVERY_URL_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getSecuredPublicationURL() <em>Secured Publication URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getSecuredPublicationURL() >+ * @generated >+ * @ordered >+ */ >+ protected static final String SECURED_PUBLICATION_URL_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getSecuredPublicationURL() <em>Secured Publication URL</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getSecuredPublicationURL() >+ * @generated >+ * @ordered >+ */ >+ protected String securedPublicationURL = SECURED_PUBLICATION_URL_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getDefaultLogin() <em>Default Login</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getDefaultLogin() >+ * @generated >+ * @ordered >+ */ >+ protected static final String DEFAULT_LOGIN_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getDefaultLogin() <em>Default Login</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getDefaultLogin() >+ * @generated >+ * @ordered >+ */ >+ protected String defaultLogin = DEFAULT_LOGIN_EDEFAULT; >+ >+ /** >+ * The default value of the '{@link #getDefaultPassword() <em>Default Password</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getDefaultPassword() >+ * @generated >+ * @ordered >+ */ >+ protected static final String DEFAULT_PASSWORD_EDEFAULT = null; >+ >+ /** >+ * The cached value of the '{@link #getDefaultPassword() <em>Default Password</em>}' attribute. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getDefaultPassword() >+ * @generated >+ * @ordered >+ */ >+ protected String defaultPassword = DEFAULT_PASSWORD_EDEFAULT; >+ >+ /** >+ * The cached value of the '{@link #getTaxonomies() <em>Taxonomies</em>}' containment reference. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @see #getTaxonomies() >+ * @generated >+ * @ordered >+ */ >+ protected Taxonomies taxonomies = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected UDDIRegistryImpl() { >+ super(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected EClass eStaticClass() { >+ return UDDIRegistryPackage.eINSTANCE.getUDDIRegistry(); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getVersion() { >+ return version; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setVersion(String newVersion) { >+ String oldVersion = version; >+ version = newVersion; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__VERSION, oldVersion, version)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getDiscoveryURL() { >+ return discoveryURL; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setDiscoveryURL(String newDiscoveryURL) { >+ String oldDiscoveryURL = discoveryURL; >+ discoveryURL = newDiscoveryURL; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__DISCOVERY_URL, oldDiscoveryURL, discoveryURL)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getPublicationURL() { >+ return publicationURL; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setPublicationURL(String newPublicationURL) { >+ String oldPublicationURL = publicationURL; >+ publicationURL = newPublicationURL; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__PUBLICATION_URL, oldPublicationURL, publicationURL)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getSecuredDiscoveryURL() { >+ return securedDiscoveryURL; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setSecuredDiscoveryURL(String newSecuredDiscoveryURL) { >+ String oldSecuredDiscoveryURL = securedDiscoveryURL; >+ securedDiscoveryURL = newSecuredDiscoveryURL; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__SECURED_DISCOVERY_URL, oldSecuredDiscoveryURL, securedDiscoveryURL)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getSecuredPublicationURL() { >+ return securedPublicationURL; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setSecuredPublicationURL(String newSecuredPublicationURL) { >+ String oldSecuredPublicationURL = securedPublicationURL; >+ securedPublicationURL = newSecuredPublicationURL; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__SECURED_PUBLICATION_URL, oldSecuredPublicationURL, securedPublicationURL)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getDefaultLogin() { >+ return defaultLogin; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setDefaultLogin(String newDefaultLogin) { >+ String oldDefaultLogin = defaultLogin; >+ defaultLogin = newDefaultLogin; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_LOGIN, oldDefaultLogin, defaultLogin)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public String getDefaultPassword() { >+ return defaultPassword; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setDefaultPassword(String newDefaultPassword) { >+ String oldDefaultPassword = defaultPassword; >+ defaultPassword = newDefaultPassword; >+ if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_PASSWORD, oldDefaultPassword, defaultPassword)); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Taxonomies getTaxonomies() { >+ return taxonomies; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public NotificationChain basicSetTaxonomies(Taxonomies newTaxonomies, NotificationChain msgs) { >+ Taxonomies oldTaxonomies = taxonomies; >+ taxonomies = newTaxonomies; >+ if (eNotificationRequired()) { >+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES, oldTaxonomies, newTaxonomies); >+ if (msgs == null) msgs = notification; else msgs.add(notification); >+ } >+ return msgs; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void setTaxonomies(Taxonomies newTaxonomies) { >+ if (newTaxonomies != taxonomies) { >+ NotificationChain msgs = null; >+ if (taxonomies != null) >+ msgs = ((InternalEObject)taxonomies).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES, null, msgs); >+ if (newTaxonomies != null) >+ msgs = ((InternalEObject)newTaxonomies).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES, null, msgs); >+ msgs = basicSetTaxonomies(newTaxonomies, msgs); >+ if (msgs != null) msgs.dispatch(); >+ } >+ else if (eNotificationRequired()) >+ eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES, newTaxonomies, newTaxonomies)); >+ } >+ >+ /** >+ * <!-- 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 UDDIRegistryPackage.UDDI_REGISTRY__NAME: >+ return ((InternalEList)getName()).basicRemove(otherEnd, msgs); >+ case UDDIRegistryPackage.UDDI_REGISTRY__DESCRIPTION: >+ return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs); >+ case UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES: >+ return basicSetTaxonomies(null, 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 UDDIRegistryPackage.UDDI_REGISTRY__NAME: >+ return getName(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__DESCRIPTION: >+ return getDescription(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__ID: >+ return getId(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__LOCATION: >+ return getLocation(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__REF: >+ return getRef(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__VERSION: >+ return getVersion(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__DISCOVERY_URL: >+ return getDiscoveryURL(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__PUBLICATION_URL: >+ return getPublicationURL(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_DISCOVERY_URL: >+ return getSecuredDiscoveryURL(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_PUBLICATION_URL: >+ return getSecuredPublicationURL(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_LOGIN: >+ return getDefaultLogin(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_PASSWORD: >+ return getDefaultPassword(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES: >+ return getTaxonomies(); >+ } >+ return eDynamicGet(eFeature, resolve); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eSet(EStructuralFeature eFeature, Object newValue) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case UDDIRegistryPackage.UDDI_REGISTRY__NAME: >+ getName().clear(); >+ getName().addAll((Collection)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__DESCRIPTION: >+ getDescription().clear(); >+ getDescription().addAll((Collection)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__ID: >+ setId((String)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__LOCATION: >+ setLocation((String)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__REF: >+ setRef((String)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__VERSION: >+ setVersion((String)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__DISCOVERY_URL: >+ setDiscoveryURL((String)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__PUBLICATION_URL: >+ setPublicationURL((String)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_DISCOVERY_URL: >+ setSecuredDiscoveryURL((String)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_PUBLICATION_URL: >+ setSecuredPublicationURL((String)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_LOGIN: >+ setDefaultLogin((String)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_PASSWORD: >+ setDefaultPassword((String)newValue); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES: >+ setTaxonomies((Taxonomies)newValue); >+ return; >+ } >+ eDynamicSet(eFeature, newValue); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public void eUnset(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case UDDIRegistryPackage.UDDI_REGISTRY__NAME: >+ getName().clear(); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__DESCRIPTION: >+ getDescription().clear(); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__ID: >+ setId(ID_EDEFAULT); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__LOCATION: >+ setLocation(LOCATION_EDEFAULT); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__REF: >+ setRef(REF_EDEFAULT); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__VERSION: >+ setVersion(VERSION_EDEFAULT); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__DISCOVERY_URL: >+ setDiscoveryURL(DISCOVERY_URL_EDEFAULT); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__PUBLICATION_URL: >+ setPublicationURL(PUBLICATION_URL_EDEFAULT); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_DISCOVERY_URL: >+ setSecuredDiscoveryURL(SECURED_DISCOVERY_URL_EDEFAULT); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_PUBLICATION_URL: >+ setSecuredPublicationURL(SECURED_PUBLICATION_URL_EDEFAULT); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_LOGIN: >+ setDefaultLogin(DEFAULT_LOGIN_EDEFAULT); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_PASSWORD: >+ setDefaultPassword(DEFAULT_PASSWORD_EDEFAULT); >+ return; >+ case UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES: >+ setTaxonomies((Taxonomies)null); >+ return; >+ } >+ eDynamicUnset(eFeature); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public boolean eIsSet(EStructuralFeature eFeature) { >+ switch (eDerivedStructuralFeatureID(eFeature)) { >+ case UDDIRegistryPackage.UDDI_REGISTRY__NAME: >+ return name != null && !name.isEmpty(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__DESCRIPTION: >+ return description != null && !description.isEmpty(); >+ case UDDIRegistryPackage.UDDI_REGISTRY__ID: >+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); >+ case UDDIRegistryPackage.UDDI_REGISTRY__LOCATION: >+ return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); >+ case UDDIRegistryPackage.UDDI_REGISTRY__REF: >+ return REF_EDEFAULT == null ? ref != null : !REF_EDEFAULT.equals(ref); >+ case UDDIRegistryPackage.UDDI_REGISTRY__VERSION: >+ return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); >+ case UDDIRegistryPackage.UDDI_REGISTRY__DISCOVERY_URL: >+ return DISCOVERY_URL_EDEFAULT == null ? discoveryURL != null : !DISCOVERY_URL_EDEFAULT.equals(discoveryURL); >+ case UDDIRegistryPackage.UDDI_REGISTRY__PUBLICATION_URL: >+ return PUBLICATION_URL_EDEFAULT == null ? publicationURL != null : !PUBLICATION_URL_EDEFAULT.equals(publicationURL); >+ case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_DISCOVERY_URL: >+ return SECURED_DISCOVERY_URL_EDEFAULT == null ? securedDiscoveryURL != null : !SECURED_DISCOVERY_URL_EDEFAULT.equals(securedDiscoveryURL); >+ case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_PUBLICATION_URL: >+ return SECURED_PUBLICATION_URL_EDEFAULT == null ? securedPublicationURL != null : !SECURED_PUBLICATION_URL_EDEFAULT.equals(securedPublicationURL); >+ case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_LOGIN: >+ return DEFAULT_LOGIN_EDEFAULT == null ? defaultLogin != null : !DEFAULT_LOGIN_EDEFAULT.equals(defaultLogin); >+ case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_PASSWORD: >+ return DEFAULT_PASSWORD_EDEFAULT == null ? defaultPassword != null : !DEFAULT_PASSWORD_EDEFAULT.equals(defaultPassword); >+ case UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES: >+ return taxonomies != 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(" (version: "); >+ result.append(version); >+ result.append(", discoveryURL: "); >+ result.append(discoveryURL); >+ result.append(", publicationURL: "); >+ result.append(publicationURL); >+ result.append(", securedDiscoveryURL: "); >+ result.append(securedDiscoveryURL); >+ result.append(", securedPublicationURL: "); >+ result.append(securedPublicationURL); >+ result.append(", defaultLogin: "); >+ result.append(defaultLogin); >+ result.append(", defaultPassword: "); >+ result.append(defaultPassword); >+ result.append(')'); >+ return result.toString(); >+ } >+ >+} //UDDIRegistryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryPackageImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryPackageImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryPackageImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryPackageImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,542 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl; >+ >+import org.eclipse.emf.ecore.EAttribute; >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EPackage; >+import org.eclipse.emf.ecore.EReference; >+ >+import org.eclipse.emf.ecore.impl.EPackageImpl; >+ >+import org.eclipse.emf.ecore.xml.type.XMLTypePackage; >+ >+import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage; >+ >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryFactory; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage; >+ >+/** >+ * <!-- begin-user-doc --> >+ * An implementation of the model <b>Package</b>. >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+public class UDDIRegistryPackageImpl extends EPackageImpl implements UDDIRegistryPackage { >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass documentRootEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass taxonomiesEClass = null; >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ private EClass uddiRegistryEClass = 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.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#eNS_URI >+ * @see #init() >+ * @generated >+ */ >+ private UDDIRegistryPackageImpl() { >+ super(eNS_URI, UDDIRegistryFactory.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 UDDIRegistryPackage init() { >+ if (isInited) return (UDDIRegistryPackage)EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI); >+ >+ // Obtain or create and register package >+ UDDIRegistryPackageImpl theUDDIRegistryPackage = (UDDIRegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof UDDIRegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new UDDIRegistryPackageImpl()); >+ >+ isInited = true; >+ >+ // Initialize simple dependencies >+ XMLTypePackageImpl.init(); >+ >+ // Obtain or create and register interdependencies >+ TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) instanceof TaxonomyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) : TaxonomyPackageImpl.eINSTANCE); >+ RTIndexPackageImpl theRTIndexPackage = (RTIndexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) instanceof RTIndexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) : RTIndexPackageImpl.eINSTANCE); >+ RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) instanceof RegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) : RegistryPackageImpl.eINSTANCE); >+ >+ // Create package meta-data objects >+ theUDDIRegistryPackage.createPackageContents(); >+ theTaxonomyPackage.createPackageContents(); >+ theRTIndexPackage.createPackageContents(); >+ theRegistryPackage.createPackageContents(); >+ >+ // Initialize created meta-data >+ theUDDIRegistryPackage.initializePackageContents(); >+ theTaxonomyPackage.initializePackageContents(); >+ theRTIndexPackage.initializePackageContents(); >+ theRegistryPackage.initializePackageContents(); >+ >+ // Mark meta-data to indicate it can't be changed >+ theUDDIRegistryPackage.freeze(); >+ >+ return theUDDIRegistryPackage; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getDocumentRoot() { >+ return documentRootEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getDocumentRoot_Mixed() { >+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_XMLNSPrefixMap() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_XSISchemaLocation() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_Taxonomies() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getDocumentRoot_UddiRegistry() { >+ return (EReference)documentRootEClass.getEStructuralFeatures().get(4); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getTaxonomies() { >+ return taxonomiesEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getTaxonomies_Taxonomy() { >+ return (EReference)taxonomiesEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EClass getUDDIRegistry() { >+ return uddiRegistryEClass; >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getUDDIRegistry_Version() { >+ return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(0); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getUDDIRegistry_DiscoveryURL() { >+ return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(1); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getUDDIRegistry_PublicationURL() { >+ return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(2); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getUDDIRegistry_SecuredDiscoveryURL() { >+ return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(3); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getUDDIRegistry_SecuredPublicationURL() { >+ return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(4); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getUDDIRegistry_DefaultLogin() { >+ return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(5); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EAttribute getUDDIRegistry_DefaultPassword() { >+ return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(6); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public EReference getUDDIRegistry_Taxonomies() { >+ return (EReference)uddiRegistryEClass.getEStructuralFeatures().get(7); >+ } >+ >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public UDDIRegistryFactory getUDDIRegistryFactory() { >+ return (UDDIRegistryFactory)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 >+ documentRootEClass = createEClass(DOCUMENT_ROOT); >+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__TAXONOMIES); >+ createEReference(documentRootEClass, DOCUMENT_ROOT__UDDI_REGISTRY); >+ >+ taxonomiesEClass = createEClass(TAXONOMIES); >+ createEReference(taxonomiesEClass, TAXONOMIES__TAXONOMY); >+ >+ uddiRegistryEClass = createEClass(UDDI_REGISTRY); >+ createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__VERSION); >+ createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__DISCOVERY_URL); >+ createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__PUBLICATION_URL); >+ createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__SECURED_DISCOVERY_URL); >+ createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__SECURED_PUBLICATION_URL); >+ createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__DEFAULT_LOGIN); >+ createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__DEFAULT_PASSWORD); >+ createEReference(uddiRegistryEClass, UDDI_REGISTRY__TAXONOMIES); >+ } >+ >+ /** >+ * <!-- 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 >+ TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI); >+ RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI); >+ XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); >+ >+ // Add supertypes to classes >+ uddiRegistryEClass.getESuperTypes().add(theRegistryPackage.getRegistry()); >+ >+ // Initialize classes and features; add operations and parameters >+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_Taxonomies(), this.getTaxonomies(), null, "taxonomies", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ initEReference(getDocumentRoot_UddiRegistry(), this.getUDDIRegistry(), null, "uddiRegistry", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); >+ >+ initEClass(taxonomiesEClass, Taxonomies.class, "Taxonomies", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEReference(getTaxonomies_Taxonomy(), theTaxonomyPackage.getTaxonomy(), null, "taxonomy", null, 0, -1, Taxonomies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ initEClass(uddiRegistryEClass, UDDIRegistry.class, "UDDIRegistry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >+ initEAttribute(getUDDIRegistry_Version(), theXMLTypePackage.getString(), "version", null, 1, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getUDDIRegistry_DiscoveryURL(), theXMLTypePackage.getAnyURI(), "discoveryURL", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getUDDIRegistry_PublicationURL(), theXMLTypePackage.getAnyURI(), "publicationURL", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getUDDIRegistry_SecuredDiscoveryURL(), theXMLTypePackage.getAnyURI(), "securedDiscoveryURL", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getUDDIRegistry_SecuredPublicationURL(), theXMLTypePackage.getAnyURI(), "securedPublicationURL", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getUDDIRegistry_DefaultLogin(), theXMLTypePackage.getString(), "defaultLogin", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEAttribute(getUDDIRegistry_DefaultPassword(), theXMLTypePackage.getString(), "defaultPassword", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ initEReference(getUDDIRegistry_Taxonomies(), this.getTaxonomies(), null, "taxonomies", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); >+ >+ // Create resource >+ createResource(eNS_URI); >+ >+ // Create annotations >+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData >+ createExtendedMetaDataAnnotations(); >+ } >+ >+ /** >+ * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected void createExtendedMetaDataAnnotations() { >+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; >+ addAnnotation >+ (documentRootEClass, >+ source, >+ new String[] { >+ "name", "", >+ "kind", "mixed" >+ }); >+ addAnnotation >+ (getDocumentRoot_Mixed(), >+ source, >+ new String[] { >+ "kind", "elementWildcard", >+ "name", ":mixed" >+ }); >+ addAnnotation >+ (getDocumentRoot_XMLNSPrefixMap(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "xmlns:prefix" >+ }); >+ addAnnotation >+ (getDocumentRoot_XSISchemaLocation(), >+ source, >+ new String[] { >+ "kind", "attribute", >+ "name", "xsi:schemaLocation" >+ }); >+ addAnnotation >+ (getDocumentRoot_Taxonomies(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "taxonomies", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (getDocumentRoot_UddiRegistry(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "uddiRegistry", >+ "namespace", "##targetNamespace" >+ }); >+ addAnnotation >+ (taxonomiesEClass, >+ source, >+ new String[] { >+ "name", "Taxonomies", >+ "kind", "elementOnly" >+ }); >+ addAnnotation >+ (getTaxonomies_Taxonomy(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "taxonomy", >+ "namespace", "http://eclipse.org/wst/ws/internal/model/v10/taxonomy" >+ }); >+ addAnnotation >+ (uddiRegistryEClass, >+ source, >+ new String[] { >+ "name", "UDDIRegistry", >+ "kind", "elementOnly" >+ }); >+ addAnnotation >+ (getUDDIRegistry_Version(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "version" >+ }); >+ addAnnotation >+ (getUDDIRegistry_DiscoveryURL(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "discoveryURL" >+ }); >+ addAnnotation >+ (getUDDIRegistry_PublicationURL(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "publicationURL" >+ }); >+ addAnnotation >+ (getUDDIRegistry_SecuredDiscoveryURL(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "securedDiscoveryURL" >+ }); >+ addAnnotation >+ (getUDDIRegistry_SecuredPublicationURL(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "securedPublicationURL" >+ }); >+ addAnnotation >+ (getUDDIRegistry_DefaultLogin(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "defaultLogin" >+ }); >+ addAnnotation >+ (getUDDIRegistry_DefaultPassword(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "defaultPassword" >+ }); >+ addAnnotation >+ (getUDDIRegistry_Taxonomies(), >+ source, >+ new String[] { >+ "kind", "element", >+ "name", "taxonomies" >+ }); >+ } >+ >+} //UDDIRegistryPackageImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryAdapterFactory.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryAdapterFactory.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryAdapterFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryAdapterFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,173 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry.util; >+ >+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.ws.internal.model.v10.registry.Registry; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.*; >+ >+/** >+ * <!-- 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.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage >+ * @generated >+ */ >+public class UDDIRegistryAdapterFactory extends AdapterFactoryImpl { >+ /** >+ * The cached model package. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected static UDDIRegistryPackage modelPackage; >+ >+ /** >+ * Creates an instance of the adapter factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public UDDIRegistryAdapterFactory() { >+ if (modelPackage == null) { >+ modelPackage = UDDIRegistryPackage.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 UDDIRegistrySwitch modelSwitch = >+ new UDDIRegistrySwitch() { >+ public Object caseDocumentRoot(DocumentRoot object) { >+ return createDocumentRootAdapter(); >+ } >+ public Object caseTaxonomies(Taxonomies object) { >+ return createTaxonomiesAdapter(); >+ } >+ public Object caseUDDIRegistry(UDDIRegistry object) { >+ return createUDDIRegistryAdapter(); >+ } >+ public Object caseRegistry(Registry object) { >+ return createRegistryAdapter(); >+ } >+ 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.ws.internal.model.v10.uddiregistry.DocumentRoot <em>Document Root</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.ws.internal.model.v10.uddiregistry.DocumentRoot >+ * @generated >+ */ >+ public Adapter createDocumentRootAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies <em>Taxonomies</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.ws.internal.model.v10.uddiregistry.Taxonomies >+ * @generated >+ */ >+ public Adapter createTaxonomiesAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry <em>UDDIRegistry</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.ws.internal.model.v10.uddiregistry.UDDIRegistry >+ * @generated >+ */ >+ public Adapter createUDDIRegistryAdapter() { >+ return null; >+ } >+ >+ /** >+ * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry <em>Registry</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.ws.internal.model.v10.registry.Registry >+ * @generated >+ */ >+ public Adapter createRegistryAdapter() { >+ 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; >+ } >+ >+} //UDDIRegistryAdapterFactory >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceFactoryImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceFactoryImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceFactoryImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,63 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry.util; >+ >+import org.eclipse.emf.common.util.URI; >+ >+import org.eclipse.emf.ecore.resource.Resource; >+ >+import org.eclipse.emf.ecore.util.ExtendedMetaData; >+ >+import org.eclipse.emf.ecore.xmi.XMLResource; >+ >+import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Resource Factory</b> associated with the package. >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.util.UDDIRegistryResourceImpl >+ * @generated >+ */ >+public class UDDIRegistryResourceFactoryImpl extends XMLResourceFactoryImpl { >+ /** >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected ExtendedMetaData extendedMetaData; >+ >+ /** >+ * Creates an instance of the resource factory. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public UDDIRegistryResourceFactoryImpl() { >+ super(); >+ extendedMetaData = ExtendedMetaData.INSTANCE; >+ } >+ >+ /** >+ * Creates an instance of the resource. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public Resource createResource(URI uri) { >+ XMLResource result = new UDDIRegistryResourceImpl(uri); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); >+ result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); >+ >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >+ >+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); >+ return result; >+ } >+ >+} //UDDIRegistryResourceFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceImpl.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceImpl.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceImpl.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceImpl.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,32 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry.util; >+ >+import org.eclipse.emf.common.util.URI; >+ >+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Resource </b> associated with the package. >+ * <!-- end-user-doc --> >+ * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.util.UDDIRegistryResourceFactoryImpl >+ * @generated >+ */ >+public class UDDIRegistryResourceImpl extends XMLResourceImpl { >+ /** >+ * Creates an instance of the resource. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @param uri the URI of the new resource. >+ * @generated >+ */ >+ public UDDIRegistryResourceImpl(URI uri) { >+ super(uri); >+ } >+ >+} //UDDIRegistryResourceFactoryImpl >Index: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistrySwitch.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistrySwitch.java >diff -N src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistrySwitch.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistrySwitch.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,190 @@ >+/** >+ * <copyright> >+ * </copyright> >+ * >+ * $Id$ >+ */ >+package org.eclipse.wst.ws.internal.model.v10.uddiregistry.util; >+ >+import java.util.List; >+ >+import org.eclipse.emf.ecore.EClass; >+import org.eclipse.emf.ecore.EObject; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+ >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.*; >+ >+/** >+ * <!-- begin-user-doc --> >+ * The <b>Switch</b> for the model's inheritance hierarchy. >+ * It supports the call {@link #doSwitch(EObject) 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.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage >+ * @generated >+ */ >+public class UDDIRegistrySwitch { >+ /** >+ * The cached model package >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ protected static UDDIRegistryPackage modelPackage; >+ >+ /** >+ * Creates an instance of the switch. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @generated >+ */ >+ public UDDIRegistrySwitch() { >+ if (modelPackage == null) { >+ modelPackage = UDDIRegistryPackage.eINSTANCE; >+ } >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ public Object doSwitch(EObject theEObject) { >+ return doSwitch(theEObject.eClass(), theEObject); >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ protected Object doSwitch(EClass theEClass, EObject theEObject) { >+ if (theEClass.eContainer() == modelPackage) { >+ return doSwitch(theEClass.getClassifierID(), theEObject); >+ } >+ else { >+ List eSuperTypes = theEClass.getESuperTypes(); >+ return >+ eSuperTypes.isEmpty() ? >+ defaultCase(theEObject) : >+ doSwitch((EClass)eSuperTypes.get(0), theEObject); >+ } >+ } >+ >+ /** >+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >+ * <!-- begin-user-doc --> >+ * <!-- end-user-doc --> >+ * @return the first non-null result returned by a <code>caseXXX</code> call. >+ * @generated >+ */ >+ protected Object doSwitch(int classifierID, EObject theEObject) { >+ switch (classifierID) { >+ case UDDIRegistryPackage.DOCUMENT_ROOT: { >+ DocumentRoot documentRoot = (DocumentRoot)theEObject; >+ Object result = caseDocumentRoot(documentRoot); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case UDDIRegistryPackage.TAXONOMIES: { >+ Taxonomies taxonomies = (Taxonomies)theEObject; >+ Object result = caseTaxonomies(taxonomies); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ case UDDIRegistryPackage.UDDI_REGISTRY: { >+ UDDIRegistry uddiRegistry = (UDDIRegistry)theEObject; >+ Object result = caseUDDIRegistry(uddiRegistry); >+ if (result == null) result = caseRegistry(uddiRegistry); >+ if (result == null) result = defaultCase(theEObject); >+ return result; >+ } >+ default: return defaultCase(theEObject); >+ } >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Document Root</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>Document Root</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseDocumentRoot(DocumentRoot object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Taxonomies</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>Taxonomies</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseTaxonomies(Taxonomies object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>UDDIRegistry</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>UDDIRegistry</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseUDDIRegistry(UDDIRegistry object) { >+ return null; >+ } >+ >+ /** >+ * Returns the result of interpretting the object as an instance of '<em>Registry</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>Registry</em>'. >+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >+ * @generated >+ */ >+ public Object caseRegistry(Registry 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; >+ } >+ >+} //UDDIRegistrySwitch >Index: src/org/eclipse/wst/ws/internal/registry/GenericResourceFactory.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/registry/GenericResourceFactory.java >diff -N src/org/eclipse/wst/ws/internal/registry/GenericResourceFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/registry/GenericResourceFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,41 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 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.ws.internal.registry; >+ >+import org.eclipse.emf.common.util.URI; >+import org.eclipse.emf.ecore.resource.Resource; >+import org.eclipse.emf.ecore.util.ExtendedMetaData; >+import org.eclipse.emf.ecore.xmi.XMLResource; >+import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl; >+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; >+ >+public class GenericResourceFactory extends XMLResourceFactoryImpl >+{ >+ protected ExtendedMetaData extendedMetaData; >+ >+ public GenericResourceFactory() >+ { >+ super(); >+ extendedMetaData = ExtendedMetaData.INSTANCE; >+ } >+ >+ public Resource createResource(URI uri) >+ { >+ XMLResource result = new XMLResourceImpl(uri); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); >+ result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); >+ result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); >+ return result; >+ } >+} >Index: src/org/eclipse/wst/ws/internal/registry/IRegistryManager.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/registry/IRegistryManager.java >diff -N src/org/eclipse/wst/ws/internal/registry/IRegistryManager.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/registry/IRegistryManager.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,217 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 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.ws.internal.registry; >+ >+import java.net.MalformedURLException; >+import java.net.URL; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy; >+ >+/** >+ * An IRegistryManager manages a family of <code>Registry</code> >+ * and <code>Taxonomy</code> models persisted within some >+ * addressable location such as under a directory in the >+ * filesystem or under a folder in the Eclipse workspace, >+ * and referenced from an index document at the same location. >+ * <p> >+ * Call <code>RegisteryService.getDefaultRegistryManager()</code> >+ * or <code>RegisteryService.getRegistryManager(URL)</code> to >+ * get a new IRegistryManager. >+ * >+ * @see org.eclipse.wst.ws.internal.registry.RegistryService#instance() >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy >+ * @author cbrealey >+ */ >+public interface IRegistryManager >+{ >+ /** >+ * A constant for use in the <code>removeRegistry(...)</code> >+ * and <code>removeTaxonomy(...)</code> methods that will >+ * cause the given registry or taxonomy document to be removed >+ * from the index, but not deleted. >+ * >+ * @see #removeRegistry(String, boolean) >+ * @see #removeTaxonomy(String, boolean) >+ */ >+ public boolean KEEP_DOCUMENT = false; >+ >+ /** >+ * A constant for use in the <code>removeRegistry(...)</code> >+ * and <code>removeTaxonomy(...)</code> methods that will >+ * cause the given registry or taxonomy document to be removed >+ * from the index and deleted. >+ * >+ * @see #removeRegistry(String, boolean) >+ * @see #removeTaxonomy(String, boolean) >+ */ >+ public boolean DELETE_DOCUMENT = true; >+ >+ /** >+ * Returns the URL of the XML index document that references >+ * the XML registry and taxonomy models managed by this >+ * Registry Manager. >+ * >+ * @return The URL of the managing document. >+ * @throws MalformedURLException If a URL to the managing >+ * document cannot be determined or created. >+ */ >+ public URL getURL () throws MalformedURLException; >+ >+ /** >+ * Adds an <code>ITaxonomyFinder</code> that the >+ * <code>IRegistryManager</code> can use to find >+ * the set of <code>Taxonomy</code> models used >+ * by a given <code>Registry</code> model. >+ * <code>IRegistryManager.save(registry)</code> needs help finding >+ * the <code>Taxonomy</code> models used by a <code>Registry</code>, >+ * if any. >+ * >+ * @param className The name of the concrete <code>Registry<code> >+ * class for which the <code>ITaxonomyFinder</code> is being added. >+ * @param taxonomyFinder An <code>ITaxonomyFinder</code> that knows >+ * how to determine the set of <code>Taxonomy</code> models a given >+ * concrete <code>Registry</code> model is using. >+ * @see ITaxonomyFinder >+ * @see #saveRegistry(Registry) >+ */ >+ public void addTaxonomyFinder ( String className, ITaxonomyFinder taxonomyFinder ); >+ >+ /** >+ * Saves a <code>Registry</code> and any <code>Taxonomy</code> >+ * models it references to a set of XML documents located >+ * relative to the index XML document as identified by >+ * <code>getURL()</code>, and updates the index XML document >+ * with references to the saved registry and taxonomy documents. >+ * Relative pathnames to the registry and taxonomy XML documents >+ * are computed by the <code>IRegistryManager</code> and cannot >+ * be influenced by the caller. >+ * <p> >+ * The set of referenced <code>Taxonomy</code> models, if any, >+ * is determined by looking up an <code>ITaxonomyFinder</code> >+ * for the class name of the given <code>registry</code> and >+ * calling its <code>taxonomies</code> method. >+ * If no <code>ITaxonomyFinder</code> exists for the given >+ * <code>registry</code>, then no <code>Taxonomy</code> models >+ * will be saved. >+ * >+ * @param registry The <code>Registry</code> model (and >+ * referenced <code>Taxonomy</code> models) to save. >+ * @return The URI identifier of the registry as returned by >+ * <code>registry.getId()</code>. >+ * @see Registry >+ * @see #addTaxonomyFinder(String, ITaxonomyFinder) >+ */ >+ public String saveRegistry ( Registry registry ); >+ >+ /** >+ * Loads a <code>Registry</code> from a registry XML document >+ * identified by the given URI in the index XML document at the >+ * location returned by <code>getURL()</code>. >+ * >+ * @param uri The URI identifier of the registry as returned by >+ * <code>registry.getId()</code>. >+ * @return The <code>Registry</code> model. >+ * @see Registry >+ */ >+ public Registry loadRegistry ( String uri ); >+ >+ /** >+ * Returns an array of URI identifiers to <code>Registry</code> >+ * models in the index managed by this <code>IRegistryManager</code>. >+ * >+ * @return An array of URI identifiers, possibly empty but never null, >+ * to registered <code>Registry</code> models. >+ * @see Registry >+ */ >+ public String[] getRegistryURIs (); >+ >+ /** >+ * Removes the <code>Registry</code> model identified by the >+ * given <code>uri</code> from the index and either keeps or >+ * deletes the corresponding <code>Registry</code> document >+ * based on the value given for <code>deleteDocument</code>. >+ * >+ * @param uri The URI identifier of the model to delete. >+ * @param deleteDocument Either <code>KEEP_DOCUMENT</code> >+ * or <code>DELETE_DOCUMENT</code> depending on whether the >+ * model document should be kept or deleted. >+ * @see Registry >+ * @see #KEEP_DOCUMENT >+ * @see #DELETE_DOCUMENT >+ */ >+ public void removeRegistry ( String uri, boolean deleteDocument ); >+ >+ /** >+ * Saves a <code>Taxonomy</code> model to an XML document >+ * located relative to the index XML document as identified by >+ * <code>getURL()</code>, and updates the index XML document >+ * with references to the saved taxonomy document. >+ * The relative pathname to the taxonomy XML document is >+ * computed by the <code>IRegistryManager</code> and cannot >+ * be influenced by the caller. >+ * <p> >+ * Note that <code>Taxonomy</code> models referenced by a >+ * <code>Registry</code> model will be saved as a side effect >+ * of calling <code>saveRegistry</code> on that model. >+ * >+ * @param taxonomy The <code>Taxonomy</code> model to save. >+ * @return The URI identifier of the taxonomy as returned by >+ * <code>taxonomy.getId()</code>. >+ * @see Taxonomy >+ */ >+ public String saveTaxonomy ( Taxonomy taxonomy ); >+ >+ /** >+ * Loads a <code>Taxonomy</code> from a taxonomy XML document >+ * identified by the given URI in the index XML document at the >+ * location returned by <code>getURL()</code>. >+ * <p> >+ * Note that <code>Taxonomy</code> models referenced by a >+ * <code>Registry</code> model will be loaded as a side effect >+ * of calling <code>loadRegistry()</code> followed by >+ * <code>UDDIRegistryService.getTaxonomies(Registry)</code>. >+ * >+ * @param uri The URI identifier of the taxonomy as returned by >+ * <code>taxonomy.getId()</code>. >+ * @return The <code>Taxonomy</code> model. >+ * @see Taxonomy >+ */ >+ public Taxonomy loadTaxonomy ( String uri ); >+ >+ /** >+ * Returns an array of URI identifiers to <code>Taxonomy</code> >+ * models in the index managed by this <code>IRegistryManager</code>. >+ * >+ * @return An array of URI identifiers, possibly empty but never null, >+ * to registered <code>Taxonomy</code> models. >+ * @see Taxonomy >+ */ >+ public String[] getTaxonomyURIs (); >+ >+ /** >+ * Removes the <code>Taxonomy</code> model identified by the >+ * given <code>uri</code> from the index and either keeps or >+ * deletes the corresponding <code>Taxonomy</code> document >+ * based on the value given for <code>deleteDocument</code>. >+ * >+ * @param uri The URI identifier of the model to delete. >+ * @param deleteDocument Either <code>KEEP_DOCUMENT</code> >+ * or <code>DELETE_DOCUMENT</code> depending on whether the >+ * model document should be kept or deleted. >+ * @see Taxonomy >+ * @see #KEEP_DOCUMENT >+ * @see #DELETE_DOCUMENT >+ */ >+ public void removeTaxonomy ( String uri, boolean deleteDocument ); >+} >Index: src/org/eclipse/wst/ws/internal/registry/ITaxonomyFinder.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/registry/ITaxonomyFinder.java >diff -N src/org/eclipse/wst/ws/internal/registry/ITaxonomyFinder.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/registry/ITaxonomyFinder.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,38 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 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.ws.internal.registry; >+ >+import java.util.Iterator; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+ >+/** >+ * An <code>ITaxonomyFinder</code> computes the set of >+ * <code>Taxonomy</code> models referenced or used by a >+ * <code>Registry</code>. >+ * @author gilberta@ca.ibm.com >+ * @see IRegistryManager >+ */ >+public interface ITaxonomyFinder >+{ >+ /** >+ * Returns an iterator over the set of taxonomies used >+ * by the given <code>registry</code>. This method may >+ * return an empty iterator or <b>null</b> if the >+ * <code>Registry</code> does not reference any taxonomies. >+ * >+ * @param registry The <code>Registry</code> for which >+ * a set of taxonomies might be found. >+ * @return An iterator of taxonomies or <b>null</b>. >+ */ >+ public Iterator taxonomies ( Registry registry ); >+} >Index: src/org/eclipse/wst/ws/internal/registry/RegistryManager.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/registry/RegistryManager.java >diff -N src/org/eclipse/wst/ws/internal/registry/RegistryManager.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/registry/RegistryManager.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,150 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 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.ws.internal.registry; >+ >+import java.net.MalformedURLException; >+import java.net.URL; >+import java.util.Hashtable; >+import java.util.Iterator; >+ >+import org.eclipse.core.runtime.CoreException; >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy; >+ >+/** >+ * A typical implementation of <code>IRegistryManager</code> >+ * @author cbrealey >+ * @see IRegistryManager >+ */ >+public class RegistryManager implements IRegistryManager >+{ >+ private static String REGISTRY = "registry"; >+ private static String TAXONOMY = "taxonomy"; >+ private static String XML = "xml"; >+ private Hashtable taxonomyFinders_; >+ >+ private URL registryURL_= null; >+ private String registryPathname_ = null; >+ >+ public RegistryManager ( URL url ) >+ { >+ registryURL_ = url; >+ taxonomyFinders_ = new Hashtable(); >+ } >+ >+ public RegistryManager ( String pathname ) >+ { >+ registryPathname_ = pathname; >+ taxonomyFinders_ = new Hashtable(); >+ } >+ >+ public URL getURL () throws MalformedURLException >+ { >+ if (registryURL_ == null) >+ { >+ registryURL_ = new URL(registryPathname_); >+ } >+ return registryURL_; >+ } >+ >+ private URL getURL ( String id ) throws MalformedURLException >+ { >+ String baseUrl = ""; >+ try { >+ URL indexUrl = getURL(); >+ String indexString = indexUrl.toString(); >+ int index = indexString.indexOf("/"); //TODO: Shouldn't this be lastIndexOf? >+ baseUrl = indexString.substring(0,index); >+ } catch ( MalformedURLException me ) { >+ //TODO: Why are we suppressing this exception? >+ } >+ String urlString = baseUrl + id + "." + XML; >+ return new URL(urlString); >+ } >+ >+ public void addTaxonomyFinder(String className, ITaxonomyFinder taxonomyFinder) >+ { >+ taxonomyFinders_.put(className,taxonomyFinder); >+ } >+ >+ public String saveRegistry ( Registry registry ) >+ { >+ ITaxonomyFinder finder = (ITaxonomyFinder)taxonomyFinders_.get(registry.getClass().getName()); >+ RegistryService registryService = RegistryService.instance(); >+ try >+ { >+ URL url = getURL(REGISTRY + registry.getId()); >+ registryService.saveRegistry(url,registry); >+ Iterator it = finder.taxonomies(registry); >+ if (it != null) >+ { >+ while (it.hasNext()) >+ { >+ Taxonomy taxonomy = (Taxonomy)it.next(); >+ url = null; //TODO: Seems like dead code. >+ url = getURL(TAXONOMY + taxonomy.getId()); >+ registryService.saveTaxonomy(url,taxonomy); >+ } >+ } >+ } >+ catch ( MalformedURLException me ) >+ { >+ //TODO: Why are we suppressing this exception? >+ } >+ catch ( CoreException ce ) >+ { >+ //TODO: Why are we suppressing this exception? >+ } >+ return registry.getId(); >+ } >+ >+ public Registry loadRegistry ( String uri ) >+ { >+ //TODO: Implement me. >+ return null; >+ } >+ >+ public String[] getRegistryURIs () >+ { >+ //TODO: Implement me. >+ return new String[0]; >+ } >+ >+ public void removeRegistry ( String uri, boolean deleteDocument ) >+ { >+ //TODO: Implement me. >+ } >+ >+ public String saveTaxonomy ( Taxonomy taxonomy ) >+ { >+ //TODO: Implement me. >+ String uri = taxonomy.getId(); >+ return uri; >+ } >+ >+ public Taxonomy loadTaxonomy ( String uri ) >+ { >+ //TODO: Implement me. >+ return null; >+ } >+ >+ public String[] getTaxonomyURIs () >+ { >+ //TODO: Implement me. >+ return new String[0]; >+ } >+ >+ public void removeTaxonomy ( String uri, boolean deleteDocument ) >+ { >+ //TODO: Implement me. >+ } >+} >Index: src/org/eclipse/wst/ws/internal/registry/RegistryService.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/registry/RegistryService.java >diff -N src/org/eclipse/wst/ws/internal/registry/RegistryService.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/registry/RegistryService.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,338 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 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.ws.internal.registry; >+ >+import java.io.File; >+import java.io.FileOutputStream; >+import java.io.IOException; >+import java.io.InputStream; >+import java.io.OutputStream; >+import java.net.URL; >+import java.net.URLConnection; >+import java.util.Hashtable; >+ >+import org.eclipse.core.resources.ResourcesPlugin; >+import org.eclipse.core.runtime.CoreException; >+import org.eclipse.core.runtime.IPath; >+import org.eclipse.core.runtime.IStatus; >+import org.eclipse.core.runtime.Path; >+import org.eclipse.core.runtime.Status; >+import org.eclipse.emf.common.util.URI; >+import org.eclipse.emf.ecore.resource.Resource; >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryFactory; >+import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; >+import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyFactory; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage; >+import org.eclipse.wst.ws.internal.plugin.WSPlugin; >+ >+/** >+ * RegistryService is the starting class of the Web service registry >+ * programming model. Call the <code>RegistryService.instance()</code> >+ * static method to get the singleton instance of this class. >+ * <p> >+ * RegistryService provides factory methods for getting new >+ * instances of <code>IRegistryManager</code> objects which, >+ * in turn, provide the means for registering and unregistering >+ * groups of <code>Registry</code> and <code>Taxonomy</code> models >+ * at URL addressable locations in the filesystem or elsewhere. >+ * <p> >+ * RegistryService provides utility methods to ease the creation, >+ * loading and saving raw instances of the <code>Registry</code> >+ * and <code>Taxonomy</code> models, and to simplify the process of >+ * composing and finding <code>Taxonomy</code> models in >+ * <code>Registry</code> models. >+ * <p> >+ * A typical use of <code>RegistryService</code> and its related >+ * classes to create and save a new family of models is: >+ * <blockquote> >+ * <code> >+ * RegistryService registryService = RegistryService.instance(); >+ * MyRegistry registry = MyRegistryFactory.eINSTANCE.createMyRegistry(); >+ * // build up your registry model here >+ * Taxonomy taxonomy = registryService.newTaxonomy(); >+ * // build up your taxonomy model here >+ * registryService.addTaxonomy(registry,taxonomy); >+ * IRegistryManager registryManager = registryService.getDefaultRegistryManager(); >+ * registryManager.saveRegistry(registry); >+ * </code> >+ * </blockquote> >+ * @see #instance() >+ * @see IRegistryManager >+ * @see Registry >+ * @see Taxonomy >+ * @author cbrealey >+ */ >+public class RegistryService >+{ >+ private static RegistryService instance_; >+ private static final String DEFAULT_INDEX_XML_FILE = "DefaultIndex.xml"; >+ private Hashtable registryManagers_ = new Hashtable(); >+ private IRegistryManager defaultRegistryManager_ = null; >+ private GenericResourceFactory resourceFactory_ = new GenericResourceFactory(); >+ >+ /** >+ * A RegistryService cannot be directly constructed. >+ * Use @link #instance() to get the singleton of this class. >+ */ >+ private RegistryService () >+ { >+ Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("xml",resourceFactory_); >+ RegistryPackage.eINSTANCE.getClass(); >+ TaxonomyPackage.eINSTANCE.getClass(); >+ RTIndexPackage.eINSTANCE.getClass(); >+ } >+ >+ /** >+ * Returns the singleton of this class. >+ * @return The singleton of this class. >+ */ >+ public static RegistryService instance () >+ { >+ if (instance_ == null) >+ { >+ instance_ = new RegistryService(); >+ } >+ return instance_; >+ } >+ >+ /** >+ * Creates a default <code>IRegistryManager</code> for the system. >+ * @return The default <code>IRegistryManager</code> for the system. >+ * @see IRegistryManager >+ */ >+ public IRegistryManager getDefaultRegistryManager () >+ { >+ if (defaultRegistryManager_ == null) >+ { >+ String indexFilename = WSPlugin.getDefault().getStateLocation().append(DEFAULT_INDEX_XML_FILE).toString(); >+ defaultRegistryManager_ = new RegistryManager(indexFilename); >+ } >+ return defaultRegistryManager_; >+ } >+ >+ /** >+ * Creates a new or existing <code>IRegistryManager</code> for the given URL. >+ * @param url A URL to the XML document that persists >+ * the set of registries managed by this <code>IRegistryManager</code>. >+ * @return The new or existing <code>RegistryManager</code> for the given URL. >+ * @see IRegistryManager >+ */ >+ public IRegistryManager getRegistryManager ( URL url ) >+ { >+ IRegistryManager registryManager = (IRegistryManager)registryManagers_.get(url); >+ if (registryManager == null) >+ { >+ registryManager = new RegistryManager(url); >+ registryManagers_.put(url,registryManager); >+ } >+ return registryManager; >+ } >+ >+ /** >+ * Removes the <code>IRegistryManager</code> for the given URL. >+ * No physical resources are deleted. >+ * @param url A URL to the XML document that persists >+ * the set of registries managed by this <code>IRegistryManager</code>. >+ * @see IRegistryManager >+ */ >+ public void removeRegistryManager ( URL url ) >+ { >+ registryManagers_.remove(url); >+ } >+ >+ /** >+ * Creates and returns a new <code>Registry</code> model. >+ * As a general rule, this method has little actual value as >+ * most concrete registry models will be of types that extend >+ * the base Registry model, such as <code>UDDIRegistry</code>. >+ * For example, <code>UDDIRegistryService.newUDDIRegistry()</code> >+ * returns a new <code>UDDIRegistry</code>. Providers of other >+ * concrete types of registries may provide similar facilities. >+ * @return A new <code>Registry</code> model. Never returns null. >+ * @see Registry >+ * @see UDDIRegistryService#newUDDIRegistry() >+ */ >+ public Registry newRegistry () >+ { >+ return RegistryFactory.eINSTANCE.createRegistry(); >+ } >+ >+ /** >+ * Loads the <code>Registry</code> model from an XML document. >+ * If loading the model of a registry that extends the base >+ * Registry interface and Schema, you must initialize the EMF >+ * eCore package (eg. <code>MyRegistryPackage.eINSTANCE</code> >+ * for your model before calling this load method. >+ * For UDDI Registry models, this is done automatically by >+ * calling <code>UDDIRegistryService.instance()</code>. >+ * @param url The URL to the XML document to load. >+ * @return The <code>Registry</code> model. >+ * @throws <code>CoreException</code> If the model cannot be loaded. >+ * @see Registry >+ * @see UDDIRegistryService#instance() >+ */ >+ public Registry loadRegistry ( URL url ) throws CoreException >+ { >+ Resource resource = resourceFactory_.createResource(URI.createURI("*.xml")); >+ try >+ { >+ resource.load(getInputStreamFor(url),null); >+ } >+ catch (IOException e) >+ { >+ throw new CoreException(new Status(IStatus.ERROR,WSPlugin.ID,0,"",e)); >+ } >+ org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot document = (org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot)resource.getContents().get(0); >+ return document.getRegistry(); >+ } >+ >+ /** >+ * Saves the <code>Registry</code> model to an XML document. >+ * @param url The URL to the XML document to save. >+ * @param registry The <code>Registry</code> model to save. >+ * @throws <code>CoreException</code> If the model cannot be saved. >+ * @see Registry >+ */ >+ public void saveRegistry ( URL url, Registry registry ) throws CoreException >+ { >+ org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot document = RegistryFactory.eINSTANCE.createDocumentRoot(); >+ document.setRegistry(registry); >+ Resource resource = resourceFactory_.createResource(URI.createURI("*.xml")); >+ resource.getContents().add(document); >+ try >+ { >+ resource.save(getOutputStreamFor(url),null); >+ } >+ catch (IOException e) >+ { >+ throw new CoreException(new Status(IStatus.ERROR,WSPlugin.ID,0,"",e)); >+ } >+ } >+ >+ /** >+ * Creates and returns a new <code>Taxonomy</code> model. >+ * @return A new <code>Taxonomy</code> model. Never returns null. >+ * @see Taxonomy >+ */ >+ public Taxonomy newTaxonomy () >+ { >+ return TaxonomyFactory.eINSTANCE.createTaxonomy(); >+ } >+ >+ /** >+ * Loads the <code>Taxonomy</code> model from an XML document. >+ * @param url The URL to the XML document to load. >+ * @return the <code>Taxonomy</code> model. >+ * @throws <code>CoreException</code> If the model cannot be loaded. >+ * @see Taxonomy >+ */ >+ public Taxonomy loadTaxonomy ( URL url ) throws CoreException >+ { >+ Resource resource = resourceFactory_.createResource(URI.createURI("*.xml")); >+ try >+ { >+ resource.load(getInputStreamFor(url),null); >+ } >+ catch (IOException e) >+ { >+ throw new CoreException(new Status(IStatus.ERROR,WSPlugin.ID,0,"",e)); >+ } >+ org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot document = (org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot)resource.getContents().get(0); >+ return document.getTaxonomy(); >+ } >+ >+ /** >+ * Saves the <code>Taxonomy</code> model to an XML document. >+ * @param url The URL to the XML document to save. >+ * @param taxonomy The <code>Taxonomy</code> model to save. >+ * @throws <code>CoreException</code> If the model cannot be saved. >+ * @see Taxonomy >+ */ >+ public void saveTaxonomy ( URL url, Taxonomy taxonomy ) throws CoreException >+ { >+ org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot document = TaxonomyFactory.eINSTANCE.createDocumentRoot(); >+ document.setTaxonomy(taxonomy); >+ Resource resource = resourceFactory_.createResource(URI.createURI("*.xml")); >+ resource.getContents().add(document); >+ try >+ { >+ resource.save(getOutputStreamFor(url),null); >+ } >+ catch (IOException e) >+ { >+ throw new CoreException(new Status(IStatus.ERROR,WSPlugin.ID,0,"",e)); >+ } >+ } >+ >+ /** >+ * Opens an <code>OutputStream</code> for writing to >+ * the given <code>url</code>. >+ * @param url The URL of the resource to write. >+ * @return An OuptutStream to write to. >+ * @throws IOException If the stream could not be opened. >+ */ >+ private static OutputStream getOutputStreamFor ( URL url ) throws IOException >+ { >+ OutputStream outputStream = null; >+ if ("platform".equals(url.getProtocol())) >+ { >+ String urlFile = url.getFile().trim(); >+ IPath path = new Path(urlFile).removeFirstSegments(1); >+ if (path.segmentCount() <= 1) >+ { >+ throw new IOException("The Platform URL {0} is not bound to a local, writable file."); >+ } >+ IPath osPath = ResourcesPlugin.getWorkspace().getRoot().getFile(path).getLocation(); >+ if (osPath == null) >+ { >+ throw new IOException("The Platform URL {0} is not bound to a local, writable file."); >+ } >+ File file = new File(osPath.toString()); >+ if (file.isDirectory()) >+ { >+ throw new IOException("The Platform URL {0} is bound to a folder."); >+ } >+ outputStream = new FileOutputStream(file); >+ } >+ else if ("file".equals(url.getProtocol())) >+ { >+ File file = new File(url.getFile().trim()); >+ if (file.isDirectory()) >+ { >+ throw new IOException("The File URL {0} is bound to a directory."); >+ } >+ outputStream = new FileOutputStream(file); >+ } >+ else >+ { >+ URLConnection connection = url.openConnection(); >+ connection.setDoOutput(true); >+ outputStream = connection.getOutputStream(); >+ } >+ return outputStream; >+ } >+ >+ /** >+ * Opens an <code>InputStream</code> for reading from >+ * the given <code>url</code>. >+ * @param url The URL of the resource to read. >+ * @return An InputStream to read from. >+ * @throws IOException If the stream could not be opened. >+ */ >+ private static InputStream getInputStreamFor ( URL url ) throws IOException >+ { >+ return url.openStream(); >+ } >+} >Index: src/org/eclipse/wst/ws/internal/registry/UDDIRegistryService.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/registry/UDDIRegistryService.java >diff -N src/org/eclipse/wst/ws/internal/registry/UDDIRegistryService.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/registry/UDDIRegistryService.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,145 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 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.ws.internal.registry; >+ >+import org.eclipse.emf.common.util.EList; >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryFactory; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage; >+ >+/** >+ * UDDIRegistryService is an adjunct to <code>RegistryService</code>. >+ * Call the <code>RegistryService.instance()</code> static method to >+ * get the singleton instance of this class. >+ * <p> >+ * UDDIRegistryService provides utility methods to ease the creation >+ * of new <code>UDDIRegistry</code> models and the management of their >+ * relationships to <code>Taxonomy</code> models. >+ * <p> >+ * Utility methods for loading and saving <code>Registry</code> and >+ * <code>Taxonomy</code> models are on <code>RegistryService</code>. >+ * Methods for managing an indexed family of <code>Registry</code> and >+ * <code>Taxonomy</code> models are on <code>IRegistryManager</code>. >+ * <p> >+ * A typical use of <code>UDDIRegistryService</code> and its related >+ * classes to create and save a new family of models is: >+ * <blockquote> >+ * <code> >+ * RegistryService registryService = RegistryService.instance(); >+ * UDDIRegistryService uddiRegistryService = UDDIRegistryService.instance(); >+ * UDDIRegistry uddiRegistry = uddiRegistryService.newUDDIRegistry(); >+ * // build up your registry model here >+ * Taxonomy taxonomy = registryService.newTaxonomy(); >+ * // build up your taxonomy model here >+ * uddiRegistryService.addTaxonomy(uddiRegistry,taxonomy); >+ * IRegistryManager registryManager = registryService.getDefaultRegistryManager(); >+ * registryManager.saveRegistry(uddiRegistry); >+ * </code> >+ * </blockquote> >+ * @see #instance() >+ * @see RegistryService >+ * @see IRegistryManager >+ * @see UDDIRegistry >+ * @see Taxonomy >+ * @author cbrealey >+ */ >+public class UDDIRegistryService >+{ >+ private static UDDIRegistryService instance_; >+ >+ /** >+ * A UDDIRegistryService cannot be directly constructed. >+ * Use @link #instance() to get the singleton of this class. >+ */ >+ private UDDIRegistryService () >+ { >+ UDDIRegistryPackage.eINSTANCE.getClass(); >+ } >+ >+ /** >+ * Returns the singleton of this class. >+ * @return The singleton of this class. >+ */ >+ public static UDDIRegistryService instance () >+ { >+ if (instance_ == null) >+ { >+ instance_ = new UDDIRegistryService(); >+ } >+ return instance_; >+ } >+ >+ /** >+ * Adds a reference from the given <code>UDDIRegistry</code> >+ * to the given <code>Taxonomy</code> object. >+ * @param uddiRegistry The <code>UDDIRegistry</code> to which the reference >+ * to the given <code>Taxonomy</code> object should be added. >+ * @param taxonomy The <code>Taxonomy</code> object to add. >+ * @see org.eclipse.wst.ws.internal.movel.v10.uddiregistry.UDDIRegistry >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy >+ */ >+ public void addTaxonomy ( UDDIRegistry uddiRegistry, Taxonomy taxonomy ) >+ { >+ EList list = uddiRegistry.getTaxonomies().getTaxonomy(); >+ list.add(taxonomy); >+ } >+ >+ /** >+ * Adds references from the given <code>UDDIRegistry</code> >+ * to all of the given <code>Taxonomy</code> objects. >+ * @param uddiRegistry The <code>UDDIRegistry</code> to which references >+ * to the given <code>Taxonomy</code> objects should be added. >+ * @param taxonomies The array of <code>Taxonomy</code> objects to add. >+ * @see org.eclipse.wst.ws.internal.movel.v10.uddiregistry.UDDIRegistry >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy >+ */ >+ public void addTaxonomies ( UDDIRegistry uddiRegistry, Taxonomy[] taxonomies ) >+ { >+ EList list = uddiRegistry.getTaxonomies().getTaxonomy(); >+ for (int i=0; i<taxonomies.length; i++) >+ { >+ list.add(taxonomies[i]); >+ } >+ } >+ >+ /** >+ * Loads as necessary and returns an array of <code>Taxonomy</code> >+ * models referenced by the given <code>UDDIRegistry</code> model, or >+ * an empty array if there are no such taxonomies. >+ * @param registry The <code>UDDIRegistry</code> whose >+ * <code>Taxonomy</code> models to find. >+ * @return The array, never null but possibly length zero, >+ * of <code>Taxonomy</code> models. >+ * @see org.eclipse.wst.ws.internal.movel.v10.uddiregistry.UDDIRegistry >+ * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry >+ * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy >+ */ >+ public Taxonomy[] getTaxonomies ( UDDIRegistry uddiRegistry ) >+ { >+ EList list = uddiRegistry.getTaxonomies().getTaxonomy(); >+ return (Taxonomy[])list.toArray(new Taxonomy[0]); >+ } >+ >+ /** >+ * Creates and returns a new <code>UDDIRegistry</code> model. >+ * @return A new <code>UDDIRegistry</code> model. Never returns null. >+ * @see Registry >+ */ >+ public UDDIRegistry newUDDIRegistry () >+ { >+ return UDDIRegistryFactory.eINSTANCE.createUDDIRegistry(); >+ } >+} >Index: src/org/eclipse/wst/ws/internal/registry/UDDITaxonomyFinder.java >=================================================================== >RCS file: src/org/eclipse/wst/ws/internal/registry/UDDITaxonomyFinder.java >diff -N src/org/eclipse/wst/ws/internal/registry/UDDITaxonomyFinder.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/wst/ws/internal/registry/UDDITaxonomyFinder.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,40 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 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.ws.internal.registry; >+ >+import java.util.Iterator; >+ >+import org.eclipse.wst.ws.internal.model.v10.registry.Registry; >+import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry; >+ >+/** >+ * This <code>ITaxonomyFinder</code> for UDDI registries >+ * returns an iterator over the set of <code>Taxonomy</code> >+ * models used (supported by) the registry. >+ * @author gilberta@ca.ibm.com >+ * @see UDDIRegistry >+ */ >+public class UDDITaxonomyFinder implements ITaxonomyFinder >+{ >+ /* (non-Javadoc) >+ * @see org.eclipse.wst.ws.internal.registry.ITaxonomyFinder#taxonomies(org.eclipse.wst.ws.internal.model.v10.registry.Registry) >+ */ >+ public Iterator taxonomies ( Registry registry ) >+ { >+ if ( registry instanceof UDDIRegistry ) >+ { >+ UDDIRegistry uddiRegistry = (UDDIRegistry)registry; >+ return uddiRegistry.getTaxonomies().getTaxonomy().iterator(); >+ } >+ return null; >+ } >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 118087
:
30645
| 30646 |
31033